{% extends 'base/adminbase.html.twig' %} {% block title %} {% if editMode %} {% trans %}Modifier la catégorie{% endtrans %} {% else %} {% trans %}Ajouter une catégorie{% endtrans %} {% endif %} {% endblock %} {% block body %}
{{ form_start(formCategory, {'attr': {'novalidate': 'novalidate'} }) }}

{% if editMode %} {% trans %}Modifier la catégorie{% endtrans %} {% else %} {% trans %}Ajouter une catégorie{% endtrans %} {% endif %}

Français

{{ form_row(formCategory.name, {'label': "Nom :", 'attr': {'placeholder': "Ex.: Ski", 'class': 'form-control'}}) }}
{{ form_row(formCategory.ranking, {'label': "Position :", 'attr': {'placeholder': "Ordre croissant", 'class': 'form-control'}}) }}
{{ form_label(formCategory.display, 'La catégorie est-elle visible sur la page principale ? :', {'label_attr': {'class': 'status'}}) }} {{ form_widget(formCategory.display, {'attr': {'class': 'form-check-inline '}}) }}
{{ form_row(formCategory.description, {'label': "Description :", 'attr': {'placeholder': "Description bréve de la catégorie...", 'class': 'form-control'}}) }}
{{ form_row(formCategory.iconFile, {'label': "Icône (en format jpeg, png ou svg) :", 'attr': {'placeholder': "Icône"}})}}
{% if editMode %}
{% if category.iconName %}
{% trans %}Icône actuelle{% endtrans %}
{% endif %}
{% endif %}
{{ form_row(formCategory.altText, {'label': "Texte alternatif :", 'attr': {'placeholder': "Ex. : Icône d'un skieur", 'class': 'form-control'}}) }}
{{ form_row(formCategory.button, {'label': "Texte du bouton :", 'attr': {'placeholder': "Ex. : Voir plus", 'class': 'form-control'}}) }}
{{ form_row(formCategory.link, {'label': "Lien vers...", 'attr': {'placeholder': "Ex. : Voir plus", 'class': 'form-control'}}) }}

English

{{ form_row(formCategory.ename, {'label': "Nom de la catégorie :", 'attr': {'placeholder': "Ex.: Ski", 'class': 'form-control'}}) }}
{{ form_row(formCategory.ealtText, {'label': "Texte alternatif :", 'attr': {'placeholder': "Ex. : Icône d'un skieur", 'class': 'form-control'}}) }}
{{ form_row(formCategory.edescription, {'label': "Description :", 'attr': {'placeholder': "Description bréve de la catégorie...", 'class': 'form-control'}}) }}
{{ form_row(formCategory.ebutton, {'label': "Texte du bouton :", 'attr': {'placeholder': "Ex. : Voir plus", 'class': 'form-control'}}) }}
{{ form_row(formCategory.elink, {'label': "Lien vers...", 'attr': {'placeholder': "Ex. : Voir plus", 'class': 'form-control'}}) }}
{{ form_errors(formCategory) }}
{% include 'base/save_button.html.twig' %}
{{ form_end(formCategory) }}
{% endblock %}