{%extends 'layout.html.twig' %} {% block stylesheets %} {{parent()}} {% endblock %} {% block body %} {{ parent() }}
{% if app.user.role == 'ROLE_ADMIN' %} Volver a Preguntas {% elseif app.user.role == 'ROLE_TUTOR'%} Volver a Preguntas {% endif %}
{{ form_start(form,{ 'attr' :{'role':'form'} }) }}
{{ form_label(form.file) }} {{ form_widget(form.file, { 'attr' : {'class': 'form-control', 'placeholder' : 'Upload file'} }) }} {{ form_errors(form.file) }}

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

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