mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-25 11:36:13 +00:00
103 lines
2.4 KiB
Twig
103 lines
2.4 KiB
Twig
<h1>{{ "Activity creation"|trans ~ ' :' }}</h1>
|
|
<h2 class="chill-green mb-4">{{ entity.type.name|localize_translatable_string }}</h2>
|
|
|
|
{{ form_start(form) }}
|
|
{{ form_errors(form) }}
|
|
|
|
|
|
{%- if form.emergency is defined -%}
|
|
{{ form_row(form.emergency) }}
|
|
{% endif %}
|
|
|
|
{%- if form.sentReceived is defined -%}
|
|
{{ form_row(form.sentReceived) }}
|
|
{% endif %}
|
|
|
|
{%- if form.user is defined -%}
|
|
{{ form_row(form.user) }}
|
|
{% endif %}
|
|
|
|
{%- if form.scope is defined -%}
|
|
{{ form_row(form.scope) }}
|
|
{% endif %}
|
|
|
|
{%- if form.socialIssues is defined -%}
|
|
{{ form_row(form.socialIssues) }}
|
|
{% endif %}
|
|
|
|
{%- if form.socialActions is defined -%}
|
|
{{ form_row(form.socialActions) }}
|
|
{% endif %}
|
|
|
|
<div id="social-issues-acc"></div>
|
|
|
|
{%- if form.reasons is defined -%}
|
|
{{ form_row(form.reasons) }}
|
|
{% endif %}
|
|
|
|
<h2 class="chill-red">{{ 'Concerned groups'|trans }}</h2>
|
|
|
|
{%- if form.persons is defined -%}
|
|
{{ form_widget(form.persons) }}
|
|
{% endif %}
|
|
{%- if form.thirdParties is defined -%}
|
|
{{ form_widget(form.thirdParties) }}
|
|
{% endif %}
|
|
{%- if form.users is defined -%}
|
|
{{ form_widget(form.users) }}
|
|
{% endif %}
|
|
|
|
<div id="add-persons"></div>
|
|
|
|
<h2 class="chill-red">{{ 'Activity data'|trans }}</h2>
|
|
|
|
{%- if form.date is defined -%}
|
|
{{ form_row(form.date) }}
|
|
{% endif %}
|
|
|
|
<div id="location"></div>
|
|
|
|
{%- if form.durationTime is defined -%}
|
|
{{ form_row(form.durationTime) }}
|
|
{% endif %}
|
|
|
|
{%- if form.travelTime is defined -%}
|
|
{{ form_row(form.travelTime) }}
|
|
{% endif %}
|
|
|
|
{%- if form.comment is defined -%}
|
|
{# TODO .. public and private #}
|
|
{{ form_row(form.comment) }}
|
|
{% endif %}
|
|
|
|
{%- if form.documents is defined -%}
|
|
{{ form_row(form.documents) }}
|
|
{% endif %}
|
|
|
|
{%- if form.attendee is defined -%}
|
|
{{ form_row(form.attendee) }}
|
|
{% endif %}
|
|
|
|
{# TODO .. status #}
|
|
|
|
<ul class="record_actions sticky-form-buttons">
|
|
<li class="cancel">
|
|
<a
|
|
class="btn btn-cancel"
|
|
{%- if context == 'person' -%}
|
|
href="{{ chill_return_path_or('chill_activity_activity_list', { 'person_id': person.id } )}}"
|
|
{%- else -%}
|
|
href="{{ chill_return_path_or('chill_activity_activity_list', { 'accompanying_period_id': accompanyingCourse.id } )}}"
|
|
{%- endif -%}
|
|
>
|
|
{{ 'Cancel'|trans|chill_return_path_label }}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<button class="btn btn-create" type="submit">
|
|
{{ 'Create'|trans }}
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
{{ form_end(form) }}
|