41 lines
1.3 KiB
Twig
41 lines
1.3 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=="update" %}<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%}
|
|
|
|
{% include('include/error.html.twig') %}
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 mx-auto">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Information</div>
|
|
<div class="card-body">
|
|
{{ form_row(form.num01) }}
|
|
{{ form_row(form.num02) }}
|
|
{{ form_row(form.title) }}
|
|
{{ form_row(form.category) }}
|
|
{{ form_row(form.icon) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block localscript %}
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#accounting_num01").focus();
|
|
});
|
|
</script>
|
|
{% endblock %}
|