aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/admin/fields/form.html
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/admin/fields/form.html')
-rw-r--r--servo/templates/admin/fields/form.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/servo/templates/admin/fields/form.html b/servo/templates/admin/fields/form.html
new file mode 100644
index 0000000..f377594
--- /dev/null
+++ b/servo/templates/admin/fields/form.html
@@ -0,0 +1,17 @@
+{% extends "admin/fields/index.html" %}
+{% load i18n %}
+
+{% block third_column %}
+ <form method="post" action="" accept-charset="utf-8" class="form-horizontal">
+ {% csrf_token %}
+ {% include "form_snippet.html" %}
+ <div class="form-actions">
+ {% if field.pk %}
+ <a class="btn btn-danger" data-modal="#modal" href="{% url 'admin-delete_field' field.pk %}">{% trans "Delete" %}</a>
+ {% else %}
+ <a class="btn btn-danger disabled">{% trans "Delete" %}</a>
+ {% endif %}
+ <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
+ </div>
+ </form>
+{% endblock third_column %}