From 64dc06a36790ffacc294e02125853c3f47e19d70 Mon Sep 17 00:00:00 2001 From: Kálmán Viktor <kviktor@cloud.bme.hu> Date: Thu, 12 Jun 2014 17:39:00 +0200 Subject: [PATCH] dashboard: make template html nicer --- circle/dashboard/templates/dashboard/template-edit.html | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------ 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/circle/dashboard/templates/dashboard/template-edit.html b/circle/dashboard/templates/dashboard/template-edit.html index 0460475..538ae9a 100644 --- a/circle/dashboard/templates/dashboard/template-edit.html +++ b/circle/dashboard/templates/dashboard/template-edit.html @@ -37,61 +37,62 @@ <th>{% trans "Who" %}</th> <th>{% trans "What" %}</th> <th><i class="icon-remove"></i></th> - </tr></thead> + </tr> + </thead> <tbody> - {% for i in acl.users %} - <tr> - <td> - <i class="icon-user"></i> - </td> - <td> - <a href="{% url "dashboard.views.profile" username=i.user.username %}" - title="{{ i.user.username }}"> - {% include "dashboard/_display-name.html" with user=i.user show_org=True %} - </a> - </td> - <td> - <select class="form-control" name="perm-u-{{i.user.id}}"> - {% for id, name in acl.levels %} - <option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> - {% endfor %} - </select> - </td> - <td> - <input type="checkbox" name="remove-u-{{i.user.id}}" title="{% trans "Remove" %}"/> - </td> - </tr> - {% endfor %} - {% for i in acl.groups %} - <tr> - <td><i class="icon-group"></i></td> - <td> - <a href="{% url "dashboard.views.group-detail" pk=i.group.pk %}"> - {{i.group}} - </a> - </td> - <td> - <select class="form-control" name="perm-g-{{i.group.id}}"> - {% for id, name in acl.levels %} - <option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> - {% endfor %} - </select> - </td> - <td> - <input type="checkbox" name="remove-g-{{i.group.id}}" title="{% trans "Remove" %}"/> - </td> - </tr> - {% endfor %} - <tr><td><i class="icon-plus"></i></td> - <td><input type="text" class="form-control" name="perm-new-name" - placeholder="{% trans "Name of group or user" %}"></td> - <td><select class="form-control" name="perm-new"> - {% for id, name in acl.levels %} - <option value="{{id}}">{{name}}</option> - {% endfor %} - </select></td><td></td> - </tr> - </tbody> + {% for i in acl.users %} + <tr> + <td> + <i class="icon-user"></i> + </td> + <td> + <a href="{% url "dashboard.views.profile" username=i.user.username %}" + title="{{ i.user.username }}"> + {% include "dashboard/_display-name.html" with user=i.user show_org=True %} + </a> + </td> + <td> + <select class="form-control" name="perm-u-{{i.user.id}}"> + {% for id, name in acl.levels %} + <option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> + {% endfor %} + </select> + </td> + <td> + <input type="checkbox" name="remove-u-{{i.user.id}}" title="{% trans "Remove" %}"/> + </td> + </tr> + {% endfor %} + {% for i in acl.groups %} + <tr> + <td><i class="icon-group"></i></td> + <td> + <a href="{% url "dashboard.views.group-detail" pk=i.group.pk %}"> + {{i.group}} + </a> + </td> + <td> + <select class="form-control" name="perm-g-{{i.group.id}}"> + {% for id, name in acl.levels %} + <option{%if id = i.level%} selected="selected"{%endif%} value="{{id}}">{{name}}</option> + {% endfor %} + </select> + </td> + <td> + <input type="checkbox" name="remove-g-{{i.group.id}}" title="{% trans "Remove" %}"/> + </td> + </tr> + {% endfor %} + <tr><td><i class="icon-plus"></i></td> + <td><input type="text" class="form-control" name="perm-new-name" + placeholder="{% trans "Name of group or user" %}"></td> + <td><select class="form-control" name="perm-new"> + {% for id, name in acl.levels %} + <option value="{{id}}">{{name}}</option> + {% endfor %} + </select></td><td></td> + </tr> + </tbody> </table> <div class="form-actions"> <button type="submit" class="btn btn-success">{% trans "Save" %}</button> -- libgit2 0.26.0