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

94 lines
5.5 KiB
Twig
Raw Normal View History

2016-11-06 08:11:43 +01:00
{% extends "./layout/default" %}
2016-04-03 07:07:17 +02:00
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
2016-04-03 07:07:17 +02:00
{% 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 sortable">
2016-04-03 07:07:17 +02:00
<thead>
<tr>
2016-11-20 15:30:16 +01:00
<th data-defaultsign="_19" class="hidden-xs" colspan="2">&nbsp;</th>
<th data-defaultsign="az">{{ trans('list.email') }}</th>
<th data-defaultsign="month" class="hidden-xs">{{ trans('list.registered_at') }}</th>
2017-01-18 07:28:49 +01:00
<th data-defaultsign="month" class="hidden-xs">{{ trans('list.updated_at') }}</th>
2016-11-08 20:35:30 +01:00
<th class="hidden-xs">{{ trans('list.is_admin') }}</th>
<th class="hidden-xs">{{ trans('list.has_two_factor') }}</th>
2016-04-03 07:07:17 +02:00
<th>{{ trans('list.is_blocked') }}</th>
2016-11-20 15:30:16 +01:00
<th data-defaultsign="az" class="hidden-xs">{{ trans('list.blocked_code') }}</th>
2016-04-03 07:07:17 +02:00
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
2016-11-08 20:35:30 +01:00
<td class="hidden-xs" data-value="{{ user.id }}">
2016-08-04 06:07:53 +02:00
<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>
2017-09-26 09:15:21 +02:00
<a class="btn btn-danger" href="{{ route('admin.users.delete',user.id) }}"><i class="fa fa-trash"></i></a>
2016-08-04 06:07:53 +02:00
</div>
</td>
2016-11-08 20:35:30 +01:00
<td class="hidden-xs" data-value="{{ user.id }}">#{{ user.id }}</td>
<td data-value="{{ user.email }}">
2016-10-15 07:11:53 +02:00
<a href="{{ route('admin.users.show',user.id) }}">{{ user.email }}</a></td>
2016-11-20 17:36:11 +01:00
<td class="hidden-xs" data-value="{{ user.created_at.format('Y-m-d H-i-s') }}">
2016-04-03 07:07:17 +02:00
{{ user.created_at.formatLocalized(monthAndDayFormat) }}
{{ user.created_at.format('H:i') }}
</td>
2017-01-18 07:28:49 +01:00
<td class="hidden-xs" data-value="{{ user.updated_at.format('Y-m-d H-i-s') }}">
{{ user.updated_at.formatLocalized(monthAndDayFormat) }}
{{ user.updated_at.format('H:i') }}
</td>
2016-11-08 20:35:30 +01:00
<td class="hidden-xs" data-value="{% if user.isAdmin %}1{% else %}0{% endif %}">
2016-04-03 10:51:37 +02:00
{% 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>
2016-11-08 20:35:30 +01:00
<td class="hidden-xs" data-value="{% if user.has2FA %}1{% else %}0{% endif %}">
2016-04-03 10:51:37 +02:00
{% 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>
<td data-value="{% if user.blocked %}1{% else %}0{% endif %}">
2016-04-03 10:42:46 +02:00
{% if user.blocked == 1 %}
2016-04-03 10:51:37 +02:00
<small class="text-danger"><i class="fa fa-fw fa-check" title="{{ 'yes'|_ }}"></i></small>
2016-04-03 10:42:46 +02:00
{% else %}
2016-04-03 10:51:37 +02:00
<small class="text-success"><i class="fa fa-fw fa-times" title="{{ 'no'|_ }}"></i></small>
2016-04-03 10:42:46 +02:00
{% endif %}
</td>
2016-11-08 20:35:30 +01:00
<td class="hidden-xs">
2016-04-03 10:42:46 +02:00
<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 styles %}
<link rel="stylesheet" href="css/bootstrap-sortable.css?v={{ FF_VERSION }}" type="text/css" media="all"/>
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}"></script>
{% endblock %}