diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-02-23 16:05:08 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-02-24 17:05:12 +0100 |
commit | 42ba24c9f9e751038cb63cef45016d231915fefe (patch) | |
tree | d854e520e43f07f728e0f7fbca90832aac30445e /ogcp/templates/actions/image_restore.html | |
parent | cc008a0e628ace4ff8e94c6c7f94b87fe7839edd (diff) |
Refactor selected clients drawing in commands
Refactor duplicated code as a jinja macro.
Diffstat (limited to 'ogcp/templates/actions/image_restore.html')
-rw-r--r-- | ogcp/templates/actions/image_restore.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ogcp/templates/actions/image_restore.html b/ogcp/templates/actions/image_restore.html index 9742bbd..6120688 100644 --- a/ogcp/templates/actions/image_restore.html +++ b/ogcp/templates/actions/image_restore.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% import "macros.html" as macros %} {% block content %} @@ -7,11 +8,7 @@ {% set ip_count = ip_list | length %} <h1 class="m-5">Restore partition image to {{ip_count}} {%if ip_count > 1%}computers{% else %}computer{% endif %}</h1> -<ul class="list-group mx-5 list-group-horizontal-sm"> -{% for ip in ip_list %} - <li class="list-group-item flex-fill list-group-item-info">{{ ip }}</li> -{% endfor %} -</ul> +{{ macros.cmd_selected_clients(ip_list) }} {{ wtf.quick_form(form, action=url_for('action_image_restore'), |