30 lines
917 B
HTML
30 lines
917 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
<div class="title">{% block title %}Manage groups{% endblock %}</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="heading">Create new group</div>
|
|
<form method="post">
|
|
<label for="name">Name</label>
|
|
<input name="name" id="name" required><br>
|
|
<label for="desc">Description</label>
|
|
<textarea name="desc" id="desc"></textarea><br>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
|
|
<div class="heading big">Edit Groups</div>
|
|
{% for group in groups %}
|
|
<form method="post" action="{{url_for('manage.group_edit', gid=group[0])}}">
|
|
<label for="name">Name</label>
|
|
<input name="name" id="name" value="{{group[1]}}" required><br>
|
|
<label for="desc">Description</label>
|
|
<textarea name="desc" id="desc">{{group[2]}}</textarea><br>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
<hr>
|
|
{% endfor %}
|
|
|
|
{% endblock %} |