Blame progit/templates/login/admin_groups.html
|
Pierre-Yves Chibon |
9647e1 |
{% extends "master.html" %}
|
|
Pierre-Yves Chibon |
9647e1 |
{% from "_formhelper.html" import render_field_in_row %}
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{% block title %}Groups{% endblock %}
|
|
Pierre-Yves Chibon |
9647e1 |
{%block tag %}admin{% endblock %}
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
40de1d |
{% block header %}
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
40de1d |
rel="stylesheet">
|
|
Pierre-Yves Chibon |
40de1d |
{% endblock %}
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
9647e1 |
{% block content %}
|
|
Pierre-Yves Chibon |
9647e1 |
Progit Groups
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
<section class="add_group"></section>
|
|
Pierre-Yves Chibon |
9647e1 |
Create a new group
|
|
Pierre-Yves Chibon |
9647e1 |
<form action="{{ url_for('admin_groups') }}" method="post"></form>
|
|
Pierre-Yves Chibon |
9647e1 |
<input id="group_name" name="group_name" title="group name">
|
|
Pierre-Yves Chibon |
9647e1 |
{{ form.csrf_token }}
|
|
Pierre-Yves Chibon |
9647e1 |
<input class="submit positive button" type="submit" value="Create">
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
40de1d |
<section class="list_groups"></section>
|
|
Pierre-Yves Chibon |
9647e1 |
{% if groups %}
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{% for group in groups %}
|
|
Pierre-Yves Chibon |
9647e1 |
grpid: {{ group.id }} :
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{{ group.group_name }}
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
40de1d |
action="{{ url_for('admin_group_delete', group=group.group_name) }}">
|
|
Pierre-Yves Chibon |
40de1d |
{{ conf_form.csrf_token }}
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
40de1d |
onclick="return confirm('Are you sure to delete group`{{
|
|
Pierre-Yves Chibon |
40de1d |
group.group_name }}`?');"
|
|
Pierre-Yves Chibon |
40de1d |
title="Delete group">
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{% endfor %}
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{% else %}
|
|
Pierre-Yves Chibon |
9647e1 |
No group found
|
|
Pierre-Yves Chibon |
9647e1 |
{% endif %}
|
|
Pierre-Yves Chibon |
40de1d |
|
|
Pierre-Yves Chibon |
9647e1 |
|
|
Pierre-Yves Chibon |
9647e1 |
{% endblock %}
|