diff --git a/README.md b/README.md index 7c097e1..b0c05a1 100644 --- a/README.md +++ b/README.md @@ -482,10 +482,17 @@ Module declaration, on `config.json`: "get": "http://server.url/job-offers/", "post": "http://server.url/job-offers/", "skills": "http://server.url/skills/" + }, + "parameters": { + "fields": "earnBusinessProviding" } } ``` +Where: + +* `parameters.fields`: Optional set of custom fields. Notice that only `earnBusinessProviding` is already handled on djangoldp-joboffer. + ### Notifications The notification module adds a bell with user's notification list and a badge on each menus with how much notifications are related to this resource. You'll need: diff --git a/src/dependencies.pug b/src/dependencies.pug index a2d0650..1bd79fb 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -40,7 +40,7 @@ if componentSet.has('invoices') //- script(type="module" src="/lib/solid-invoicing/solid-invoicing.js" defer) if componentSet.has("jobBoard") - script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@6.0" defer) + script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@6.1" defer) //- script(type="module" src="/lib/solid-job-board/dist/index.js" defer) if componentSet.has("notification") diff --git a/src/views/page-job-board.pug b/src/views/page-job-board.pug index 5cae4b2..474feaf 100644 --- a/src/views/page-job-board.pug +++ b/src/views/page-job-board.pug @@ -3,4 +3,6 @@ solid-job-board( post-data-src=`${component.endpoints.post}` range-skills=`${component.endpoints.skills}` uniq=component.uniq -) +)&attributes({ + "fields": component.parameters ? component.parameters.fields : false +})