Skip to content

Commit

Permalink
Add a message when the widget is used on a non-idea resource page and…
Browse files Browse the repository at this point in the history
… when you are logged in as admin, moderator or editor
  • Loading branch information
LorenzoJokhan committed Feb 10, 2023
1 parent 670ae78 commit b258b97
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

{% if data.activeResource and data.activeResource.publishDate %}
<div class="{{data.widget.divId}}" style="width: 100%; height: 100%;"></div>
{% elif (data.isAdmin or data.isEditor or data.isModerator) and data.activeResourceType !== 'idea'%}
<p>Deze widget kan alleen worden gebruikt op pagina`s met een resource waarbij het activeResourceType idea is</p>
{% else %}
<p>Er kunnen geen argumenten worden gegeven op een concept plan</p>
<p>Er kunnen geen argumenten worden gegeven op een concept plan</p>
{% endif %}

</div>

1 comment on commit b258b97

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:feature-show-message-on-wrong-usage-b258b97

Please sign in to comment.