Skip to content

Commit

Permalink
Merge pull request #382 from openstad/feature/show-message-on-wrong-u…
Browse files Browse the repository at this point in the history
…sage

Add a message when the widget is used on a non-idea resource page and…
  • Loading branch information
LorenzoJokhan authored Feb 13, 2023
2 parents 670ae78 + b258b97 commit d28a201
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 d28a201

@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:development-d28a201

Please sign in to comment.