nineskeletor/templates/File/folder.html.twig

51 lines
1.1 KiB
Twig
Raw Normal View History

2023-02-01 09:03:27 +01:00
{% extends 'base.html.twig' %}
{% block localstyle %}
<style>
body { height:auto;}
#page { padding: 0px !important;}
</style>
{% endblock %}
{% block body %}
{{ form_start(form) }}
<p>
{{ form_widget(form.submit) }} <a class="btn btn-secondary" onClick="closeModal();">Annuler</a>
</p>
{% if app.session.flashbag.has('error') %}
<div class='alert alert-danger' style='margin: 5px 0px'>
<strong>Erreur</strong><br>
{% for flashMessage in app.session.flashbag.get('error') %}
{{ flashMessage }}<br>
{% endfor %}
</div>
{% endif %}
{{ form_row(form.folder) }}
{{ form_end(form) }}
{% endblock %}
{% block localscript %}
<script>
function closeModal() {
window.parent.$("#mymodalfull").modal('hide');
}
$('document').ready(function(){
$("#form_folder").focus();
{% if toclose %}
href=parent.location.href;
parent.location.href=href;
{% endif %}
});
</script>
{% endblock %}