diff options
Diffstat (limited to 'horizon/horizon/dashboards/syspanel/templates/syspanel/users/index.html')
-rw-r--r-- | horizon/horizon/dashboards/syspanel/templates/syspanel/users/index.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/horizon/horizon/dashboards/syspanel/templates/syspanel/users/index.html b/horizon/horizon/dashboards/syspanel/templates/syspanel/users/index.html new file mode 100644 index 00000000..0890295f --- /dev/null +++ b/horizon/horizon/dashboards/syspanel/templates/syspanel/users/index.html @@ -0,0 +1,45 @@ +{% extends 'syspanel/base.html' %} +{%load i18n%} + +{% block sidebar %} + {% with current_sidebar="users" %} + {{block.super}} + {% endwith %} +{% endblock %} + +{% block page_header %} + {% url horizon:syspanel:users:index as refresh_link %} + {# to make searchable false, just remove it from the include statement #} + {% include "horizon/common/_page_header.html" with title=_("Users") refresh_link=refresh_link searchable="true" %} +{% endblock page_header %} + +{% block syspanel_main %} + + <table class="wide"> + <tr> + <th>{% trans "ID"%}</th> + <th>{% trans "Name"%}</th> + <th>{% trans "Email"%}</th> + <th>{% trans "Default Tenant"%}</th> + <th>{% trans "Options"%}</th> + </tr> + {% for user in users %} + <tr class="{% cycle 'odd' 'even' %}"> + <td>{{user.id}}{% if not user.enabled %} (disabled){% endif %}</td> + <td>{{user.name}}</td> + <td>{{user.email}}</td> + <td>{{user.tenantId}}</td> + <td id="actions"> + <ul> + <li class="form">{% include "syspanel/users/_enable_disable.html" with form=user_enable_disable_form %}</li> + <li class="form">{% include "syspanel/users/_delete.html" with form=user_delete_form %}</li> + <li><a href="{% url horizon:syspanel:users:update user.id %}">{% trans "Edit"%}</a></li> + </ul> + </td> + </tr> + {% endfor %} + </table> + <a id="user_create_link" class="action_link large-rounded" href="{% url horizon:syspanel:users:create %}">{% trans "Create New User"%}</a> + </div> + +{% endblock %} |