summaryrefslogtreecommitdiff
path: root/horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html')
-rw-r--r--horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html b/horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html
new file mode 100644
index 00000000..9aee6370
--- /dev/null
+++ b/horizon/horizon/dashboards/syspanel/templates/syspanel/images/_toggle.html
@@ -0,0 +1,9 @@
+{%load i18n%}
+<form id="form_toggle_{{image.id}}" class="form-toggle" method="post">
+ {% csrf_token %}
+ {% for hidden in form.hidden_fields %}
+ {{hidden}}
+ {% endfor %}
+ <input name="image_id" type="hidden" value="{{image.id}}" />
+ <input id="toggle_{{image.id}}" class="toggle" type="submit" value="{% trans "Toggle Public"%}" />
+</form>