finetune Form presentation
Ease the development of future forms Adapt tenant and user forms
This commit is contained in:
21
eveai_app/templates/user/edit_tenant.html
Normal file
21
eveai_app/templates/user/edit_tenant.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'base.html' %}
|
||||
{% from "macros.html" import render_field %}
|
||||
|
||||
{% block title %}Update Tenant{% endblock %}
|
||||
|
||||
{% block content_title %}Update Tenant{% endblock %}
|
||||
{% block content_description %}Update given tenant{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
{{ form.hidden_tag() }}
|
||||
{% set disabled_fields = ['name'] %}
|
||||
{% set exclude_fields = [] %}
|
||||
{% for field in form %}
|
||||
{{ render_field(field, disabled_fields, exclude_fields) }}
|
||||
{% endfor %}
|
||||
<button type="submit" class="btn btn-primary">Update Tenant</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
{% block content_footer %} {% endblock %}
|
||||
Reference in New Issue
Block a user