{% extends 'base.html.twig' %}

{% block title %}{% trans %}title_user_profile{% endtrans %}{% endblock %}
{% block subtitle %}{{ user.fullName }}{% endblock %}

{% block body %}
<div class="row">
    <div class="col-12 col-lg-4 mb-5">
      <h2>{% trans %}title_informations{% endtrans %}</h2>
      <hr>
      {% include '_cells/userInformations.html.twig' with {'user': user} %}
    </div>
    <div class="col-12 col-lg-4">
      <h2>{% trans %}title_actions{% endtrans %}</h2>
      <hr>
      <p><a href="{{ path('user_view_documents', {'id': user.id}) }}" class="btn btn-success">{% trans %}button_view_user_documents{% endtrans %}</a></p>
      {% if app.user.hasPermission('group_sanction') %}
      <p><a href="{{ path('user_view_sanctions', {'id': user.id}) }}" class="btn btn-warning">{% trans %}button_view_user_sanctions{% endtrans %}</a></p>
      {% endif %}
    </div>
  </div>
{% endblock %}
