################ ### REUNIONS ### ################ lib.planningReservationSalles = COA lib.planningReservationSalles { # Plugin cal pour l'affichage de la date 10 < plugin.tx_cal_controller 10 { # pidList par défaut # Ici pas besoin de données cal, on affiche seulement la date pidList = 1 view { allowedViews = day day.dayTemplate = EXT:wseils/Resources/Private/Templates/ext/TX_Cal/dayTitle.tmpl day.displayDate.strftime = %e %B %Y } } 20 = HMENU 20 { # Menu sur la page courante (page "Planning réservation salles") special = directory special.value.data = TSFE:id wrap = <div class="panel-group accordion accordion-reunion">|</div> 1 = TMENU 1 { NO = 1 NO { # On désactive le lien doNotLinkIt = 1 doNotShowLink = 1 after.cObject = COA after.cObject { wrap = <div class="panel">|</div> # Génération du titre (ville) 10 = TEXT 10 { value = <div class="panel-heading {field:subtitle}"><h4 class="panel-title"><a data-parent="#accordion" data-toggle="collapse" href="#page_{field:uid}"><i class="ion-chevron-right"></i>{field:title}</a></h4></div> insertData = 1 } # Génération avec le code HTML fourni pour l'accordion 20 = TEXT 20 { wrap = <div class="panel-collapse collapse {field:subtitle}" id="page_{field:uid}"><div class="panel-body">| insertData = 1 } # On génère un plugin calendrier pour chaque ville (vue "Jour") 30 < plugin.tx_cal_controller 30 { pidList.field = uid view { allowedViews = day day.dayEnd = 200000 day.timeFormatDay = %H:%M # Permet de remplir le marqueur ###CALENDAR_ID### dans event_model.tmpl day.event.calendar_id = TEXT day.event.calendar_id { field = calendar_id wrap = calendar_| } day.event.timeFormat = %H:%M day.event.top.stdWrap.wrap = | * 26 + 92 day.event.length.stdWrap.wrap = (| /3600 * 26) day.event.organizer.dataWrap = <p class="organizer"><span>%%%ORGANIZER%%% : </span> |</p> day.event.location.dataWrap = <span class="location"><span>%%%LOCATION%%% : </span> |</span> day.event.alldayTitle.crop > } } 40 = TEXT 40.value = </div></div> } } } } }