Skip to content

Commit

Permalink
Add active column to users list table (#942)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Oct 9, 2024
1 parent 6a54c30 commit d717622
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions g3w-admin/usersmanage/templates/usersmanage/user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ <h1>
<th>{% trans 'Roles' %}</th>
<th>{% trans 'User groups' %}</th>
{% if user.is_superuser %}
<th>{% trans ' Macro groups' %}</th>
<th>{% trans 'Macro groups' %}</th>
{% endif %}
{% endif %}

{% if user.is_superuser or user|has_group:G3W_EDITOR1 %}
<th>{% trans 'Active' %}</th>
{% endif %}
{% if user.is_staff and user.is_superuser %}
<th>{% trans 'Superuser' %}</th>
<th>{% trans 'Staff' %}</th>
Expand Down Expand Up @@ -98,6 +100,13 @@ <h1>
</td>
{% endif %}
{% endif %}
{% if user.is_superuser or user|has_group:G3W_EDITOR1 %}
<td>
{% if object.is_active %}
<span class="fa fa-check-circle" style="color: green"></span>
{% endif %}
</td>
{% endif %}

{% if user.is_staff and user.is_superuser %}
<td>
Expand Down

0 comments on commit d717622

Please sign in to comment.