diff --git a/uffd/role/templates/role_list.html b/uffd/role/templates/role_list.html index 1e2f31fa6e17394a3397c533b747f37cd7a0277e..54b5a7d6458202e66af84fc73d8e08caee177733 100644 --- a/uffd/role/templates/role_list.html +++ b/uffd/role/templates/role_list.html @@ -3,19 +3,17 @@ {% block body %} <div class="row"> <div class="col"> - <table class="table table-striped"> + <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> + <table class="table table-striped table-sm"> <thead> <tr> - <th scope="col">id</th> + <th scope="col">roleid</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> </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>