layout improvement in UI

This commit is contained in:
Julien Fastré 2016-11-15 21:33:53 +01:00
parent ff3daec08e
commit 961d942f38
4 changed files with 16 additions and 12 deletions

View File

@ -89,7 +89,7 @@ Re-Open a period: Ré-ouvrir une période d'accompagnement
Are you sure you want to re-open this period ?: Êtes-vous sûr de vouloir ré-ouvrir cette période d'accompagnement ? Are you sure you want to re-open this period ?: Êtes-vous sûr de vouloir ré-ouvrir cette période d'accompagnement ?
'The period has been re-opened': La période d'accompagnement a été ré-ouverte. 'The period has been re-opened': La période d'accompagnement a été ré-ouverte.
Pediod closing form is not valid: Le formulaire n'est pas valide Pediod closing form is not valid: Le formulaire n'est pas valide
No data given: Pas d'information
# pickAPersonType # pickAPersonType
Pick a person: Choisir une personne Pick a person: Choisir une personne

View File

@ -70,13 +70,13 @@
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_person_view', { 'person_id' : person.id } ) }}" class="sc-button btn-cancel"> <a href="{{ path('chill_person_view', { 'person_id' : person.id } ) }}" class="sc-button bt-cancel">
{{ 'Back to the person details'|trans }} <i class="fa fa-arrow-left"></i>{{ 'Back to the person details'|trans }}
</a> </a>
</li> </li>
<li> <li>
<a href="{{ path('chill_person_address_new', { 'person_id' : person.id } ) }}" class="sc-button btn-create"> <a href="{{ path('chill_person_address_new', { 'person_id' : person.id } ) }}" class="sc-button bt-create">
{{ 'Add an address'|trans }} <i class="fa fa-plus"></i>{{ 'Add an address'|trans }}
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -27,9 +27,13 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.streetAddress1) }} {{ form_row(form.streetAddress1) }}
{{ form_errors(form.streetAddress1) }}
{{ form_row(form.streetAddress2) }} {{ form_row(form.streetAddress2) }}
{{ form_errors(form.streetAddress2) }}
{{ form_row(form.postCode) }} {{ form_row(form.postCode) }}
{{ form_errors(form.postCode) }}
{{ form_row(form.validFrom) }} {{ form_row(form.validFrom) }}
{{ form_errors(form.validFrom) }}
<ul class="record_actions"> <ul class="record_actions">
<li> <li>

View File

@ -84,7 +84,7 @@ This view should receive those arguments:
{%- if person.birthdate is not null -%} {%- if person.birthdate is not null -%}
{{ person.birthdate|localizeddate('long', 'none') }} {{ person.birthdate|localizeddate('long', 'none') }}
{%- else -%} {%- else -%}
{{ 'Unknown date of birth'|trans }} <span class="chill-no-data-statement">{{ 'Unknown date of birth'|trans }}</span>
{%- endif -%} {%- endif -%}
</dd> </dd>
@ -98,7 +98,7 @@ This view should receive those arguments:
{% if person.countryOfBirth is not null %} {% if person.countryOfBirth is not null %}
{{ person.countryOfBirth.name|localize_translatable_string }} {{ person.countryOfBirth.name|localize_translatable_string }}
{% else %} {% else %}
{{ 'Unknown country of birth'|trans }} <span class="chill-no-data-statement">{{ 'Unknown country of birth'|trans }}</span>
{% endif %} {% endif %}
{% endspaceless %}</dd> {% endspaceless %}</dd>
{%- endif -%} {%- endif -%}
@ -124,7 +124,7 @@ This view should receive those arguments:
{% if person.nationality is not null %} {% if person.nationality is not null %}
{{ person.nationality.name|localize_translatable_string }} {{ person.nationality.name|localize_translatable_string }}
{% else %} {% else %}
{{ 'Without nationality'|trans }} <span class="chill-no-data-statement">{{ 'Without nationality'|trans }}</span>
{% endif %} {% endif %}
</dd> </dd>
</dl> </dl>
@ -134,7 +134,7 @@ This view should receive those arguments:
<dt>{{'Spoken languages'|trans}}&nbsp;:</dt> <dt>{{'Spoken languages'|trans}}&nbsp;:</dt>
<dd> <dd>
{% if person.spokenLanguages|length == 0 %} {% if person.spokenLanguages|length == 0 %}
{{ 'Unknown spoken languages'|trans }} <span class="chill-no-data-statement">{{ 'Unknown spoken languages'|trans }}</span>
{% else %} {% else %}
{% for lang in person.spokenLanguages %} {% for lang in person.spokenLanguages %}
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %} {{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
@ -150,7 +150,7 @@ This view should receive those arguments:
{% if person.maritalStatus is not null %} {% if person.maritalStatus is not null %}
{{ person.maritalStatus.name|localize_translatable_string }} {{ person.maritalStatus.name|localize_translatable_string }}
{% else %} {% else %}
{{ 'no data given'|trans }} <span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %} {% endif %}
</dd> </dd>
</dl> </dl>
@ -192,13 +192,13 @@ This view should receive those arguments:
{%- if chill_person.fields.email == 'visible' -%} {%- if chill_person.fields.email == 'visible' -%}
<dl> <dl>
<dt>{{ 'Email'|trans }}&nbsp;:</dt> <dt>{{ 'Email'|trans }}&nbsp;:</dt>
<dd><pre>{{ person.email}}&nbsp;</pre></dd> <dd>{% if person.email is not empty %}<pre>{{ person.email}}</pre>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>{% endif %}</dd>
</dl> </dl>
{%- endif -%} {%- endif -%}
{%- if chill_person.fields.phonenumber == 'visible' -%} {%- if chill_person.fields.phonenumber == 'visible' -%}
<dl> <dl>
<dt>{{ 'Phonenumber'|trans }}&nbsp;:</dt> <dt>{{ 'Phonenumber'|trans }}&nbsp;:</dt>
<dd><pre>{{ person.phonenumber}}&nbsp;</pre></dd> <dd>{% if person.phonenumber is not empty %}<pre>{{ person.phonenumber}}</pre>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
</dl> </dl>
{% endif %} {% endif %}