diff options
Diffstat (limited to 'ogcp/templates/commands.html')
-rw-r--r-- | ogcp/templates/commands.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ogcp/templates/commands.html b/ogcp/templates/commands.html index 7a63c38..9bb0176 100644 --- a/ogcp/templates/commands.html +++ b/ogcp/templates/commands.html @@ -16,7 +16,7 @@ {% endblock %} {% block commands %} - +{% if current_user.is_authenticated %} <div class="dropdown btn"> <button class="btn btn-secondary btn-light dropdown-toggle{% block nav_client %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> {{ _('Client') }} @@ -66,10 +66,14 @@ {{ _('Image') }} </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> + {% if current_user.get_permission('IMAGE', 'ADD') %} <input class="btn btn-light dropdown-item{% block nav_image_create %}{% endblock %}" type="submit" value="{{ _('Create image') }}" form="scopesForm" formaction="{{ url_for('action_image_create') }}" formmethod="get"> + {% endif %} + {% if current_user.get_permission('IMAGE', 'UPDATE') %} <input class="btn btn-light dropdown-item {% block nav_image_update %}{% endblock %}" type="submit" value="{{ _('Update image') }}" form="scopesForm" formaction="{{ url_for('action_image_update') }}" formmethod="get"> + {% endif %} <input class="btn btn-light dropdown-item{% block nav_image_restore %}{% endblock %}" type="submit" value="{{ _('Restore Image') }}" form="scopesForm" formaction="{{ url_for('action_image_restore') }}" formmethod="get"> </div> @@ -109,7 +113,7 @@ form="scopesForm" formaction="{{ url_for('action_legacy_rt_log') }}" formmethod="get" formtarget="_blank"> </div> </div> - +{% endif %} {% if btn_back %} <button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()"> {{ _("Back") }} |