{% extends 'base/adminbase.html.twig' %} {% block title %} {% if editMode %} {% trans %}Modifier une bannière{% endtrans %} {% else %} {% trans %}Ajouter une bannière{% endtrans %} {% endif %} {% endblock %} {% block body %}
{{ form_start(formHero, {'attr': {'novalidate': 'novalidate'} }) }}

{% if editMode %} {% trans %}Modifier une bannière{% endtrans %} {% else %} {% trans %}Ajouter une bannière{% endtrans %} {% endif %}

Français

{{ form_row(formHero.name, {'label': "Nom de la bannière :", 'attr': {'placeholder': "Ce nom ne sera pas visible", 'class': 'form-control'}})}}
{{ form_row(formHero.ranking, {'label': "Position :", 'attr': {'placeholder': "Bannière nᵒ ?", 'class': 'form-control'}})}}
{{ form_label(formHero.display, 'La bannière est-elle visible ? :', {'label_attr': {'class': 'status'}}) }} {{ form_widget(formHero.display, {'attr': {'class': 'form-check-inline pr-2'}})}}
{{ form_row(formHero.title, {'label': "Titre :", 'attr': {'placeholder': "Intitulé de la bannière", 'class': 'form-control'}})}}
{{ form_row(formHero.lineOne, {'label': "Ligne 1 :", 'attr': {'placeholder': "Première ligne", 'class': 'form-control'}})}}
{{ form_row(formHero.lineTwo, {'label': "Ligne 2 :", 'attr': {'placeholder': "Deuxième ligne", 'class': 'form-control'}})}}
{{ form_label(formHero.color, 'Quelle est la couleur du texte ? :', {'label_attr': {'class': 'status'}}) }} {{ form_widget(formHero.color, {'attr': {'class': 'form-check-inline pr-2'}})}}
{{ form_row(formHero.button, {'label': "Texte du bouton :", 'attr': {'placeholder': "Ex.: En savoir plus", 'class': 'form-control'}})}}
{{ form_row(formHero.link, {'label': "Lien vers :", 'attr': {'placeholder': "Ex.: ski", 'class': 'form-control'}})}}
{{ form_row(formHero.imageFile, {'label': "Bannière (en format jpeg, png ou svg - 1920 x 1440) :", 'attr': {'placeholder': "Bannière"}})}}
{% if editMode %}
{% if hero.imageName %}
{% trans %}Bannière actuelle{% endtrans %}
{% endif %}
{% endif %}
{{ form_row(formHero.altText, {'label': "Texte alternatif :", 'attr': {'placeholder': "Ex.: Image d'un skieur", 'class': 'form-control'}})}}

English

{{ form_row(formHero.etitle, {'label': "Titre :", 'attr': {'placeholder': "Ex.: Qui sommes nous?", 'class': 'form-control'}})}}
{{ form_row(formHero.elineOne, {'label': "Ligne 1 :", 'attr': {'placeholder': "Ex.: Nous sommes...", 'class': 'form-control'}}) }}
{{ form_row(formHero.elineTwo, {'label': "Ligne 2 :", 'attr': {'placeholder': "Ex.: ...les meilleurs", 'class': 'form-control'}})}}
{{ form_row(formHero.ebutton, {'label': "Texte du bouton :", 'attr': {'placeholder': "Ex.: Plus", 'class': 'form-control'}})}}
{{ form_row(formHero.elink, {'label': "Lien vers :", 'attr': {'placeholder': "Ex.: ski", 'class': 'form-control'}})}}
{{ form_row(formHero.ealtText, {'label': "Texte alternatif :", 'attr': {'placeholder': "Ex.: Image d'un skieur", 'class': 'form-control'}})}}
{{ form_errors(formHero) }}
{% include 'base/save_button.html.twig' %} {% trans %}Annuler{% endtrans %}
{{ form_end(formHero) }}
{% endblock %}