{% extends 'OroUIBundle:actions:update.html.twig' %} {% block content_data %} {% if not form.vars.valid and form.vars.errors|length %} {% endif %}
{{ form_row(form.subject) }} {{ form_row(form.description, { 'attr': {'class': 'narrow-text-field'} }) }}
{{ form_row(form.dueDate) }} {{ form_row(form.taskPriority) }} {% if form.owner is defined %} {{ form_row(form.owner) }} {% endif %}
{{ form_rest(form) }}
{% if form.vars.value.id %} {% else %} {% endif %}
{% endblock content_data %} {# Override original to Show custom success message #} {% block widget_context %} {% import 'OroUIBundle::macros.html.twig' as UI %}
{% endblock widget_context %}