mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'household-editor/show-full-address'
This commit is contained in:
commit
0592601aa6
@ -21,6 +21,7 @@ and this project adheres to
|
|||||||
* [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419)
|
* [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419)
|
||||||
* [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440)
|
* [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440)
|
||||||
* [person]: create person and household added to button dropdown (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/454)
|
* [person]: create person and household added to button dropdown (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/454)
|
||||||
|
* display full address in address.text in normalization. Adapt AddressRenderBox
|
||||||
|
|
||||||
|
|
||||||
## Test releases
|
## Test releases
|
||||||
|
@ -42,57 +42,11 @@
|
|||||||
class="street">
|
class="street">
|
||||||
{{ address.text }}
|
{{ address.text }}
|
||||||
</p>
|
</p>
|
||||||
<p v-if="address.postcode"
|
|
||||||
class="postcode">
|
|
||||||
{{ address.postcode.code }} {{ address.postcode.name }}
|
|
||||||
</p>
|
|
||||||
<p v-if="address.country"
|
|
||||||
class="country">
|
|
||||||
{{ address.country.name.fr }}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</component>
|
</component>
|
||||||
|
|
||||||
<!-- <div v-if="isMultiline === true" class="address-more">
|
|
||||||
<div v-if="address.floor">
|
|
||||||
<span class="floor">
|
|
||||||
<b>{{ $t('floor') }}</b>: {{ address.floor }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.corridor">
|
|
||||||
<span class="corridor">
|
|
||||||
<b>{{ $t('corridor') }}</b>: {{ address.corridor }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.steps">
|
|
||||||
<span class="steps">
|
|
||||||
<b>{{ $t('steps') }}</b>: {{ address.steps }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.flat">
|
|
||||||
<span class="flat">
|
|
||||||
<b>{{ $t('flat') }}</b>: {{ address.flat }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.buildingName">
|
|
||||||
<span class="buildingName">
|
|
||||||
<b>{{ $t('buildingName') }}</b>: {{ address.buildingName }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.extra">
|
|
||||||
<span class="extra">
|
|
||||||
<b>{{ $t('extra') }}</b>: {{ address.extra }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="address.distribution">
|
|
||||||
<span class="distribution">
|
|
||||||
<b>{{ $t('distribution') }}</b>: {{ address.distribution }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div v-if="useDatePane === true" class="address-more">
|
<div v-if="useDatePane === true" class="address-more">
|
||||||
<div v-if="address.validFrom">
|
<div v-if="address.validFrom">
|
||||||
<span class="validFrom">
|
<span class="validFrom">
|
||||||
|
@ -64,7 +64,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
|
|||||||
if ($address instanceof Address) {
|
if ($address instanceof Address) {
|
||||||
$data = [
|
$data = [
|
||||||
'address_id' => $address->getId(),
|
'address_id' => $address->getId(),
|
||||||
'text' => $address->isNoAddress() ? null : $this->addressRender->renderStreetLine($address, []),
|
'text' => $this->addressRender->renderString($address, []),
|
||||||
'street' => $address->getStreet(),
|
'street' => $address->getStreet(),
|
||||||
'streetNumber' => $address->getStreetNumber(),
|
'streetNumber' => $address->getStreetNumber(),
|
||||||
'postcode' => [
|
'postcode' => [
|
||||||
|
@ -124,7 +124,7 @@ class AddressRender implements ChillEntityRenderInterface
|
|||||||
*/
|
*/
|
||||||
public function renderString($addr, array $options): string
|
public function renderString($addr, array $options): string
|
||||||
{
|
{
|
||||||
return implode(' - ', $this->renderLines($addr));
|
return implode(' — ', $this->renderLines($addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supports($entity, array $options): bool
|
public function supports($entity, array $options): bool
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
addAge : true,
|
addAge : true,
|
||||||
hLevel : 3,
|
hLevel : 3,
|
||||||
isConfidential : false,
|
isConfidential : false,
|
||||||
|
isMultiline: true,
|
||||||
}"
|
}"
|
||||||
:person="participation.person"
|
:person="participation.person"
|
||||||
:returnPath="getAccompanyingCourseReturnPath">
|
:returnPath="getAccompanyingCourseReturnPath">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user