See the README for current tweaks
This commit is contained in:
80
templates/pages/group.html.twig
Normal file
80
templates/pages/group.html.twig
Normal file
@@ -0,0 +1,80 @@
|
||||
{% extends "@admin/pages/group.html.twig" %}
|
||||
|
||||
{% block body_matter %}
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<div id="view-group" class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{translate('GROUP.SUMMARY')}}</h3>
|
||||
{% if 'tools' not in tools.hidden %}
|
||||
<div class="box-tools pull-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-cog"></i> <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu box-tool-menu">
|
||||
{% block tools %}
|
||||
<li>
|
||||
<a href="#" class="js-group-edit" data-slug="{{group.slug}}">
|
||||
<i class="fas fa-edit fa-fw"></i> {{translate('EDIT')}}
|
||||
</a>
|
||||
</li>
|
||||
{% if 'delete' not in tools.hidden %}
|
||||
<li>
|
||||
<a href="#" class="js-group-delete" data-slug="{{group.slug}}">
|
||||
<i class="fas fa-trash-alt fa-fw"></i> {{translate('DELETE')}}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="box-body box-profile">
|
||||
<div class="text-center">
|
||||
<i class="{{group.icon}} fa-5x"></i>
|
||||
</div>
|
||||
|
||||
<h3 class="profile-username text-center">{{group.name}}</h3>
|
||||
|
||||
{% if 'description' not in fields.hidden %}
|
||||
<p class="text-muted">
|
||||
{{group.description}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if 'users' not in fields.hidden %}
|
||||
<hr>
|
||||
<strong><i class="fas fa-users margin-r-5"></i> {{ translate('USER', 2)}}</strong>
|
||||
<p class="badge bg-blue box-profile-property">
|
||||
{{group.users.count}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% block group_profile %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div id="widget-group-users" class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><i class="fas fa-fw fa-user"></i> {{translate('USER', 2)}}</h3>
|
||||
{% include "tables/table-tool-menu.html.twig" %}
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{% include "tables/users.html.twig" with {
|
||||
"table" : {
|
||||
"id" : "table-group-users"
|
||||
}
|
||||
}
|
||||
%}
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="button" class="btn btn-success js-user-create">
|
||||
<i class="fas fa-plus-square"></i> {{translate("USER.CREATE")}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user