{% if form.vars.value.createdAt.timestamp is defined %} {% set submitValue = submitValue|default('documentation.document.action.edit_submit'|trans) %} {% else %} {% set submitValue = submitValue|default('documentation.document.action.new_submit'|trans) %} {% endif %} {{ form_errors(form) }} {{ form_start(form) }}

{% if form.uploadedFile is defined %} {{ 'documentation.document.tab.file'|trans }} {% else %} {{ 'documentation.document.tab.link'|trans }} {% endif %}

{{ form_row(form.name) }} {% if form.url is defined %} {{ form_row(form.url) }} {% endif %} {% if form.uploadedFile is defined and form.uploadedFile %} {% if object.url %}

{{ 'documentation.document.label.current_file'|trans }} {{ object.name }}

{% endif %} {{ form_row(form.uploadedFile) }}

{{ 'documentation.document.form.help.file' | trans({'max_size': app_max_upload_size}) }}

{% endif %} {{ form_row(form.thumbUploadedFile) }}

{{ 'documentation.document.form.help.thumbnail' | trans({'max_size': app_max_upload_size}) }}

{% if object.thumbUrl %}
{{ form_row(form.removeThumb) }} {% endif %} {{ form_row(form.pinned) }}
{% if form.vars is defined and form.vars.value.createdAt is defined and form.vars.value.createdAt %}

{{ 'global.tab.history'|trans }}

{% if form.vars.value.createdAt is defined and form.vars.value.createdAt %} {% endif %} {% if form.vars.value.updatedAt is defined and form.vars.value.updatedAt %} {% endif %}
{% endif %}

{{ 'documentation.document.tab.categories'|trans }}

{{ form_row(form.categories) }}
{{ form_end(form) }}