mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
[twig][templates] introduce an option in adress_entity_render to display or not the address details button
This commit is contained in:
@@ -64,6 +64,7 @@ section.chill-entity {
|
||||
margin: 0.7em 0;
|
||||
p {
|
||||
display: block;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
&.delimiter {
|
||||
|
@@ -10,6 +10,7 @@
|
||||
* has_no_address bool
|
||||
* multiline bool multiline display
|
||||
* extended_infos bool add extra informations (step, floor, etc.) DEPRECATED
|
||||
* details_button bool add an address details button
|
||||
|
||||
#}
|
||||
|
||||
@@ -79,7 +80,12 @@
|
||||
<i class="fa fa-fw fa-map-marker"></i>
|
||||
{% endif %}
|
||||
{{ _self.inline(address, options, streetLine, lines) }}
|
||||
<span data-address-details="1" data-address-id="{{ address.id|escape('html_attr') }}" data-address-ref-status="{{ address.refStatus|escape('html_attr') }}"></span>
|
||||
{% if options['details_button'] is defined and options['details_button'] == true %}
|
||||
<span data-address-details="1"
|
||||
data-address-id="{{ address.id|escape('html_attr') }}"
|
||||
data-address-ref-status="{{ address.refStatus|escape('html_attr') }}">
|
||||
</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
|
||||
@@ -112,7 +118,12 @@
|
||||
<i class="fa fa-fw fa-map-marker"></i>
|
||||
{% endif %}
|
||||
{{ _self.raw(lines) }}
|
||||
<p><span data-address-details="1" data-address-id="{{ address.id|escape('html_attr') }}" data-address-ref-status="{{ address.refStatus|escape('html_attr') }}"></span></p>
|
||||
{% if options['details_button'] is defined and options['details_button'] == true %}<p class="mt-3">
|
||||
<span data-address-details="1"
|
||||
data-address-id="{{ address.id|escape('html_attr') }}"
|
||||
data-address-ref-status="{{ address.refStatus|escape('html_attr') }}">
|
||||
</span></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ _self.validity(address, options) }}
|
||||
|
Reference in New Issue
Block a user