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

69 lines
3.1 KiB
Twig
Raw Normal View History

2016-04-03 07:07:17 +02: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>
<th>{{ trans('list.email') }}</th>
<th>{{ trans('list.registered_at') }}</th>
<th>{{ trans('list.is_activated') }}</th>
<th>{{ trans('list.is_blocked') }}</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.email }}</td>
<td>
{{ user.created_at.formatLocalized(monthAndDayFormat) }}
{{ user.created_at.format('H:i') }}
</td>
2016-04-03 10:42:46 +02: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 %}
<small class="text-danger"><i class="fa fa-fw fa-user-times" alt="Yes"></i></small>
{% else %}
<small class="text-success"><i class="fa fa-fw fa-smile-o" alt="No"></i></small>
{% endif %}
</td>
<td>
<small>
{% if user.blocked == 1 %}
{% if user.blocked_code == "" %}
<em>~</em>
{% else %}
{{ user.blocked_code }}
{% endif %}
2016-04-03 07:07:17 +02:00
{% endif %}
2016-04-03 10:42:46 +02:00
</small>
</td>
2016-04-03 07:07:17 +02:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{% endblock %}
{% block styles %}
{% endblock %}