33 lines
824 B
HTML
33 lines
824 B
HTML
|
{% extends "master.html" %}
|
||
|
{% from "_formhelper.html" import render_field_in_row %}
|
||
|
|
||
|
{% set tag = "groups" %}
|
||
|
{% block title %}Create group{% endblock %}
|
||
|
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<h2>Create group</h2>
|
||
|
|
||
|
<section class="new_group">
|
||
|
<form action="{{ url_for('.add_group') }}" method="post">
|
||
|
|
||
|
<table>
|
||
|
{{ render_field_in_row(form.group_name) }}
|
||
|
{{ render_field_in_row(form.display_name) }}
|
||
|
{{ render_field_in_row(form.description) }}
|
||
|
{%- if admin %}
|
||
|
{{ render_field_in_row(form.group_type) }}
|
||
|
{%- endif %}
|
||
|
</table>
|
||
|
<p class="buttons indent">
|
||
|
<input type="submit" class="submit positive button" value="Add">
|
||
|
<input type="button" value="Cancel" class="button"
|
||
|
onclick="history.back();">
|
||
|
{{ form.csrf_token }}
|
||
|
</p>
|
||
|
</form>
|
||
|
</section>
|
||
|
|
||
|
{% endblock %}
|