Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a warning to attachment overview if no decisions were found #205

Merged
merged 4 commits into from Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/components/document-attachments.hbs
Expand Up @@ -18,6 +18,16 @@
</tr>
</thead>
<tbody>
{{#unless @decisions.length}}
<tr>
<td colspan="5">
<AuAlert @alertIcon="alert-triangle" @alertTitle={{t "attachments.noDecisionsFound"}} @alertskin="warning">
<p>{{t "attachments.decisionRequired"}}</p>
</AuAlert>

</td>
</tr>
{{/unless}}
{{#each this.attachments as |attachment|}}
<tr>
<td>
Expand Down
2 changes: 2 additions & 0 deletions translations/en-us.yaml
Expand Up @@ -364,6 +364,8 @@ attachments:
typePlaceholder: none
regulatory: regulatory
saveAndGo: Save and go to attachments
noDecisonsFound: No decisions found
nvdk marked this conversation as resolved.
Show resolved Hide resolved
decisionRequired: Only attachments linked to a decision are included in the publication.
documentCreator:
titleField: Agendapoint title
template: Template
Expand Down
2 changes: 2 additions & 0 deletions translations/nl-BE.yaml
Expand Up @@ -363,6 +363,8 @@ attachments:
typePlaceholder: geen
regulatory: regelgevend
saveAndGo: Opslaan en bijlagen toevoegen
noDecisionsFound: Geen besluiten gevonden
decisionRequired: enkel bijlagen bij een besluit worden opgenomen in de publicatie.
documentCreator:
titleField: Titel agendapunt
template: Sjabloon
Expand Down