mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Merge branch 'master' into 110_extend_thirdparty
This commit is contained in:
@@ -15,59 +15,3 @@ section.chill-entity {
|
||||
}
|
||||
}
|
||||
|
||||
/* AVANT
|
||||
border: 1px solid black;
|
||||
background-color: rgba(255, 255, 255, 0.65);
|
||||
padding: 1em;
|
||||
margin: 1em 0;
|
||||
max-width: 500px;
|
||||
|
||||
div.name {
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
||||
div.category {
|
||||
margin: 0.5em 0;
|
||||
font-size: 85%;
|
||||
|
||||
span.category {
|
||||
font-style: italic;
|
||||
}
|
||||
span::before {
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
font-family: 'ForkAwesome';
|
||||
content: '\f02e';
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
div.comment {
|
||||
font-size: 85%;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.chill_address {
|
||||
div.chill_address_address::before {
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
font-family: 'ForkAwesome';
|
||||
content: '\f015';
|
||||
}
|
||||
}
|
||||
|
||||
div.contact {
|
||||
font-variant: small-caps;
|
||||
span::before {
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
font-family: 'ForkAwesome';
|
||||
}
|
||||
span.email::before {
|
||||
content: '\f1fa';
|
||||
}
|
||||
span.telephone::before {
|
||||
content: '\f095';
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
@@ -52,7 +52,9 @@
|
||||
{% endmacro label %}
|
||||
|
||||
{%- if render == 'raw' -%}
|
||||
{{ _self.raw(thirdparty, options) }}
|
||||
<span class="entity-raw">
|
||||
{{ _self.raw(thirdparty, options) }}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if render == 'label' -%}
|
||||
@@ -64,7 +66,7 @@
|
||||
<div class="item-col">
|
||||
{{ _self.label(thirdparty, options) }}
|
||||
</div>
|
||||
<div class="item-col">
|
||||
<div class="item-col separator">
|
||||
<ul class="list-content fa-ul">
|
||||
{{ thirdparty.getAddress|chill_entity_render_box({
|
||||
'render': 'list',
|
||||
@@ -90,14 +92,16 @@
|
||||
{{ options['customButtons']['before'] }}
|
||||
{% endif %}
|
||||
|
||||
{%- if options['customButtons']['replace'] is not defined and is_granted('CHILL_3PARTY_3PARTY_SHOW', thirdparty) -%}
|
||||
{% if options['customButtons']['replace'] is defined %}
|
||||
{{ options['customButtons']['replace'] }}
|
||||
{% elseif is_granted('CHILL_3PARTY_3PARTY_SHOW', thirdparty) %}
|
||||
<li>
|
||||
<a class="btn btn-show" target="_blank" title="{{ 'Show thirdparty'|trans }}"
|
||||
<a class="btn btn-sm btn-show" target="_blank" title="{{ 'Show thirdparty'|trans }}"
|
||||
href="{{ path('chill_3party_3party_show', { thirdparty_id: thirdparty.id }) }}"></a>
|
||||
</li>
|
||||
{%- else -%}
|
||||
{{ options['customButtons']['replace'] }}
|
||||
{%- endif -%}
|
||||
{% else %}
|
||||
{# rien faire ? j'ai eu un bug car options['customButtons'] était vide (marc) #}
|
||||
{% endif %}
|
||||
|
||||
{% if options['customButtons']['after'] is defined %}
|
||||
{{ options['customButtons']['after'] }}
|
||||
|
Reference in New Issue
Block a user