mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
missing comment fields on person details page
This commit is contained in:
parent
8c06014ea5
commit
360322bdbf
@ -22,6 +22,11 @@ form {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// customfields titles in form
|
||||||
|
span.cf-title {
|
||||||
|
@include title_in_form;
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: inline;
|
display: inline;
|
||||||
&.required:after {
|
&.required:after {
|
||||||
|
@ -41,11 +41,9 @@ This view should receive those arguments:
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<figure class="person-details">
|
<figure class="person-details">
|
||||||
<h2 class="chill-red">{{ 'Memo'|trans }}</h2>
|
<h2 class="chill-red">{{ 'Memo'|trans }}</h2>
|
||||||
|
|
||||||
<div class="chill-user-quote">
|
<div class="chill-user-quote">
|
||||||
{{ person.memo|chill_markdown_to_html }}
|
{{ person.memo|chill_markdown_to_html }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -68,6 +66,7 @@ This view should receive those arguments:
|
|||||||
|
|
||||||
<dt>{{ 'Gender'|trans }} :</dt>
|
<dt>{{ 'Gender'|trans }} :</dt>
|
||||||
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd>
|
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
@ -93,6 +92,7 @@ This view should receive those arguments:
|
|||||||
<dd><span class="chill-no-data-statement">{{ 'Not given'|trans }}</span></dd>
|
<dd><span class="chill-no-data-statement">{{ 'Not given'|trans }}</span></dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if chill_person.fields.country_of_birth == 'visible' -%}
|
{%- if chill_person.fields.country_of_birth == 'visible' -%}
|
||||||
<dt>{{ 'Country of birth'|trans }} :</dt>
|
<dt>{{ 'Country of birth'|trans }} :</dt>
|
||||||
<dd>{% apply spaceless %}
|
<dd>{% apply spaceless %}
|
||||||
@ -106,6 +106,17 @@ This view should receive those arguments:
|
|||||||
</dl>
|
</dl>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if person.genderComment is not empty %}
|
||||||
|
<div class="col-12">
|
||||||
|
<figure class="person-details">
|
||||||
|
<h2 class="chill-beige">{{ 'Gender comment'|trans }} :</h2>
|
||||||
|
<div class="chill-user-quote">
|
||||||
|
{{ person.genderComment.comment|chill_markdown_to_html }}
|
||||||
|
</div>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -116,14 +127,14 @@ This view should receive those arguments:
|
|||||||
|
|
||||||
{%- if chill_person.fields.nationality == 'visible' -%}
|
{%- if chill_person.fields.nationality == 'visible' -%}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ 'Nationality'|trans }} :</dt>
|
<dt>{{ 'Nationality'|trans }} :</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% 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 %}
|
||||||
<span class="chill-no-data-statement">{{ 'Without nationality'|trans }}</span>
|
<span class="chill-no-data-statement">{{ 'Without nationality'|trans }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if chill_person.fields.spoken_languages == 'visible' -%}
|
{%- if chill_person.fields.spoken_languages == 'visible' -%}
|
||||||
@ -150,6 +161,15 @@ This view should receive those arguments:
|
|||||||
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
{% if person.maritalStatusComment is not empty %}
|
||||||
|
<dt>{{ 'Comment on the marital status'|trans }} :</dt>
|
||||||
|
<dd>
|
||||||
|
<blockquote class="chill-user-quote">
|
||||||
|
{{ person.maritalStatusComment.comment|chill_markdown_to_html }}
|
||||||
|
</blockquote>
|
||||||
|
</dd>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</figure>
|
</figure>
|
||||||
@ -201,35 +221,55 @@ This view should receive those arguments:
|
|||||||
</dl>
|
</dl>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
|
||||||
{%- if chill_person.fields.email == 'visible' -%}
|
{%- if chill_person.fields.email == 'visible' -%}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ 'Email'|trans }} :</dt>
|
<dt>{{ 'Email'|trans }} :</dt>
|
||||||
<dd>{% if person.email is not empty %}<blockquote class="chill-user-quote">{{ person.email|nl2br }}</blockquote>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>{% endif %}</dd>
|
<dd>{% if person.email is not empty %}
|
||||||
|
<a href="{{ 'mailto:' ~ person.email }}" class="email">{{ person.email|nl2br }}</a>
|
||||||
|
{% 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 }} :</dt>
|
<dt>{{ 'Phonenumber'|trans }} :</dt>
|
||||||
<dd>{% if person.phonenumber is not empty %}<a href="tel:{{ person.phonenumber }}"><pre>{{ person.phonenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
|
<dd>{% if person.phonenumber is not empty %}<a href="tel:{{ person.phonenumber }}"><pre>{{ person.phonenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{%- if chill_person.fields.mobilenumber == 'visible' -%}
|
{%- if chill_person.fields.mobilenumber == 'visible' -%}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ 'Mobilenumber'|trans }} :</dt>
|
<dt>{{ 'Mobilenumber'|trans }} :</dt>
|
||||||
<dd>{% if person.mobilenumber is not empty %}<a href="tel:{{ person.mobilenumber }}"><pre>{{ person.mobilenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
|
<dd>{% if person.mobilenumber is not empty %}<a href="tel:{{ person.mobilenumber }}"><pre>{{ person.mobilenumber|chill_format_phonenumber }}</pre></a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{# TODO
|
||||||
|
display collection of others phonenumbers
|
||||||
|
#}
|
||||||
|
|
||||||
{%- if chill_person.fields.contact_info == 'visible' -%}
|
{%- if chill_person.fields.contact_info == 'visible' -%}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ 'Notes on contact information'|trans }} :</dt>
|
<dt>{{ 'Notes on contact information'|trans }} :</dt>
|
||||||
<dd>{% if person.contactInfo is not empty %}{{ person.contactInfo|nl2br }}{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>{% endif %}</dd>
|
<dd>
|
||||||
|
{% if person.contactInfo is not empty %}
|
||||||
|
<blockquote class="chill-user-quote">
|
||||||
|
{{ person.contactInfo|chill_markdown_to_html }}
|
||||||
|
</blockquote>
|
||||||
|
{% else %}
|
||||||
|
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if cFGroup and (cFGroup.getActiveCustomFields|length > 0) %}
|
{% if cFGroup and (cFGroup.getActiveCustomFields|length > 0) %}
|
||||||
|
@ -23,7 +23,7 @@ nationality: nationalité
|
|||||||
'Without nationality': 'Sans nationalité'
|
'Without nationality': 'Sans nationalité'
|
||||||
Gender: Genre
|
Gender: Genre
|
||||||
gender: genre
|
gender: genre
|
||||||
Gender comment: Remarque sur le genre
|
Gender comment: Remarques sur le genre
|
||||||
'Creation date': 'Date d''ouverture'
|
'Creation date': 'Date d''ouverture'
|
||||||
'Not given': 'Non renseigné'
|
'Not given': 'Non renseigné'
|
||||||
'Place of birth': 'Lieu de naissance'
|
'Place of birth': 'Lieu de naissance'
|
||||||
@ -34,7 +34,7 @@ countryOfBirth: 'Pays de naissance'
|
|||||||
'Unknown country of birth': 'Pays inconnu'
|
'Unknown country of birth': 'Pays inconnu'
|
||||||
'Marital status': 'État civil'
|
'Marital status': 'État civil'
|
||||||
Date of last marital status change: État civil depuis le
|
Date of last marital status change: État civil depuis le
|
||||||
Comment on the marital status: Commentaires sur l'état civil
|
Comment on the marital status: Remarques sur l'état civil
|
||||||
'Number of children': 'Nombre d''enfants'
|
'Number of children': 'Nombre d''enfants'
|
||||||
'{0} No child|{1} One child | ]1,Inf] %nb% children': '{0} Aucun enfant|{1} Un enfant | ]1,Inf] %nb% enfants'
|
'{0} No child|{1} One child | ]1,Inf] %nb% children': '{0} Aucun enfant|{1} Un enfant | ]1,Inf] %nb% enfants'
|
||||||
'National number': 'Numéro national'
|
'National number': 'Numéro national'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user