mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 09:44:23 +00:00
105 lines
2.4 KiB
Twig
105 lines
2.4 KiB
Twig
<h1>{{ "Activity creation"|trans ~ ' :' }}
|
|
<span style="font-size: 70%; text-transform: lowercase; margin-left: 1em;">
|
|
{{ entity.type.name|localize_translatable_string }}
|
|
</span>
|
|
</h1>
|
|
|
|
{{ 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.socialActions is defined -%}
|
|
{{ form_row(form.socialActions) }}
|
|
{% endif %}
|
|
|
|
{%- if form.socialIssues is defined -%}
|
|
{{ form_row(form.socialIssues) }}
|
|
{% endif %}
|
|
|
|
|
|
{%- 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 %}
|
|
|
|
.. location
|
|
|
|
{%- 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 -%}
|
|
.. 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 %}
|
|
|
|
.. status
|
|
|
|
<ul class="record_actions sticky-form-buttons">
|
|
<li class="cancel">
|
|
<a
|
|
class="sc-button bt-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="sc-button bt-create" type="submit">
|
|
{{ 'Add a new activity'|trans }}
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
{{ form_end(form) }}
|