mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
96 lines
3.6 KiB
Twig
96 lines
3.6 KiB
Twig
{#
|
|
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#}
|
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = '' %}
|
|
|
|
{% block title %}{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}{% endblock %}
|
|
|
|
{% block personcontent %}
|
|
|
|
<h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>
|
|
|
|
{% form_theme form 'ChillMainBundle:Form:fields.html.twig' %}
|
|
|
|
{{ form_start(form) }}
|
|
|
|
<fieldset>
|
|
<legend><h2>{{ 'Memo'|trans }}</h2></legend>
|
|
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend><h2>{{ 'General information'|trans }}</h2></legend>
|
|
{{ form_row(form.firstName, {'label' : 'First name'}) }}
|
|
{{ form_row(form.lastName, {'label' : 'Last name'}) }}
|
|
{{ form_row(form.gender, {'label' : 'Gender'}) }}
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend><h2>{{ 'Birth information'|trans }}</h2></legend>
|
|
{{ form_row(form.birthdate, {'label': 'Date of birth'} ) }}
|
|
{%- if form.placeOfBirth is defined -%}
|
|
{{ form_row(form.placeOfBirth, { 'label' : 'Place of birth'} ) }}
|
|
{%- endif -%}
|
|
{%- if form.countryOfBirht is defined -%}
|
|
{{ form_row(form.countryOfBirth, { 'label' : 'Country of birth' } ) }}
|
|
{%- endif -%}
|
|
</fieldset>
|
|
|
|
{%- if form.nationality is defined or form.spokenLanguages is defined or form.maritalStatus is defined -%}
|
|
<fieldset>
|
|
<legend><h2>{{ 'Administrative information'|trans }}</h2></legend>
|
|
{%- if form.nationality is defined -%}
|
|
{{ form_row(form.nationality, { 'label' : 'Nationality'|trans} ) }}
|
|
{%- endif -%}
|
|
{%- if form.spokenLanguages is defined -%}
|
|
{{ form_row(form.spokenLanguages, {'label' : 'Spoken languages'}) }}
|
|
{%- endif -%}
|
|
{%- if form.maritalStatus is defined -%}
|
|
{{ form_row(form.maritalStatus, { 'label' : 'Marital status'} ) }}
|
|
{%- endif -%}
|
|
</fieldset>
|
|
{%- endif -%}
|
|
|
|
{%- if form.email is defined or form.phonenumber is defined -%}
|
|
<fieldset>
|
|
<legend><h2>{{ 'Contact information'|trans }}</h2></legend>
|
|
{%- if form.email is defined -%}
|
|
{{ form_row(form.email, {'label': 'Email'}) }}
|
|
{%- endif -%}
|
|
{%- if form.phonenumber is defined -%}
|
|
{{ form_row(form.phonenumber, {'label': 'Phonenumber'}) }}
|
|
{%- endif -%}
|
|
</fieldset>
|
|
{%- endif -%}
|
|
|
|
|
|
{{ form_rest(form) }}
|
|
|
|
<div class="grid-12 centered sticky-form-buttons">
|
|
<a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="sc-button grey center margin-5">
|
|
<i class="fa fa-arrow-left"></i>
|
|
{{ 'Return'|trans }}
|
|
</a>
|
|
<button class="sc-button green center margin-5" type="submit"><i class="fa fa-save"></i> {{ 'Submit'|trans }}</button>
|
|
<button class="sc-button red center margin-5" type="reset"><i class="fa fa-eraser"></i> {{ 'Reset'|trans }}</button>
|
|
</div>
|
|
|
|
{{ form_end(form) }}
|
|
|
|
|
|
{% endblock personcontent %} |