{% if form is defined %}
{% form_theme form "util/vaciFacil-layout.twig" %}
{% endif %}
<!doctype html>
<html lang="{{ app.request.locale|default(meta.locale) }}">
<head>
<meta charset="UTF-8">
<title>{{ meta.title|default("UniCathedral") }}</title>
<link href="{{ asset("/img/png/nti.png") }}" rel="icon" />
<link href="{{ asset("/css/bootstrap.min.css") }}" rel="stylesheet" type="text/css" />
<link href="{{ asset("/css/vaciFacil.css") }}" rel="stylesheet" type="text/css" />
<link href="{{ asset("/css/selectize.css") }}" rel="stylesheet" type="text/css" />
<link href="{{ asset("/css/vaciFacil-selectize.css") }}" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<!--suppress CssUnusedSymbol -->
<style>.popover { max-width: unset; }</style>
{% block head_css %}{% endblock %}
<script type="application/javascript" src="{{ asset("/js/jquery-3.6.1.min.js") }}"></script>
<script type="application/javascript" src="{{ asset("/js/popper.min.js") }}"></script>
<script type="application/javascript" src="{{ asset("/js/bootstrap.bundler.min.js") }}"></script>
<script type="application/javascript" src="{{ asset("/js/vaciFacil.js") }}"></script>
<script type="application/javascript" src="{{ asset("/js/selectize.js") }}"></script>
<script type="application/javascript" src="{{ asset("/js/vaciFacil-form.js") }}"></script>
<script type="application/javascript">
function copy(element, selector)
{
navigator.clipboard.writeText($(selector).html());
$(element).text("{{ "text.copied"|trans({}, null) }}");
}
function resetText(element)
{
$(element).text("{{ "button.copy.to_clipboard"|trans }}");
}
window.onscroll = function() { scrollFunction() };
</script>
{% block head_js %}
<script type="application/javascript">
$(document).ready(function() { form_init(); });
</script>
{% endblock %}
</head>
<body style="background-color: transparent">
<div id="UniCa-container" class="{{ divClass|default("container my-3") }}">
{% include "util/help.html.twig" %}
<div id="flashes" class="container">
{% include "util/flashes.html.twig" %}
</div>
{% block form %}
{{ form_start(form, form_attr|default({})) }}
{% if buttonsOnTop|default(false) %}
<div class="row mb-2 mx-auto">
{% for button in form|filter(field => "button" in field.vars.block_prefixes) %}
<div class="col">
{{ form_widget(button) }}
</div>
{% endfor %}
</div>
{% endif %}
{% for field in form|filter(field => "button" not in field.vars.block_prefixes and "hidden" not in field.vars.block_prefixes) %}
{{ form_row(field) }}
{% endfor %}
{% if not buttonsOnTop|default(false) %}
<div class="row mb-2 mx-auto">
{% for button in form|filter(field => "button" in field.vars.block_prefixes) %}
<div class="col">
{{ form_widget(button) }}
</div>
{% endfor %}
</div>
{% endif %}
{% block form_body %}{% endblock %}
{{ form_end(form) }}
{% endblock %}
</div>
<button id="topButton" onclick="topFunction()">{{ "button.to.top"|trans }}</button>
</body>
</html>