Skip to content

Commit

Permalink
Add person variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lagartoverde committed Aug 21, 2024
1 parent b274294 commit 5882b39
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-zebras-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': minor
---

Add person variable
7 changes: 7 additions & 0 deletions app/controllers/agendapoints/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import {
locationView,
text_variable,
textVariableView,
person_variable,
personVariableView,
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/variables';
import {
osloLocation,
Expand Down Expand Up @@ -159,6 +161,7 @@ export default class AgendapointsEditController extends Controller {
invisible_rdfa: invisibleRdfaWithConfig({ rdfaAware: true }),
inline_rdfa: inlineRdfaWithConfig({ rdfaAware: true }),
link: link(this.config.link),
person_variable,
},
marks: {
em,
Expand Down Expand Up @@ -238,6 +241,9 @@ export default class AgendapointsEditController extends Controller {
lpdc: {
endpoint: '/lpdc-service',
},
lmb: {
endpoint: '/vendor-proxy/query',
},
};
}

Expand Down Expand Up @@ -283,6 +289,7 @@ export default class AgendapointsEditController extends Controller {
snippet_placeholder: snippetPlaceholderView(controller),
snippet: snippetView(this.config.snippet)(controller),
structure: structureView(controller),
person_variable: personVariableView(controller),
};
};
}
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/regulatory-statements/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ import {
locationView,
text_variable,
textVariableView,
person_variable,
personVariableView,
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/variables';
import {
osloLocation,
Expand Down Expand Up @@ -154,6 +156,7 @@ export default class RegulatoryStatementsRoute extends Controller {
block_rdfa: blockRdfaWithConfig({ rdfaAware: true }),
inline_rdfa: inlineRdfaWithConfig({ rdfaAware: true }),
link: link(this.config.link),
person_variable,
},
marks: {
em,
Expand Down Expand Up @@ -185,6 +188,7 @@ export default class RegulatoryStatementsRoute extends Controller {
inline_rdfa: inlineRdfaWithConfigView({ rdfaAware: true })(controller),
snippet_placeholder: snippetPlaceholderView(controller),
snippet: snippetView(this.config.snippet)(controller),
person_variable: personVariableView(controller),
};
};
}
Expand Down Expand Up @@ -274,6 +278,9 @@ export default class RegulatoryStatementsRoute extends Controller {
defaultAddressUriRoot:
'https://publicatie.gelinkt-notuleren.vlaanderen.be/id/adres/',
},
lmb: {
endpoint: '/vendor-proxy/query',
},
};
}

Expand Down
8 changes: 8 additions & 0 deletions app/templates/agendapoints/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@
@controller={{this.controller}}
@config={{this.config.lpdc}}
/>
<LmbPlugin::Insert
@controller={{this.controller}}
@config={{this.config.lmb}}
/>
</:sidebarCollapsible>
<:sidebar>
<this.StructureControlCard @controller={{this.controller}} />
Expand All @@ -176,6 +180,10 @@
@controller={{this.controller}}
@options={{this.locationEditOptions}}
/>
<VariablePlugin::Person::Edit
@controller={{this.controller}}
@config={{this.config.lmb}}
/>
<TemplateCommentsPlugin::EditCard @controller={{this.controller}} />
</:sidebar>
</RdfaEditorContainer>
Expand Down
8 changes: 8 additions & 0 deletions app/templates/regulatory-statements/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@
@controller={{this.controller}}
@config={{this.config.worship}}
/>
<LmbPlugin::Insert
@controller={{this.controller}}
@config={{this.config.lmb}}
/>
</:sidebarCollapsible>
<:sidebar>
<ArticleStructurePlugin::StructureCard
Expand All @@ -175,6 +179,10 @@
@controller={{this.controller}}
@options={{this.locationEditOptions}}
/>
<VariablePlugin::Person::Edit
@controller={{this.controller}}
@config={{this.config.lmb}}
/>
<TemplateCommentsPlugin::EditCard @controller={{this.controller}} />
</:sidebar>
</RdfaEditorContainer>
Expand Down

0 comments on commit 5882b39

Please sign in to comment.