mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
controller return json to vue via twig; init vue App
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<h1>{{ "Update activity"|trans }}</h1>
|
||||
|
||||
{{ form_start(edit_form) }}
|
||||
{{ form_errors(edit_form) }}
|
||||
|
||||
{%- if edit_form.emergency is defined -%}
|
||||
{{ form_row(edit_form.emergency) }}
|
||||
{% endif %}
|
||||
|
||||
{%- if edit_form.sentReceived is defined -%}
|
||||
{{ form_row(edit_form.sentReceived) }}
|
||||
{% endif %}
|
||||
|
||||
{%- if edit_form.user is defined -%}
|
||||
{{ form_row(edit_form.user) }}
|
||||
@@ -10,45 +19,55 @@
|
||||
{{ form_row(edit_form.scope) }}
|
||||
{% endif %}
|
||||
|
||||
<h2>{{ 'Activity data'|trans }}</h2>
|
||||
.. type
|
||||
|
||||
{%- if form.date is defined -%}
|
||||
{{ form_row(form.date) }}
|
||||
{%- if edit_form.reasons is defined -%}
|
||||
{{ form_row(edit_form.reasons) }}
|
||||
{% endif %}
|
||||
{%- if form.durationTime is defined -%}
|
||||
{{ form_row(form.durationTime) }}
|
||||
|
||||
<h2 class="chill-red">Parties concernées</h2>
|
||||
|
||||
{%- if edit_form.persons is defined -%}
|
||||
{{ form_row(edit_form.persons) }}
|
||||
{% endif %}
|
||||
{%- if form.travelTime is defined -%}
|
||||
{{ form_row(form.travelTime) }}
|
||||
{%- if edit_form.thirdParties is defined -%}
|
||||
{{ form_row(edit_form.thirdParties) }}
|
||||
{% endif %}
|
||||
{%- if form.attendee is defined -%}
|
||||
{{ form_row(form.attendee) }}
|
||||
{%- if edit_form.users is defined -%}
|
||||
{{ form_row(edit_form.users) }}
|
||||
{% endif %}
|
||||
{%- if form.comment is defined -%}
|
||||
{{ form_row(form.comment) }}
|
||||
|
||||
<h2 class="chill-red">{{ 'Activity data'|trans }}</h2>
|
||||
|
||||
{%- if edit_form.date is defined -%}
|
||||
{{ form_row(edit_form.date) }}
|
||||
{% endif %}
|
||||
{%- if form.reasons is defined -%}
|
||||
{{ form_row(form.reasons) }}
|
||||
|
||||
.. location
|
||||
|
||||
{%- if edit_form.durationTime is defined -%}
|
||||
{{ form_row(edit_form.durationTime) }}
|
||||
{% endif %}
|
||||
{%- if form.persons is defined -%}
|
||||
{{ form_row(form.persons) }}
|
||||
|
||||
{%- if edit_form.travelTime is defined -%}
|
||||
{{ form_row(edit_form.travelTime) }}
|
||||
{% endif %}
|
||||
{%- if form.thirdParties is defined -%}
|
||||
{{ form_row(form.thirdParties) }}
|
||||
|
||||
{%- if edit_form.comment is defined -%}
|
||||
.. public and private
|
||||
{{ form_row(edit_form.comment) }}
|
||||
{% endif %}
|
||||
{%- if form.users is defined -%}
|
||||
{{ form_row(form.users) }}
|
||||
|
||||
{%- if edit_form.documents is defined -%}
|
||||
{{ form_row(edit_form.documents) }}
|
||||
{% endif %}
|
||||
{%- if form.emergency is defined -%}
|
||||
{{ form_row(form.emergency) }}
|
||||
{% endif %}
|
||||
{%- if form.sentReceived is defined -%}
|
||||
{{ form_row(form.sentReceived) }}
|
||||
{% endif %}
|
||||
{%- if form.documents is defined -%}
|
||||
{{ form_row(form.documents) }}
|
||||
|
||||
{%- if edit_form.attendee is defined -%}
|
||||
{{ form_row(edit_form.attendee) }}
|
||||
{% endif %}
|
||||
|
||||
.. status
|
||||
|
||||
{% set person_id = null %}
|
||||
{% if entity.person %}
|
||||
{% set person_id = entity.person.id %}
|
||||
|
Reference in New Issue
Block a user