{# empty Twig template #} {%extends 'layout.html.twig' %} {% block stylesheets %} {{parent()}} {% endblock %} {% block body %} {{ parent() }}
{% if app.user.role == 'ROLE_ADMIN' or app.user.role == 'ROLE_TUTOR' %} {% trans %}Go to mission category{% endtrans %} {% endif %}
{{ form_start(form,{ 'attr' :{'role':'form', 'class':'enable-form'} }) }}
{{ form_label(form.name, "Name"|trans(), {'label_attr': {'class': 'col-sm-2 col-xs-4 col-md-offset-1 col-md-4'}}) }}
{{ form_widget(form.name, { 'attr' : {'class': 'form-control', 'placeholder' : 'Name'} }) }} {{ form_errors(form.name) }}
{{ form_label(form.description, "Description"|trans(), {'label_attr': {'class': 'col-sm-2 col-xs-4 col-md-offset-1 col-md-4'}}) }}
{{ form_widget(form.description, { 'attr' : {'class': 'form-control', 'placeholder' : 'Description'} }) }} {{ form_errors(form.description) }}
{% trans %}Cancel{% endtrans %}
{{ form_widget(form.save,{ 'label' : 'Save and return'|trans(), 'attr': { 'class': 'btn trivial-edit-update col-md-2 col-md-offset-1 gametool-btn-disabled btn-disabled', 'disabled':'true' }}) }}
{{ form_end(form) }}
{% endblock %}