{%extends 'layout.html.twig' %} {% block body %} {{ parent() }}
{% if app.user.role == 'ROLE_ADMIN' %} Listar Trivial > {% endif %} {% if app.user.role == 'ROLE_TUTOR' %} Listar Trivial > {% endif %}
{{ form_start(form,{ 'attr' :{'role':'form'} }) }}
{{ form_label(form.name) }} {{ form_widget(form.name, { 'attr' : {'class': 'form-control', 'placeholder' : 'Nombre'} }) }} {{ form_errors(form.name) }}
{{ form_label(form.imageFile, "Imagen") }} {{ form_widget(form.imageFile, { 'attr' : {'class': 'form-control', 'placeholder' : 'Imagen del trivial'} }) }} {{ form_errors(form.imageFile) }}
{{ form_label(form.description) }} {{ form_widget(form.description, { 'attr' : {'class': 'form-control', 'placeholder' : 'DescripciĆ³n'} }) }} {{ form_errors(form.description) }}
{{ form_label(form.modality, "Modalidad") }} {{ form_widget(form.modality, { 'attr' : {'class': 'form-control modality-choice'} }) }} {{ form_errors(form.modality) }}
{{ form_label(form.rondas) }} {{ form_widget(form.rondas, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.rondas) }}
{{ form_label(form.plays) }} {{ form_widget(form.plays, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.plays) }}
{{ form_label(form.vidas) }} {{ form_widget(form.vidas, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.vidas) }}
{{ form_label(form.tiempomaximo) }} {{ form_widget(form.tiempomaximo, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.tiempomaximo) }}
{{ form_label(form.client) }} {{ form_widget(form.client, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.client) }}
{{ form_label(form.competition) }} {{ form_widget(form.competition, { 'attr' : {'class': 'form-control', 'placeholder' : '1'} }) }} {{ form_errors(form.competition) }}

{{ form_widget(form.save,{ 'label' : 'Create Trivial', 'attr': { 'class': 'btn btn-success' }}) }}

{{ form_end(form) }}
{% endblock %}