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

condense role list

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