summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/image_config.html24
-rw-r--r--ogcp/templates/actions/image_details.html22
2 files changed, 42 insertions, 4 deletions
diff --git a/ogcp/templates/actions/image_config.html b/ogcp/templates/actions/image_config.html
new file mode 100644
index 0000000..c286683
--- /dev/null
+++ b/ogcp/templates/actions/image_config.html
@@ -0,0 +1,24 @@
+{% extends 'images.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% set btn_back = true %}
+
+{% block content %}
+
+<h2 class="mx-5 subhead-heading">{{_('Update image')}}</h2>
+
+<form class="form mx-5" method="POST" action="{{ url_for('action_image_config') }}">
+ {{ form.hidden_tag() }}
+
+ {{ form.image_id() }}
+ {{ form.server() }}
+ {{ form.name() }}
+
+ {% include 'scopes_checkbox_group.html' %}
+
+ <div class="form-group">
+ {{ form.submit(class="btn btn-primary") }}
+ </div>
+ </form>
+
+{% endblock %}
diff --git a/ogcp/templates/actions/image_details.html b/ogcp/templates/actions/image_details.html
index 87105cb..ab66503 100644
--- a/ogcp/templates/actions/image_details.html
+++ b/ogcp/templates/actions/image_details.html
@@ -7,9 +7,23 @@
<h2 class="mx-5 subhead-heading">{{_('Image details')}}</h2>
-{{ wtf.quick_form(form,
- method='post',
- button_map={'create': 'primary'},
- extra_classes="mx-5") }}
+<div class="container mx-5">
+ <form class="form" method="POST">
+ {{ form.hidden_tag() }}
+
+ {% for field in form if field.type != 'CSRFToken' and field.name not in ['scopes'] %}
+ {% if not field.flags.hidden %}
+ <div class="form-group row">
+ <label for="name" class="col-sm-2 col-form-label">{{ field.label.text }}</label>
+ <div class="col-sm-9">
+ {{ field(class="form-control") }}
+ </div>
+ </div>
+ {% endif %}
+ {% endfor %}
+
+ {% include 'scopes_checkbox_group.html' %}
+ </form>
+</div>
{% endblock %}