mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04: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/radios.html" import radios %}
|
||||||
{% from "components/page-footer.html" import page_footer %}
|
{% 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) }}
|
{{ radios(templates_and_folders_form.move_to) }}
|
||||||
{{ page_footer('Move selected', button_name='operation', button_value='move') }}
|
{{ page_footer('Move selected', button_name='operation', button_value='move') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
{% with templates=templates, template_folders=template_folders %}
|
{% with templates=templates, template_folders=template_folders %}
|
||||||
{% include 'views/templates/_template_list.html' %}
|
{% include 'views/templates/_template_list.html' %}
|
||||||
{% endwith %}
|
{% 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' %}
|
{% include 'views/templates/_move_to.html' %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user