Fix and Enhancements
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
{% if i.wanted %}
|
||||
<li class="text-danger">{% trans %}title_directory_wanted_light{% endtrans %} : {{ i.wantedReason | default('value_no_value'|trans) }}</li>
|
||||
{% endif %}
|
||||
{% if i.dead %}
|
||||
<li class="text-warning">{% trans %}title_directory_dead{% endtrans %}</li>
|
||||
{% endif %}
|
||||
<li>{% trans %}title_informations{% endtrans %}: {{i.gangInfo}}</li>
|
||||
<li>{% trans %}title_gender{% endtrans %}: {{i.gender}}</li>
|
||||
<li>{% trans %}title_phone{% endtrans %}: {{i.phone}}</li>
|
||||
|
||||
@@ -4,16 +4,14 @@
|
||||
{% block subtitle %}#{{ document.id }}: {{ document.getTitle }} {% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% set groupLogo = 'img/nologo.png' %}
|
||||
{% if document.mainGroup %}
|
||||
{% if document.mainGroup.imageSize != 0 %}
|
||||
{% set groupLogo = 'uploads/groups/' ~ document.mainGroup.imageName %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-8 mb-5{% if shared is defined %} mx-5 my-2{% endif %}">
|
||||
|
||||
<div class="row p-2">
|
||||
<div class="col-lg-8 col-xs-12">
|
||||
{% if document.archive %}
|
||||
<div class="card prod-p-card bg-primary background-pattern-white">
|
||||
<div class="card-body">
|
||||
@@ -96,40 +94,20 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-md-4">
|
||||
<div class="col-lg-4 col-xs-12">
|
||||
{% if document.directory is defined and document.directory is not null %}
|
||||
<h3>{% trans %}title_directory_linked{% endtrans %}</h3><hr>
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': document.directory} %}
|
||||
{% endif %}
|
||||
|
||||
{% if document.user is defined and document.user is not null %}
|
||||
<h3>{% trans %}title_user_linked{% endtrans %}</h3><hr>
|
||||
{% include '_cells/userInformations.html.twig' with {'user': document.user} %}
|
||||
{% endif %}
|
||||
{% include '_cells/directoryCard.html.twig' with {'directory': document.directory} %}
|
||||
{% endif %}
|
||||
|
||||
{% if document.user is defined and document.user is not null %}
|
||||
<h3>{% trans %}title_user_linked{% endtrans %}</h3><hr>
|
||||
{% include '_cells/userInformations.html.twig' with {'user': document.user} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if shared is not defined %}
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="addCommentModal" tabindex="-1" role="dialog" aria-labelledby="addCommentModalTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="addCommentModalTitle">{% trans %}title_add_comment{% endtrans %}</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ form(formComment) }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans %}button_cancel{% endtrans %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user