<h3>
    <span class="fas fa-wrench"></span>
    {% trans %}Settings{% endtrans %}
    {{ pageSetVar('title', 'Legal settings'|trans) }}
</h3>

<p class="alert alert-danger"><strong>{% trans %}Important Usage Note{% endtrans %}</strong>: {% trans with {'%dir%': '"/Resources/views/en"', '%dir2%': '"templates/bundles/ZikulaLegalModule/"'} %}The provided legal statements are samples only. They need to be adapted to your specific needs and locales. You will find the content of the statements in files in the %dir% directory. These templates can be overridden by theme templates, or by global templates you would create in the %dir2% directory (in the appropriate sub-directory for the language you are writing for).{% endtrans %}</p>

{{ form_start(form) }}
{{ form_errors(form) }}
<fieldset>
    <legend>{% trans %}Legal document types{% endtrans %}</legend>
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_LEGALNOTICE_ACTIVE'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_TERMS_ACTIVE'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_PRIVACY_ACTIVE'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_TRADECONDITIONS_ACTIVE'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_CANCELLATIONRIGHTPOLICY_ACTIVE'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_ACCESSIBILITY_ACTIVE'))) }}
</fieldset>
<fieldset>
    <legend>{% trans %}Custom urls{% endtrans %}</legend>
    <p>{% trans %}The following fields allow to reference any custom url. As soon as an url is given it will be used instead of the normal Legal templates. So you can now use any page you want for displaying and managing your legal data.{% endtrans %}</p>
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_LEGALNOTICE_URL'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_TERMS_URL'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_PRIVACY_URL'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_TRADECONDITIONS_URL'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_CANCELLATIONRIGHTPOLICY_URL'))) }}
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_ACCESSIBILITY_URL'))) }}
</fieldset>
<fieldset>
    <legend>{% trans %}Compliance{% endtrans %}</legend>
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_EUCOOKIE'))) }}
</fieldset>
<fieldset>
    <legend>{% trans %}Further settings{% endtrans %}</legend>
    {{ form_row(attribute(form, constant('Zikula\\LegalModule\\Constant::MODVAR_MINIMUM_AGE'))) }}
    {{ form_row(form.resetagreement) }}
</fieldset>
<div class="form-group">
    <div class="col-md-9 offset-md-3">
        {{ form_widget(form.save) }}
        {{ form_widget(form.cancel) }}
    </div>
</div>
{{ form_end(form) }}
