mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge remote-tracking branch 'origin/issue289_person_extraPhoneNumbers'
This commit is contained in:
commit
9b03f8130b
@ -14,6 +14,7 @@ and this project adheres to
|
|||||||
|
|
||||||
* [main] fix adding multiple AddresseDeRelais (combine PickAddressType with ChillCollection)
|
* [main] fix adding multiple AddresseDeRelais (combine PickAddressType with ChillCollection)
|
||||||
* [person]: do not suggest the current household of the person (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/51)
|
* [person]: do not suggest the current household of the person (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/51)
|
||||||
|
* [person]: display other phone numbers in view + add message in case no others phone numbers (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/184)
|
||||||
* unnecessary whitespace removed from person banner after person-id + double parentheses removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/290)
|
* unnecessary whitespace removed from person banner after person-id + double parentheses removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/290)
|
||||||
* [person]: delete accompanying period work, including related objects (cascade) (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/36)
|
* [person]: delete accompanying period work, including related objects (cascade) (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/36)
|
||||||
* [address]: Display of incomplete address adjusted.
|
* [address]: Display of incomplete address adjusted.
|
||||||
|
@ -144,7 +144,10 @@ class PersonType extends AbstractType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->config['phonenumber'] === 'visible') {
|
if ($this->config['phonenumber'] === 'visible') {
|
||||||
$builder->add('phonenumber', TelType::class, array('required' => false));
|
$builder->add('phonenumber', TelType::class, array(
|
||||||
|
'required' => false,
|
||||||
|
// 'placeholder' => '+33623124554' //TODO placeholder for phone numbers
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->config['mobilenumber'] === 'visible') {
|
if ($this->config['mobilenumber'] === 'visible') {
|
||||||
@ -167,7 +170,8 @@ class PersonType extends AbstractType
|
|||||||
'delete_empty' => function(PersonPhone $pp = null) {
|
'delete_empty' => function(PersonPhone $pp = null) {
|
||||||
return NULL === $pp || $pp->isEmpty();
|
return NULL === $pp || $pp->isEmpty();
|
||||||
},
|
},
|
||||||
'error_bubbling' => false
|
'error_bubbling' => false,
|
||||||
|
'empty_collection_explain' => 'No additional phone numbers'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($this->config['email'] === 'visible') {
|
if ($this->config['email'] === 'visible') {
|
||||||
|
@ -216,13 +216,23 @@ This view should receive those arguments:
|
|||||||
{%- 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 }}">{{ person.mobilenumber|chill_format_phonenumber }}</a>{% else %}<span class="chill-no-data-statement">{{ 'No data given'|trans }}{% endif %}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# TODO
|
{%- if chill_person.fields.mobilenumber == 'visible' -%}
|
||||||
display collection of others phonenumbers
|
{% if person.otherPhoneNumbers is not empty %}
|
||||||
#}
|
<dl>
|
||||||
|
<dt>{{ 'Others phone numbers'|trans }} :</dt>
|
||||||
|
{% for el in person.otherPhoneNumbers %}
|
||||||
|
{% if el.phonenumber is not empty %}
|
||||||
|
<dd>{% if el.description is not empty %}{{ el.description }} : {% endif %}<a href="tel:{{ el.phonenumber }}">{{ el.phonenumber|chill_format_phonenumber }}</a></dd>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- if chill_person.fields.contact_info == 'visible' -%}
|
{%- if chill_person.fields.contact_info == 'visible' -%}
|
||||||
<dl>
|
<dl>
|
||||||
|
@ -50,6 +50,8 @@ mobilenumber: numéro de téléphone portable
|
|||||||
Accept short text message ?: La personne a donné l'autorisation d'utiliser ce no de téléphone pour l'envoi de rappel par SMS
|
Accept short text message ?: La personne a donné l'autorisation d'utiliser ce no de téléphone pour l'envoi de rappel par SMS
|
||||||
Accept short text message: La personne a donné l'autorisation d'utiliser ce no de téléphone pour l'envoi de rappel par SMS
|
Accept short text message: La personne a donné l'autorisation d'utiliser ce no de téléphone pour l'envoi de rappel par SMS
|
||||||
Other phonenumber: Autre numéro de téléphone
|
Other phonenumber: Autre numéro de téléphone
|
||||||
|
Others phone numbers: Autres numéros de téléphone
|
||||||
|
No additional phone numbers: Aucun numéro de téléphone supplémentaire
|
||||||
Description: description
|
Description: description
|
||||||
Add new phone: Ajouter un numéro de téléphone
|
Add new phone: Ajouter un numéro de téléphone
|
||||||
Remove phone: Supprimer
|
Remove phone: Supprimer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user