diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index 070e4d6..a718450 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -13,68 +13,23 @@

{{_('Client details')}}

-
-
+
+ {{ form.hidden_tag() }} {{ form.server() }} {{ form.folder_id() }} -
- -
- {{ form.name(class="form-control") }} + {% for field in form if field.type != 'CSRFToken' and field.name not in ['submit', 'remote', 'maintenance'] %} + {% if not field.flags.hidden %} +
+ +
+ {{ field(class="form-control") }} +
-
- -
- -
- {{ form.ip(class="form-control") }} -
-
- -
- -
- {{ form.mac(class="form-control") }} -
-
- -
- -
- {{ form.serial_number(class="form-control") }} -
-
- -
- -
- {{ form.livedir(class="form-control") }} -
-
- -
- -
- {{ form.repo(class="form-control") }} -
-
- -
- -
- {{ form.room(class="form-control") }} -
-
- -
- -
- {{ form.boot(class="form-control") }} -
-
+ {% endif %} + {% endfor %}
{{ form.submit(class="btn btn-primary") }}