V-Beta-1.0.0

Vision is out of alpha !
This commit is contained in:
Xbird
2022-02-02 17:46:29 +01:00
parent 797bf35b47
commit 9f22f5b1ee
2297 changed files with 278438 additions and 76 deletions

View File

@@ -0,0 +1,42 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_list{% endtrans %}{% endblock %}
{% block subtitle %}{% trans %}title_group_list{% endtrans %} <a href="{{ path('admin_group_add') }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a>{% endblock %}
{% block body %}
<div class="row">
<div class="col-5">{{ form(searchForm) }}</div>
</div>
<div class="row">
<div class="col-md-8">
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">{% trans %}title_icon{% endtrans %}</th>
<th scope="col">{% trans %}title_name{% endtrans %}</th>
<th scope="col">{% trans %}title_created_at{% endtrans %}</th>
<th scope="col">{% trans %}title_actions{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for i in pagination %}
{% set groupLogo = 'img/nologo.png' %}
{% if i.imageSize != 0 %} {% set groupLogo = 'uploads/groups/' ~ i.imageName %} {% endif %}
<tr>
<th scope="row">{{i.id}}</th>
<td><img src="{{ asset(groupLogo) }}" alt="{{i.shortname}}" class="img-icon"></td>
<td>{{ i.name }}</td>
<td>{{i.createdAt |date('_datetime.format'|trans)}}</td>
<td>
{% include '_cells/adminGroupActions.html.twig' with {'group': i} %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="row">{{ knp_pagination_render(pagination) }}</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_creation{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,36 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_view_documents{% endtrans %}{% endblock %}
{% block body %}
{% set groupLogo = 'img/nologo.png' %}
{% if group.imageSize != 0 %}
{% set groupLogo = 'uploads/groups/' ~ group.imageName %}
{% endif %}
<div class="row">
<div class="col-12 col-md-5">{{form(searchForm)}}</div>
</div>
<div class="row">
<div class="col-md-8">
<h2>{% trans %}title_documents{% endtrans %}</h2>
<hr>
{% include '_cells/documentTable.html.twig' with {'documents': pagination} %}
</div>
<div class="col-md-4">
<h2>{% trans %}title_informations{% endtrans %}</h2>
<div class="row">
<div class="col-md-12 my-5">
<div class="text-center">
<img src="{{ asset(groupLogo) }}" alt="{{group.shortname}}" class="img-fluid">
</div>
<h3>{{group.name}}</h3>
<h4>{% trans %}title_shortname{% endtrans %}: <small>{{group.shortname}}</small><span class="float-end">{% include '_cells/adminGroupActions.html.twig' with {'group': group} %}</span></h4>
</div>
</div>
</div>
</div>
<div class="row">{{ knp_pagination_render(pagination) }}</div>
{% endblock %}

View File

@@ -0,0 +1,29 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_edition{% endtrans %}{% endblock %}
{% block body %}
{% set groupLogo = 'img/nologo.png' %}
{% if group.imageSize != 0 %}
{% set groupLogo = 'uploads/groups/' ~ group.imageName %}
{% endif %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
<div class="col-lg-6">
<div class="card">
<div class="card-header">{% trans %}form_label_group_logo{% endtrans%}</div>
<div class="card-body">
<p class="card-text">
<a data-toggle="lightbox" href="{{ asset(groupLogo) }}">
<img class="img-fluid" src="{{ asset(groupLogo) }}" alt="{{ group.name}}">
</a>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_rank_creation{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_rank_edition{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,22 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_rank_view{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
<h2>{% trans %}title_rank{% endtrans %}: {{rank.name}} {% include '_cells/adminRankActions.html.twig' with {'rank': rank} %}</h2>
<hr>
<h3>{% trans %}title_members{% endtrans %}</h3>
<hr>
{% include '_cells/adminUserTable.html.twig' with {'users': rank.users} %}
</div>
<div class="col-lg-6">
<h3>{% trans %}title_permissions{% endtrans %}</h3>
<hr>
{% for i in rank.permissions %}
<p>{{i}}</p>
{% endfor %}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_subgroup_creation{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_subgroup_edition{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_subgroup_view{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
<h2>{% trans %}title_subgroup{% endtrans %}: {{subgroup.name}} {% include '_cells/adminSubGroupActions.html.twig' with {'subgroup': subgroup} %}</h2>
<hr>
<h3>{% trans %}title_members{% endtrans %}</h3>
<hr>
{% include '_cells/adminUserTable.html.twig' with {'users': subgroup.users} %}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,101 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_group_view{% endtrans %}{% endblock %}
{% block body %}
{% set groupLogo = 'img/nologo.png' %}
{% if group.imageSize != 0 %}
{% set groupLogo = 'uploads/groups/' ~ group.imageName %}
{% endif %}
<div class="row">
<div class="col-md-8">
<h2>{% trans %}title_group_ranks{% endtrans %} <a href="{{ path('admin_group_rank_add', {id: group.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a></h2>
<hr>
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">{% trans %}title_name{% endtrans %}</th>
<th scope="col">{% trans %}title_shortname{% endtrans %}</th>
<th scope="col">{% trans %}title_power{% endtrans %}</th>
<th scope="col">{% trans %}title_created_at{% endtrans %}</th>
<th scope="col">{% trans %}title_actions{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for i in group.ranks %}
<tr>
<th scope="row">{{i.id}}</th>
<td>{{ i.name }}</td>
<td>{{ i.shortname }}</td>
<td>{{ i.power }}</td>
<td>{{i.createdAt |date('_datetime.format'|trans)}}</td>
<td>
{% include '_cells/adminRankActions.html.twig' with {'rank': i} %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>{% trans %}title_group_subgroups{% endtrans %} <a href="{{ path('admin_group_subgroup_add', {id: group.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a></h2>
<hr>
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">{% trans %}title_name{% endtrans %}</th>
<th scope="col">{% trans %}title_shortname{% endtrans %}</th>
<th scope="col">{% trans %}title_created_at{% endtrans %}</th>
<th scope="col">{% trans %}title_actions{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for i in group.subGroups %}
<tr>
<th scope="row">{{i.id}}</th>
<td>{{ i.name }}</td>
<td>{{ i.shortname }}</td>
<td>{{i.createdAt |date('_datetime.format'|trans)}}</td>
<td>
{% include '_cells/adminSubGroupActions.html.twig' with {'subgroup': i} %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>{% trans %}title_members{% endtrans %}</h2>
<hr>
{% include '_cells/adminUserTable.html.twig' with {'users': group.users} %}
<h2>{% trans %}title_documents{% endtrans %}</h2>
<hr>
<a href="{{ path('admin_group_documents', {id: group.id}) }}" class="btn btn-primary">{{ 'button_group_view_documents'|trans }}</a>
</div>
<div class="col-md-4">
<h2>{% trans %}title_informations{% endtrans %}</h2>
<div class="row">
<div class="col-md-12 my-5">
<div class="text-center">
<img src="{{ asset(groupLogo) }}" alt="{{group.shortname}}" class="img-fluid">
</div>
<h3>{{group.name}}</h3>
<h4>{% trans %}title_shortname{% endtrans %}: <small>{{group.shortname}}</small><span class="float-end">{% include '_cells/adminGroupActions.html.twig' with {'group': group} %}</span></h4>
</div>
<div class="col-md-12">
<h6>{% trans %}title_motd{% endtrans %}</h6>
<hr>
<div class="border-start p-3">
<div class="card">
<div class="card-body">{{ app.user.mainGroup.motd | raw }}</div>
<div class="card-footer">{% trans %}title_last_update{% endtrans %} : {{ app.user.mainGroup.motdUpdatedAt | date('_datetime.format'|trans) }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,101 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_administration{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-md-6">
<div class="card flat-card">
<div class="row-table">
<div class="col-sm-6 card-body br">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">person</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ users|length }}</h5>
<span>{% trans %}title_users{% endtrans %}</span>
</div>
</div>
</div>
<div class="col-sm-6 d-none d-md-table-cell d-lg-table-cell d-xl-table-cell card-body br">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">sticky_note_2</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ documents|length }}</h5>
<span>{% trans %}title_documents{% endtrans %}</span>
</div>
</div>
</div>
<div class="col-sm-6 card-body">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">account_box</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ directories|length }}</h5>
<span>{% trans %}title_directories{% endtrans %}</span>
</div>
</div>
</div>
</div>
<div class="row-table">
<div class="col-sm-6 card-body br">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">accessible</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ gangs|length }}</h5>
<span>{% trans %}title_gangs{% endtrans %}</span>
</div>
</div>
</div>
<div class="col-sm-6 d-none d-md-table-cell d-lg-table-cell d-xl-table-cell card-body br">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">folder_special</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ folders|length }}</h5>
<span>{% trans %}title_folders{% endtrans %}</span>
</div>
</div>
</div>
<div class="col-sm-6 card-body">
<div class="row">
<div class="col-sm-4">
<i class="material-icons-two-tone text-primary mb-1">people</i>
</div>
<div class="col-sm-8 text-md-center">
<h5>{{ groups|length }}</h5>
<span>{% trans %}title_groups{% endtrans %}</span>
</div>
</div>
</div>
</div>
</div>
<h6>{% trans %}title_last_users{% endtrans %}</h6>
<hr>
{% include '_cells/adminUserTable.html.twig' with {'users': users, 'noaction': true, 'noemail': true} %}
<h6>{% trans %}title_last_gangs{% endtrans %}</h6>
<hr>
{% include '_cells/documentTable.html.twig' with {'documents': gangs, 'noaction': true} %}
</div>
<div class="col-md-6">
<h6>{% trans %}title_last_directories{% endtrans %}</h6>
<hr>
{% include '_cells/directoryTable.html.twig' with {'directories': directories, 'noaction': true} %}
<h6>{% trans %}title_last_documents{% endtrans %}</h6>
<hr>
{% include '_cells/documentTable.html.twig' with {'documents': documents, 'noaction': true} %}
<h6>{% trans %}title_last_folders{% endtrans %}</h6>
<hr>
{% include '_cells/documentTable.html.twig' with {'documents': folders, 'noaction': true} %}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_administration_logs{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-12">
<table class="table table-dark table-striped">
<thead>
<tr>
<th scope="col">fichier</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{% for i in files %}
<tr>
<th scope="row">{{i.filename}}</th>
<td>{% include '_cells/adminLogsActions.html.twig' with {'filename': i.filename} %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,28 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_administration_logs{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-12">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold">
{{ name }} {% include '_cells/adminLogsActions.html.twig' with {'filename': name} %}
</h6>
</div>
<div class="card-body">
<pre class="text-wrap">
{{ content |raw |nl2br}}
</pre>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_users_list{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-5">{{form(searchForm)}}</div>
</div>
<div class="row">
<div class="col-8">
{% include '_cells/adminUserTable.html.twig' with {'users': pagination} %}
</div>
</div>
<div class="row">{{ knp_pagination_render(pagination) }}</div>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_user_edition{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-6">
{{form(form)}}
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,21 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_user_view{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col-md-4">
<h2>{% trans %}title_informations{% endtrans %} - {% trans %}title_admin_version{% endtrans %}</h2>
<hr>
{% include '_cells/adminUserActions.html.twig' with {'user': user} %}
<hr>
{% include '_cells/adminUserInformations.html.twig' with {'user': user} %}
</div>
<div class="col-lg-6">
<h2>{% trans %}title_documents{% endtrans %}</h2>
<hr>
{% include '_cells/documentTable.html.twig' with {'documents': pagination} %}
<div class="row">{{ knp_pagination_render(pagination) }}</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends 'base.html.twig' %}
{% block title %}{% trans %}title_administration_watchdog{% endtrans %}{% endblock %}
{% block subtitle %}{% trans %}subtitle_administration_watchdog{% endtrans %}{% endblock %}
{% block body %}
<div class="row">
<div class="col">
{% include '_cells/historyDisplay.html.twig' with {'history': pagination} %}
</div>
</div>
<div class="row">
{{ knp_pagination_render(pagination) }}
</div>
{% endblock %}