|
Ajout d'une variable "show_list_profils_affiche_titre " pour gérer l'affichage du titre de la liste des profils : :
[#if evenement.isPublished] <div class="container"> [#if show_list_profils_affiche_titre] <div class="text-center g-mb-70"> <h2 class="text-uppercase g-line-height-1 g-font-weight-700 g-font-size-30 g-mb-30"> <span class="g-color-primary">${Informations_inscription}</span></h2> </div> [/#if] [#assign profilsByLang = dossier.profilsOnlinePublishedByLang] [#if profilsByLang?has_content] [#assign profils = profilsByLang[.locale?substring(0, 2)]!] [#if !profils?has_content] [#assign profils = []] [#list profilsByLang?keys as k] [#assign profils = profils + profilsByLang[k]] [/#list] [#assign profils = profils?sort_by("ordering")] [#else] [#list profilsByLang?keys as language] [#if !["fr","en","es"]?seq_contains(language)] [#assign profils = profils + profilsByLang[language]] [/#if] [/#list] [#assign profils = profils?sort_by("ordering")] [/#if] <div class="col-lg-10 g-order-1 g-order-2--lg g-mb-60"> <form> [#list profils as profilItem] [#if profilItem.page.includeInChildrenList] <!-- Pricing --> <label class="u-check d-block g-mb-20"> <input class="g-hidden-xs-up g-pos-abs g-top-10 g-right-10" name="radGroup1_1" type="radio" checked=""> <a href="${profilItem.url}[#if formValues.hashCompte?has_content]&hashCompte=${formValues.hashCompte?first?string}[/#if]" > <div class="media d-block g-rounded-5 d-md-flex u-shadow-v25 g-bg-primary--checked"> <div class="d-md-flex align-self-center g-pa-30"> <div class="w-100"> [#if profilItem.getLocale??] [#assign cc = profilItem.getLocale] [#if cc?length > 2] [#assign cc = cc?split("_")[1]] [/#if] [/#if] <h3 class="g-line-height-1 g-font-weight-700 g-font-size-36 g-color-primary g-color-white--checked mb-0">${cc}</h3> </div> </div> <div class="media-body g-py-25 g-px-30 g-brd-top--dashed g-brd-top-none--md g-brd-left--dashed--md g-brd-gray-light-v3"> <h4 class="h4 text-uppercase g-font-weight-700 g-font-size-14 g-color-white--checked">${profilItem.nom}</h4> <p class="g-font-size-14 g-color-white--checked mb-0">${profilItem.description!""}</p> </div> </div> </a> </label> <!-- End Pricing --> [/#if] [/#list] </form> </div> [/#if] </div> [/#if] Modifications pour centrer la liste des profils [#if evenement.isPublished] <div class="container g-py-50"> [#if show_list_profils_affiche_titre] <div class="text-center g-mb-70"> <h2 class="text-uppercase g-line-height-1 g-font-weight-700 g-font-size-30 g-mb-30"> <span class="g-color-primary">${Informations_inscription}</span></h2> </div> [/#if] [#assign profilsByLang = dossier.profilsOnlinePublishedByLang] [#if profilsByLang?has_content] [#assign profils = profilsByLang[.locale?substring(0, 2)]!] [#if !profils?has_content] [#assign profils = []] [#list profilsByLang?keys as k] [#assign profils = profils + profilsByLang[k]] [/#list] [#assign profils = profils?sort_by("ordering")] [#else] [#list profilsByLang?keys as language] [#if !["fr","en","es"]?seq_contains(language)] [#assign profils = profils + profilsByLang[language]] [/#if] [/#list] [#assign profils = profils?sort_by("ordering")] [/#if] <div class="row justify-content-md-center"> <div class="col-lg-2"> </div> <div class="col-lg-10 g-order-1 g-order-2--lg g-mb-60"> <form> [#list profils as profilItem] [#if profilItem.page.includeInChildrenList] <!-- Pricing --> <label class="u-check d-block g-mb-20"> <input class="g-hidden-xs-up g-pos-abs g-top-10 g-right-10" name="radGroup1_1" type="radio" checked=""> <a href="${profilItem.url}[#if formValues.hashCompte?has_content]&hashCompte=${formValues.hashCompte?first?string}[/#if]" > <div class="media d-block g-rounded-5 d-md-flex u-shadow-v25 g-bg-primary--checked"> <div class="d-md-flex align-self-center g-pa-30"> <div class="w-100"> [#if profilItem.getLocale??] [#assign cc = profilItem.getLocale] [#if cc?length > 2] [#assign cc = cc?split("_")[1]] [/#if] [/#if] <h3 class="g-line-height-1 g-font-weight-700 g-font-size-36 g-color-primary g-color-white--checked mb-0">${cc}</h3> </div> </div> <div class="media-body g-py-25 g-px-30 g-brd-top--dashed g-brd-top-none--md g-brd-left--dashed--md g-brd-gray-light-v3"> <h4 class="h4 text-uppercase g-font-weight-700 g-font-size-14 g-color-white--checked">${profilItem.nom}</h4> <p class="g-font-size-14 g-color-white--checked mb-0">${profilItem.description!""}</p> </div> </div> </a> </label> <!-- End Pricing --> [/#if] [/#list] </form> </div> <div class="col-lg-2"> </div> </div> [/#if] </div> [/#if] |
[#if evenement.isPublished]
[#if dossier.profilsOnlinePublishedByLang?size > 0]
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">${Informations_inscription}</h4>
</div>
<div>
[#--if !profil.page.template?? || profil.page.template.id != 2558 --]
[#assign profilsByLang = dossier.profilsOnlinePublishedByLang]
[#if profilsByLang?has_content]
[#assign profils = profilsByLang[.locale?substring(0, 2)]!]
[#if !profils?has_content]
[#assign profils = []]
[#list profilsByLang?keys as k]
[#assign profils = profils + profilsByLang[k]]
[/#list]
[#assign profils = profils?sort_by("ordering")]
[#else]
[#list profilsByLang?keys as language]
[#if !["fr","en","es"]?seq_contains(language)]
[#assign profils = profils + profilsByLang[language]]
[/#if]
[/#list]
[#assign profils = profils?sort_by("ordering")]
[/#if]
[#list profils as profilItem]
[#if profilItem.page.includeInChildrenList]
<a href="${profilItem.url}[#if formValues.hashCompte?has_content]&hashCompte=${formValues.hashCompte?first?string}[/#if]" class="list-group-item">
<div>
[#if profilItem.getLocale??]
[#assign cc = profilItem.getLocale]
[#if cc?length > 2]
[#assign cc = cc?split("_")[1]]
[/#if]
<img src="/file/~1060/profil/img/flags/${cc}.png" alt="" onerror="this.style.display='none'"/>
[/#if]
<strong>${profilItem.nom}</strong>
</div>
<div><small class="text-muted">${profilItem.description!""}</small></div>
</a>
[/#if]
[/#list]
[/#if]
</div>
</div>
[#else]
<div class="alert alert-warning">[@no_inscriptions evenement.titre /]</div>
[/#if]
[#elseif !evenement.hasPublicationDates]
<div class="border-radius notification closed-event">
<!-- Les profils n'ont pas été publiés -->
<div class="alert alert-warning">[@no_inscriptions evenement.titre /]</div>
</div>
[#elseif evenement.isFinished]
<div class="border-radius notification closed-event">
<!-- L'événement n'est pas ou plus publié -->
<div class="alert alert-danger"><span class="glyphicon glyphicon-warning-sign"></span> [@inscriptions_close evenement.titre /]</div>
</div>
[#elseif evenement.isProgrammed]
<div class="border-radius notification programmed-event">
<!-- L'événement est programmé -->
<h2>[@inscriptions_programmees evenement.titre evenement.debutPublication /]</h2>
</div>
[/#if]