mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 12:21:22 -05:00
Don’t show move when there’s nothing to move
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% from "components/radios.html" import radios %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% if templates_and_folders_form.move_to.choices %}
|
||||
{% if templates_and_folders_form.move_to.choices and (templates or template_folders) %}
|
||||
{{ radios(templates_and_folders_form.move_to) }}
|
||||
{{ page_footer('Move selected', button_name='operation', button_value='move') }}
|
||||
{% endif %}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
{% with templates=templates, template_folders=template_folders %}
|
||||
{% include 'views/templates/_template_list.html' %}
|
||||
{% endwith %}
|
||||
{% with templates_and_folders_form=templates_and_folders_form %}
|
||||
{% with templates=templates, template_folders=template_folders, templates_and_folders_form=templates_and_folders_form %}
|
||||
{% include 'views/templates/_move_to.html' %}
|
||||
{% endwith %}
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user