firefly-iii/resources/views/admin/users/index.twig

97 lines
5.0 KiB
Twig
Raw Normal View History

2016-04-03 00:07:17 -05:00
{% extends "./layout/default.twig" %}
{% block breadcrumbs %}
{{ Breadcrumbs.renderIfExists }}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ 'all_users'|_ }}</h3>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-condensed table-sortable">
<thead>
<tr>
2016-04-03 03:51:37 -05:00
<th colspan="2">&nbsp;</th>
2016-04-03 00:07:17 -05:00
<th>{{ trans('list.email') }}</th>
<th>{{ trans('list.registered_at') }}</th>
<th>{{ trans('list.registered_from') }}</th>
<th>{{ trans('list.confirmed_from') }}</th>
2016-04-03 03:51:37 -05:00
<th>{{ trans('list.is_admin') }}</th>
<th>{{ trans('list.has_two_factor') }}</th>
2016-04-03 00:07:17 -05:00
<th>{{ trans('list.is_activated') }}</th>
<th>{{ trans('list.is_blocked') }}</th>
2016-04-03 03:51:37 -05:00
<th>{{ trans('list.blocked_code') }}</th>
2016-04-03 00:07:17 -05:00
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
2016-08-03 23:07:53 -05:00
<td>
<div class="btn-group btn-group-xs">
<a class="btn btn-default" href="{{ route('admin.users.edit',user.id) }}"><i class="fa fa-pencil"></i></a>
</div>
</td>
2016-04-03 03:51:37 -05:00
<td>#{{ user.id }}</td>
2016-04-03 00:07:17 -05:00
<td>{{ user.email }}</td>
<td>
{{ user.created_at.formatLocalized(monthAndDayFormat) }}
{{ user.created_at.format('H:i') }}
</td>
<td>
{{ Preferences.getForUser(user,"registration_ip_address").data }}
</td>
<td>
{{ Preferences.getForUser(user,"confirmation_ip_address").data }}
</td>
2016-04-03 03:51:37 -05:00
<td>
{% if user.isAdmin %}
<small class="text-success"><i class="fa fa-fw fa-check"></i></small>
{% else %}
<small class="text-danger"><i class="fa fa-fw fa-times"></i></small>
{% endif %}
</td>
<td>
{% if user.has2FA %}
<small class="text-success"><i class="fa fa-fw fa-check"></i></small>
{% else %}
<small class="text-danger"><i class="fa fa-fw fa-times"></i></small>
{% endif %}
</td>
2016-04-03 03:42:46 -05:00
<td>
{% if user.activated %}
<small class="text-success"><i class="fa fa-fw fa-check"></i></small>
{% else %}
<small class="text-danger"><i class="fa fa-fw fa-times"></i></small>
{% endif %}
</td>
<td>
{% if user.blocked == 1 %}
2016-04-03 03:51:37 -05:00
<small class="text-danger"><i class="fa fa-fw fa-check" title="{{ 'yes'|_ }}"></i></small>
2016-04-03 03:42:46 -05:00
{% else %}
2016-04-03 03:51:37 -05:00
<small class="text-success"><i class="fa fa-fw fa-times" title="{{ 'no'|_ }}"></i></small>
2016-04-03 03:42:46 -05:00
{% endif %}
</td>
<td>
<small>
{% if user.blocked == 1 %}
{% if user.blocked_code == "" %}
<em>~</em>
{% else %}
{{ user.blocked_code }}
{% endif %}
2016-04-03 00:07:17 -05:00
{% endif %}
2016-04-03 03:42:46 -05:00
</small>
</td>
2016-04-03 00:07:17 -05:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}