2024-11-26 20:42:13 +01:00
{% extends 'base.html.twig' %}
{% block title %} = {{ title }} {% endblock %}
{% block body %}
<h1> {{ title }} </h1>
{{ form_start ( form ) }}
{{ form_widget ( form .submit ) }}
<a href=" {{ path ( routecancel ) }} " class="btn btn-secondary ms-1">Annuler</a>
2024-12-06 08:09:07 +01:00
{% if mode != "submit" %} <a href=" {{ path ( routedelete , { id : form .vars .value .id } ) }} " class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a> {% endif %}
2024-11-26 20:42:13 +01:00
2024-12-06 08:09:07 +01:00
<a class="btn btn-info" style="max-width:100%; margin-bottom:15px;" data-bs-toggle="modal" data-bs-target="#mymodal" onClick="ModalLoad('mymodal','Avatar',' {{ path ( 'app_user_crop01' , { endpoint :'avatar' } ) }} ');" title='Ajouter un avatar'>Modifier</a>
<div class="row">
<div class="col-md-6">
<div class="card mt-3">
<div class="card-header">Information</div>
<div class="card-body">
{{ form_row ( form .username ) }}
{{ form_row ( form .password ) }}
{{ form_row ( form .email ) }}
</div>
</div>
2024-11-26 20:42:13 +01:00
</div>
2024-12-06 08:09:07 +01:00
<div class="col-md-6">
<div class="card mt-3">
<div class="card-header">Permissions</div>
<div class="card-body">
{{ form_row ( form .roles ) }}
{{ form_row ( form .companys ) }}
</div>
</div>
</div>
2024-11-26 20:42:13 +01:00
</div>
{{ form_end ( form ) }}
{% endblock %}
{% block localscript %}
<script type="module">
$(document).ready(function() {
$("#user_username").focus();
});
</script>
{% endblock %}