Skip to content
Snippets Groups Projects
Commit 6e5fedaa authored by Jan Mach's avatar Jan Mach
Browse files

Design improvevents in list, show and creatupdate views.

Added delete action to item detail view, moved actions to toolbar in item list view, changed layout and page width in item list view. (Redmine issue: #3734)
parent 1b63de61
No related branches found
No related tags found
No related merge requests found
Showing
with 165 additions and 167 deletions
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('filters.list') }}">{{ gettext('Filter management') }}</a></li> <li><a href="{{ url_for('filters.list') }}">{{ gettext('Filter management') }}</a></li>
{%- if item_action == 'update' %}
<li><a href="{{ url_for('filters.show', item_id = item.id) }}">{{ gettext('Filter detail') }}</a></li> <li><a href="{{ url_for('filters.show', item_id = item.id) }}">{{ gettext('Filter detail') }}</a></li>
{%- endif %}
<li class="active">{{ action_name }}</li> <li class="active">{{ action_name }}</li>
</ol> </ol>
<hr> <hr>
......
...@@ -10,16 +10,24 @@ ...@@ -10,16 +10,24 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12">
<div class="col-md-9">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li class="active">{{ gettext('Filter management') }}</a></li> <li class="active">{{ gettext('Filter management') }}</a></li>
</ol> </ol>
<h2>{{ hawat_view_title }}</h2> <h2>{{ hawat_view_title }}</h2>
<div class="pull-right">
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('filters.create') }}">{{ gettext('Create reporting filter') }}</a>
</div>
</div>
</div>
<br>
<hr> <hr>
<table class="table table-bordered table-hover hawat-datatable"> <table class="table table-bordered table-hover table-striped hawat-datatable">
<thead> <thead>
<tr> <tr>
<th> <th>
...@@ -59,22 +67,10 @@ ...@@ -59,22 +67,10 @@
{%- endfor %} {%- endfor %}
</tbody> </tbody>
</table> </table>
</div><!-- /.col-md-8 -->
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ gettext('Actions') }}</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
<a data-toggle="tooltip" href="{{ url_for('filters.create') }}">{{ gettext('Create reporting filter') }}</a>
</li>
</ul>
</div>
</div><!-- /.col-md-4 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
{%- block js %} {%- block js %}
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('users.list') }}">{{ gettext('Filter management') }}</a></li> <li><a href="{{ url_for('users.list') }}">{{ gettext('Filter management') }}</a></li>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}"> <div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}"> <div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('filters.update', item_id = item.id ) }}" title="{{ gettext('Update details of reporting filter &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a> <a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('filters.update', item_id = item.id ) }}" title="{{ gettext('Update details of reporting filter &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a>
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('filters.delete', item_id = item.id ) }}" title="{{ gettext('Delete reporting filter &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('trash') }} {{ gettext('Delete') }}</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -50,8 +51,8 @@ ...@@ -50,8 +51,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div><!-- /.col-lg-12 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('groups.list') }}">{{ gettext('Group management') }}</a></li> <li><a href="{{ url_for('groups.list') }}">{{ gettext('Group management') }}</a></li>
{%- if item_action == 'update' %}
<li><a href="{{ url_for('groups.show', item_id = item.id) }}">{{ gettext('Group detail') }}</a></li> <li><a href="{{ url_for('groups.show', item_id = item.id) }}">{{ gettext('Group detail') }}</a></li>
{%- endif %}
<li class="active">{{ action_name }}</li> <li class="active">{{ action_name }}</li>
</ol> </ol>
<hr> <hr>
......
...@@ -10,16 +10,24 @@ ...@@ -10,16 +10,24 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12">
<div class="col-md-9">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li class="active">{{ gettext('Group management') }}</a></li> <li class="active">{{ gettext('Group management') }}</a></li>
</ol> </ol>
<h2>{{ hawat_view_title }}</h2> <h2>{{ hawat_view_title }}</h2>
<div class="pull-right">
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('groups.create') }}">{{ gettext('Create group') }}</a>
</div>
</div>
</div>
<br>
<hr> <hr>
<table class="table table-bordered table-hover hawat-datatable"> <table class="table table-bordered table-hover table-striped hawat-datatable">
<thead> <thead>
<tr> <tr>
<th> <th>
...@@ -59,22 +67,10 @@ ...@@ -59,22 +67,10 @@
{%- endfor %} {%- endfor %}
</tbody> </tbody>
</table> </table>
</div><!-- /.col-md-8 -->
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ gettext('Actions') }}</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
<a data-toggle="tooltip" href="{{ url_for('groups.create') }}">{{ gettext('Create group') }}</a>
</li>
</ul>
</div>
</div><!-- /.col-md-4 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
{%- block js %} {%- block js %}
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('groups.list') }}">{{ gettext('Group management') }}</a></li> <li><a href="{{ url_for('groups.list') }}">{{ gettext('Group management') }}</a></li>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}"> <div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}"> <div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('groups.update', item_id = item.id ) }}" title="{{ gettext('Update details of group &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a> <a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('groups.update', item_id = item.id ) }}" title="{{ gettext('Update details of group &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a>
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('groups.delete', item_id = item.id ) }}" title="{{ gettext('Delete group &quot;%(item)s&quot;', item = item.name) }}">{{ get_fa_icon('trash') }} {{ gettext('Delete') }}</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -104,8 +105,8 @@ ...@@ -104,8 +105,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div><!-- /.col-lg-12 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('networks.list') }}">{{ gettext('Network management') }}</a></li> <li><a href="{{ url_for('networks.list') }}">{{ gettext('Network management') }}</a></li>
{%- if item_action == 'update' %}
<li><a href="{{ url_for('networks.show', item_id = item.id) }}">{{ gettext('Network detail') }}</a></li> <li><a href="{{ url_for('networks.show', item_id = item.id) }}">{{ gettext('Network detail') }}</a></li>
{%- endif %}
<li class="active">{{ action_name }}</li> <li class="active">{{ action_name }}</li>
</ol> </ol>
<hr> <hr>
......
...@@ -10,16 +10,24 @@ ...@@ -10,16 +10,24 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12">
<div class="col-md-9">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li class="active">{{ gettext('Network management') }}</a></li> <li class="active">{{ gettext('Network management') }}</a></li>
</ol> </ol>
<h2>{{ hawat_view_title }}</h2> <h2>{{ hawat_view_title }}</h2>
<div class="pull-right">
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('networks.create') }}">{{ gettext('Create network record') }}</a>
</div>
</div>
</div>
<br>
<hr> <hr>
<table class="table table-bordered table-hover hawat-datatable"> <table class="table table-bordered table-hover table-striped hawat-datatable">
<thead> <thead>
<tr> <tr>
<th> <th>
...@@ -65,22 +73,10 @@ ...@@ -65,22 +73,10 @@
{%- endfor %} {%- endfor %}
</tbody> </tbody>
</table> </table>
</div><!-- /.col-md-8 -->
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ gettext('Actions') }}</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
<a data-toggle="tooltip" href="{{ url_for('networks.create') }}">{{ gettext('Create network record') }}</a>
</li>
</ul>
</div>
</div><!-- /.col-md-4 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
{%- block js %} {%- block js %}
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('networks.list') }}">{{ gettext('Network management') }}</a></li> <li><a href="{{ url_for('networks.list') }}">{{ gettext('Network management') }}</a></li>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}"> <div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}"> <div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('networks.update', item_id = item.id ) }}" title="{{ gettext('Update details of network record &quot;%(item)s&quot;', item = item.netname) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a> <a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('networks.update', item_id = item.id ) }}" title="{{ gettext('Update details of network record &quot;%(item)s&quot;', item = item.netname) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a>
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('networks.delete', item_id = item.id ) }}" title="{{ gettext('Delete network record &quot;%(item)s&quot;', item = item.netname) }}">{{ get_fa_icon('trash') }} {{ gettext('Delete') }}</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -66,8 +67,8 @@ ...@@ -66,8 +67,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div><!-- /.col-lg-12 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li><a href="{{ url_for('users.list') }}">{{ gettext('User management') }}</a></li> <li><a href="{{ url_for('users.list') }}">{{ gettext('User management') }}</a></li>
{%- if item_action == 'update' %}
<li><a href="{{ url_for('users.show', item_id = item.id) }}">{{ gettext('User detail') }}</a></li> <li><a href="{{ url_for('users.show', item_id = item.id) }}">{{ gettext('User detail') }}</a></li>
{%- endif %}
<li class="active">{{ action_name }}</li> <li class="active">{{ action_name }}</li>
</ol> </ol>
<hr> <hr>
......
...@@ -10,13 +10,21 @@ ...@@ -10,13 +10,21 @@
{%- block content %} {%- block content %}
<div class="row"> <div class="row">
<div class="col-lg-12">
<div class="col-md-9">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li class="active">{{ gettext('User management') }}</a></li> <li class="active">{{ gettext('User management') }}</a></li>
</ol> </ol>
<h2>{{ hawat_view_title }}</h2> <h2>{{ hawat_view_title }}</h2>
<div class="pull-right">
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('users.create') }}">{{ gettext('Create user account') }}</a>
</div>
</div>
</div>
<br>
<hr> <hr>
<table class="table table-bordered table-hover hawat-datatable"> <table class="table table-bordered table-hover hawat-datatable">
...@@ -76,22 +84,10 @@ ...@@ -76,22 +84,10 @@
{%- endfor %} {%- endfor %}
</tbody> </tbody>
</table> </table>
</div><!-- /.col-md-8 -->
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ gettext('Actions') }}</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
<a data-toggle="tooltip" href="{{ url_for('users.create') }}">{{ gettext('Create user account') }}</a>
</li>
</ul>
</div>
</div><!-- /.col-md-4 -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
{%- endblock content %} {%- endblock content %}
{%- block js %} {%- block js %}
......
...@@ -2,105 +2,108 @@ ...@@ -2,105 +2,108 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<ol class="breadcrumb">
<li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li> <ol class="breadcrumb">
<li><a href="{{ url_for('users.list') }}">{{ gettext('User management') }}</a></li> <li><a href="{{ url_for('index') }}">{{ gettext('Home') }}</a></li>
<li class="active">{{ gettext('User detail') }}</li> <li><a href="{{ url_for('users.list') }}">{{ gettext('User management') }}</a></li>
</ol> <li class="active">{{ gettext('User detail') }}</li>
<h2>{{ hawat_view_title }}</h2> </ol>
<hr> <h2>{{ hawat_view_title }}</h2>
<h3>{{ item.fullname }} ({{ item.login }})</h3> <hr>
<div class="pull-right"> <h3>{{ item.fullname }} ({{ item.login }})</h3>
<div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}"> <div class="pull-right">
<div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}"> <div class="btn-toolbar" role="toolbar" aria-label="{{ gettext('Action toolbar') }}">
<a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('users.update', item_id = item.id ) }}" title="{{ gettext('Update details of user account &quot;%(item)s&quot;', item = item.login) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a> <div class="btn-group" role="group" aria-label="{{ gettext('Action buttons') }}">
</div> <a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('users.update', item_id = item.id ) }}" title="{{ gettext('Update details of user account &quot;%(item)s&quot;', item = item.login) }}">{{ get_fa_icon('edit') }} {{ gettext('Update') }}</a>
</div> <a data-toggle="tooltip" role="button" class="btn btn-default btn-sm" href="{{ url_for('users.delete', item_id = item.id ) }}" title="{{ gettext('Delete user account &quot;%(item)s&quot;', item = item.login) }}">{{ get_fa_icon('trash') }} {{ gettext('Delete') }}</a>
</div> </div>
<p> </div>
<small> </div>
{{ gettext('Account created:') }} {{ babel_format_datetime(item.createtime) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.createtime) }}) <p>
&nbsp;|&nbsp; <small>
{{ gettext('Last login:') }} {{ gettext('Account created:') }} {{ babel_format_datetime(item.createtime) }} ({{ gettext('before') }} {{ babel_format_timedelta(current_datetime_utc - item.createtime) }})
{%- if item.logintime %} &nbsp;|&nbsp;
{{ gettext('Last login:') }} {{ babel_format_datetime(item.logintime) }} ({{ gettext('before') }} {{ babel_format_timedelta(get_datetime_utc() - item.logintime) }}) {{ gettext('Last login:') }}
{%- else %} {%- if item.logintime %}
{{ gettext('never') }} {{ gettext('Last login:') }} {{ babel_format_datetime(item.logintime) }} ({{ gettext('before') }} {{ babel_format_timedelta(get_datetime_utc() - item.logintime) }})
{%- endif %}
</small>
</p>
<br>
<table class="table table-bordered">
<tbody>
<tr>
<th class="info">{{ gettext('Login (eppn)') }}</th>
<td>{{ item.login | default(gettext('<< unknown >>')) }}</td>
</tr>
<tr>
<th class="info">{{ gettext('Full name') }}</th>
<td>{{ item.fullname | default(gettext('<< unknown >>')) }}</td>
</tr>
<tr>
<th class="info">{{ gettext('Email') }}</th>
<td>{{ item.email | default(gettext('<< unknown >>')) }}</td>
</tr>
<tr>
<th class="info">{{ gettext('Home organization') }}</th>
<td>{{ item.organization | default(gettext('<< unknown >>')) }}</td>
</tr>
<tr>
<th class="info">{{ gettext('Roles') }}</th>
<td>
{%- for role_name in config['ROLES'] %}
{%- if item.has_role(role_name) %}
{{ get_fa_icon('check') }} <span class="label label-success">{{ role_name }}</span>
{%- else %} {%- else %}
{{ get_fa_icon('check_blank') }} <span class="label label-danger">{{ role_name }}</span> {{ gettext('never') }}
{%- endif %} {%- endif %}
{%- endfor %} </small>
</td> </p>
</tr> <br>
<tr> <table class="table table-bordered">
<th class="info">{{ gettext('Group memberships') }}</th> <tbody>
<td> <tr>
{%- if item.memberships %} <th class="info">{{ gettext('Login (eppn)') }}</th>
{%- for subitem in item.memberships %} <td>{{ item.login | default(gettext('<< unknown >>')) }}</td>
<a data-toggle="tooltip" href="{{ url_for('groups.show', item_id = subitem.id ) }}" title="{{ gettext('View details of group &quot;%(item)s&quot;', item = subitem.name) }}"> </tr>
{{ subitem.name }} <tr>
</a>{%- if not loop.last %} | {%- endif %} <th class="info">{{ gettext('Full name') }}</th>
{%- endfor %} <td>{{ item.fullname | default(gettext('<< unknown >>')) }}</td>
{%- else %} </tr>
{{ gettext('<< none >>') }} <tr>
{%- endif %} <th class="info">{{ gettext('Email') }}</th>
</td> <td>{{ item.email | default(gettext('<< unknown >>')) }}</td>
</tr> </tr>
<tr> <tr>
<th class="info">{{ gettext('Group managements') }}</th> <th class="info">{{ gettext('Home organization') }}</th>
<td> <td>{{ item.organization | default(gettext('<< unknown >>')) }}</td>
{%- if item.managements %} </tr>
{%- for subitem in item.managements %} <tr>
<a data-toggle="tooltip" href="{{ url_for('groups.show', item_id = subitem.id ) }}" title="{{ gettext('View details of group &quot;%(item)s&quot;', item = subitem.name) }}"> <th class="info">{{ gettext('Roles') }}</th>
{{ subitem.name }} <td>
</a>{%- if not loop.last %} | {%- endif %} {%- for role_name in config['ROLES'] %}
{%- endfor %} {%- if item.has_role(role_name) %}
{%- else %} {{ get_fa_icon('check') }} <span class="label label-success">{{ role_name }}</span>
{{ gettext('<< none >>') }} {%- else %}
{%- endif %} {{ get_fa_icon('check_blank') }} <span class="label label-danger">{{ role_name }}</span>
</td> {%- endif %}
</tr> {%- endfor %}
<tr> </td>
<th class="info">{{ gettext('Prefered locale') }}</th> </tr>
<td>{% if item.locale %}{{ config['SUPPORTED_LOCALES'][item.locale] }} ({{ item.locale }}){% else %}{{ (gettext('<< unknown >>')) }}{% endif %}</td> <tr>
</tr> <th class="info">{{ gettext('Group memberships') }}</th>
<tr> <td>
<th class="info">{{ gettext('Prefered timezone') }}</th> {%- if item.memberships %}
<td>{% if item.timezone %}{{ item.timezone }}{% else %}{{ (gettext('<< unknown >>')) }}{% endif %}</td> {%- for subitem in item.memberships %}
</tr> <a data-toggle="tooltip" href="{{ url_for('groups.show', item_id = subitem.id ) }}" title="{{ gettext('View details of group &quot;%(item)s&quot;', item = subitem.name) }}">
</tbody> {{ subitem.name }}
</table> </a>{%- if not loop.last %} | {%- endif %}
</div> {%- endfor %}
</div> {%- else %}
{{ gettext('<< none >>') }}
{%- endif %}
</td>
</tr>
<tr>
<th class="info">{{ gettext('Group managements') }}</th>
<td>
{%- if item.managements %}
{%- for subitem in item.managements %}
<a data-toggle="tooltip" href="{{ url_for('groups.show', item_id = subitem.id ) }}" title="{{ gettext('View details of group &quot;%(item)s&quot;', item = subitem.name) }}">
{{ subitem.name }}
</a>{%- if not loop.last %} | {%- endif %}
{%- endfor %}
{%- else %}
{{ gettext('<< none >>') }}
{%- endif %}
</td>
</tr>
<tr>
<th class="info">{{ gettext('Prefered locale') }}</th>
<td>{% if item.locale %}{{ config['SUPPORTED_LOCALES'][item.locale] }} ({{ item.locale }}){% else %}{{ (gettext('<< unknown >>')) }}{% endif %}</td>
</tr>
<tr>
<th class="info">{{ gettext('Prefered timezone') }}</th>
<td>{% if item.timezone %}{{ item.timezone }}{% else %}{{ (gettext('<< unknown >>')) }}{% endif %}</td>
</tr>
</tbody>
</table>
</div>
</div>
{% endblock content %} {% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment