{% if app.request.attributes.get('_route') != "app_bug_report_edit" %}

Créer un rapport de bug

{% endif %} {{ form_start(form, { 'attr': { 'class': 'col-start-4 col-span-4', 'action': app.request.attributes.get('_route') == 'app_bug_report_edit' ? '' : path('app_bug_report_new') } }) }}
{{ form_row(form.Title, {'attr': {'class': 'input-field form-control w-4/5 shadow appearance-none border ml-6 lg:ml-0 rounded text-3xl lg:text-base py-3 lg:py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline', 'placeholder': 'Titre'}}) }}
{{ form_row(form.Content, {'attr': {'class': 'textarea-field resize form-control w-4/5 shadow appearance-none border ml-6 lg:ml-0 rounded text-3xl lg:text-base py-3 lg:py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline', 'placeholder': 'Votre message...', 'cols': '23'}}) }}
{{ form_row(form.ScreenshotFile, {'attr': {'class': 'input-field form-control w-4/5 shadow appearance-none border ml-6 lg:ml-0 rounded text-3xl lg:text-base py-3 lg:py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'}}) }}
{% if app.user and "ROLE_ADMIN" in app.user.roles %}
{{ form_row(form.Status, {'attr': {'class': 'input-field form-control justify-between w-full shadow appearance-none border ml-0 rounded text-3xl lg:text-base py-3 lg:py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'}}) }}
{% endif %}
{{ form_row(form.link, {'attr': {'class': 'input-field form-control w-4/5 shadow appearance-none border ml-6 lg:ml-0 rounded text-3xl lg:text-base py-3 lg:py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline'}}) }}
{{ form_end(form) }}