Support ALGO DATA - Service d'assistance en ligne



Détails de la demande (XML | Word | Imprimable)

Clé: WEBAD-673
Type: Sous-tâche Sous-tâche
Etat: En cours En cours
Priorité: Majeur Majeur
Attribution: Support ALGO DATA
Rapporteur: Support ALGO DATA
Votes: 0
Observateurs: 0
Opérations

Si vous étiez connecté, vous pourriez voir davantage d'opérations.
WEB ADNS
WEBAD-669

unify-event.20 - Liste des profils d'inscriptions #4780

Création: 23/août/18 03:09 PM   Mise à jour: 04/févr./19 01:51 PM
Composants: Aucun
Affecte la/les version(s): Aucun
Version(s) corrigée(s): Aucun
Niveau de sécurité: Public - Clients & web (Permet la consultation non authentifiée)

Suivi temporel:
Non spécifié

Societe: algodata.fr (Find related issues)


 Description  « Masquer
  Modification pour integrer la liste des profils sur toutes les pages du site ( temporaire ) , cf gabarit de site : Unify-event.20 ( template site ) #4738

[#if show_list_profils!true]
                    [#if content?? && content != '']
                        <br><br>
                    [/#if]
                    
                    [#-- Liste des profils --]
                    [#include "template(4780)"]
 [/#if]

 Toutes   Commentaires   Journal de travail   Historique des modifications      Trier par ordre: Ordre croissant - Cliquez pour trier par ordre décroissant
Support ALGO DATA added a comment - 23/août/18 03:09 PM
on s'inspire du code source (boot-event ) :

[#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]

Support ALGO DATA added a comment - 02/nov./18 10:35 AM - modifié
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]

Support ALGO DATA added a comment - 04/févr./19 01:51 PM

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]