New fixes

This commit is contained in:
2020-09-11 15:05:11 +02:00
parent 426a7a461c
commit 855f82f622
5 changed files with 106 additions and 25 deletions

View File

@@ -1,6 +1,31 @@
{# -*- coding: utf-8 -*- #}
{% extends 'baseadmin.tmpl' %}
{% block content %}
<!-- Modal Add New Group -->
<div class="modal fade" id="modalCreateGroup" tabindex="-1" role="dialog" aria-labelledby="modalCreateGroupLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form method="get" action="/admin/group/addgroup">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalCreateGroupLabel">Create new Group</h5>
</div>
<div class="modal-body">
<div class="form-group">
<p>Add group<br>
<label for="groupname" class="col-form-label">Group name:</label>
<input type="text" class="form-control" name="groupnameadd" id="groupnameadd"/>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Create</button>
</div>
</div>
</form>
</div>
</div>
<h2>Groups</h2>
<div class="table-responsive">
<table class="table table-striped table-sm">
@@ -13,6 +38,9 @@
</tr>
</thead>
<tbody>
<tr>
<td colspan="4"><a class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#modalCreateGroup">Create group</a></td>
</tr>
{% for item in tablegroups %} {#['ID_G','Name','Computers[ID_C,Name]','Cooks[CookName]']#}
<tr>
<td>{{item.0}}</td>