V-Beta-1.0.0
Vision is out of alpha !
This commit is contained in:
12
templates/directory/create.html.twig
Normal file
12
templates/directory/create.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_directory_creation{% endtrans %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto p-3 py-md-5">
|
||||
{{ form(form) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
11
templates/directory/edit.html.twig
Normal file
11
templates/directory/edit.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_directory_edition{% endtrans %} #{{directory.id}} - "{{ directory.fullName }}"{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
{{ form(form) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
33
templates/directory/list.html.twig
Normal file
33
templates/directory/list.html.twig
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_directory_list{% endtrans %}{% endblock %}
|
||||
{% block subtitle %}{% trans %}title_directory_list{% endtrans %}{% if app.user.hasPermission('group_administrate') %} <a href="{{ path('directory_create') }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a>{% endif %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-5">
|
||||
{{form(searchForm)}}
|
||||
</div>
|
||||
<div class="col">
|
||||
{% if wanted %}
|
||||
<a href="{{ path('directory_list') }}" class="btn btn-primary my-1">{% trans %}button_exit_wanted_directories{% endtrans %}</a>
|
||||
{% else %}
|
||||
<a href="{{ path('directory_list_wanted') }}" class="btn btn-info my-1">{% trans %}button_go_to_wanted_directories{% endtrans %}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if dead %}
|
||||
<a href="{{ path('directory_list') }}" class="btn btn-primary my-1">{% trans %}button_exit_dead_directories{% endtrans %}</a>
|
||||
{% else %}
|
||||
<a href="{{ path('directory_list_dead') }}" class="btn btn-info my-1">{% trans %}button_go_to_dead_directories{% endtrans %}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
{% include '_cells/directoryTable.html.twig' with {'directories': pagination} %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ knp_pagination_render(pagination) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
31
templates/directory/merge.html.twig
Normal file
31
templates/directory/merge.html.twig
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_directory_merge{% endtrans %} : #{{ deletedDirectory.id }} - {{ deletedDirectory.fullname }} into #{{ baseDirectory.id }} - {{ baseDirectory.fullname }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>Base Directory</h2>
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': baseDirectory} %}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Deleted Directory</h2>
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': deletedDirectory} %}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Merged Directory</h2>
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': keepedDirectory} %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<form method="POST">
|
||||
<input type="hidden" value='mergethis' name="validatemerge" id="validatemerge">
|
||||
<a href="{{ path('directory_view', {'id': keepedDirectory.id}) }}" class="btn btn-secondary" data-dismiss="modal">{% trans %}button_cancel{% endtrans %}</a>
|
||||
<button type="submit" class="btn btn-primary">{% trans %}button_validate_directories_merge{% endtrans %}</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
52
templates/directory/view.html.twig
Normal file
52
templates/directory/view.html.twig
Normal file
@@ -0,0 +1,52 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_directory_view{% endtrans %} : #{{ directory.id }} - {{ directory.fullname }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-6">
|
||||
|
||||
<h4>{% trans %}title_certificate{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.certificates.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'certificate', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Certificate, notype: true, limit: 3, nodirectoryinfo: true,} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_complaint{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.complaints.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'complaint', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Complaint, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_licencewithdrawals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.licenceWithdrawals.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'licenceWithdrawal', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': LicenceWithdrawal, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_infringements{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.infringements.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'infringement', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Infringement, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_jails{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.jails.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'jail', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Jail, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_bracelets{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.bracelets.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'bracelet', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Bracelet, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_criminals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.criminals.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'criminal', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Criminal, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_stolen_vehicles{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.stolenvehicles.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'stolenvehicle', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Stolenvehicle, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
<h4>{% trans %}title_medicals{% endtrans %} {% if is_granted('create', classMetadataToEntity(directory.medicals.typeClass, app.user)) %} <a href="{{ path('document_create_directory', {type: 'medical', directory: directory.id}) }}"><span class="badge rounded-pill bg-success"><i class="fa fa-plus"></i> {% trans %}button_create{% endtrans %}</span></a> {% endif %}</h4>
|
||||
{% include '_cells/documentTable.html.twig' with {'documents': Medical, notype: true, limit: 3, nodirectoryinfo: true} %}
|
||||
<hr class="my-3">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-xl-6">
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': directory} %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user