50 lines
1.7 KiB
Twig
50 lines
1.7 KiB
Twig
{% 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>
|
|
{%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%}
|
|
|
|
|
|
<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>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block localscript %}
|
|
<script type="module">
|
|
$(document).ready(function() {
|
|
$("#user_username").focus();
|
|
});
|
|
</script>
|
|
{% endblock %}
|