Skip to content
Snippets Groups Projects
Verified Commit 531c5e16 authored by nd's avatar nd
Browse files

condense role list

parent 80f50950
Branches
Tags release/mail/2.2.7 release/polls/5.1.0
No related merge requests found
......@@ -3,19 +3,17 @@
{% block body %}
<div class="row">
<div class="col">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">id</th>
<th scope="col">name</th>
<th scope="col">description</th>
<th scope="col">
<p class="text-right">
<a class="btn btn-primary" href="{{ url_for("role.show") }}">
<i class="fa fa-plus" aria-hidden="true"></i> New
</a>
</p>
</th>
<table class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">roleid</th>
<th scope="col">name</th>
<th scope="col">description</th>
</tr>
</thead>
<tbody>
......@@ -25,18 +23,13 @@
{{ role.id }}
</td>
<th scope="row">
{{ role.name }}
<a href="{{ url_for("role.show", roleid=role.id) }}">
{{ role.name or '<empty name>' }}
</a>
</th>
<td>
{{ role.description }}
</td>
<td>
<p class="text-right">
<a href="{{ url_for("role.show", roleid=role.id) }}" class="btn btn-primary">
<i class="fa fa-edit" aria-hidden="true"></i> Edit
</a>
</p>
</td>
</tr>
{% endfor %}
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment