{% if saved is defined and saved %} {% set widgetResponse = { widget: { message: 'Call logged successfully'|trans, triggerSuccess: true, remove: true } } %} {{ widgetResponse|json_encode|raw }} {% else %}
{% if not form.vars.valid and form.vars.errors|length %} {% endif %}
{% if form.owner is defined %} {{ form_row(form.owner) }} {% endif %} {{ form_row(form.subject) }} {{ form_row(form.notes, { 'attr': {'class': 'narrow-text-field'} }) }}
{{ form_row(form.callDateTime) }} {{ form_row(form.phoneNumber) }} {{ form_row(form.direction) }} {{ form_row(form.duration) }}
{{ form_row(form.callStatus) }}
{{ form_rest(form) }}
{% placeholder call_log_widget_additional_properties with {entity: entity, form: form, formAction: formAction, saved: saved} %}
{% if form.vars.value.id %} {% else %} {% endif %} {% placeholder call_log_widget_update_actions with {entity: entity, form: form, formAction: formAction, saved: saved} %}
{{ oro_form_js_validation(form) }}
{% endif %}