Prechádzať zdrojové kódy

Showing user roles.

Julio Montoya 11 rokov pred
rodič
commit
aeed12498f

+ 1 - 1
main/template/minedu/admin/director/branches/list.tpl

@@ -1,5 +1,5 @@
 {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
 {% block content %}
-    <h2>{{ 'Branches'  | get_lang }}</h2>
+    <h2>{{ 'Branches and juries'  | get_lang }}</h2>
     {{ tree }}
 {% endblock %}

+ 6 - 0
main/template/minedu/admin/director/branches/list_users.tpl

@@ -13,6 +13,7 @@
             <th>{{ 'Username' | trans }}</th>
             <th>{{ 'Firstname' | trans }}</th>
             <th>{{ 'Lastname' | trans }}</th>
+            <th>{{ 'Roles' | trans }}</th>
         </tr>
     {% for user in users %}
         <tr>
@@ -25,6 +26,11 @@
             <td>
                 {{ user.user.lastname }}
             </td>
+            <td>
+                {% for role in  user.user.roles %}
+                    {{ role.name }}
+                {% endfor %}
+            </td>
         </tr>
     {% endfor %}
     </table>