2018-04-02 08:29:19 +02:00
< ? php echo template :: formOpen ( 'galleryEditForm' ); ?>
< div class = " row " >
2022-02-12 17:10:59 +01:00
< div class = " col2 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: button ( 'galleryEditBack' , [
'href' => helper :: baseUrl () . $this -> getUrl ( 0 ) . '/config' ,
2022-02-12 17:10:59 +01:00
'ico' => 'left' ,
'value' => 'Retour'
2018-04-02 08:29:19 +02:00
]); ?>
</ div >
2022-02-12 17:10:59 +01:00
< div class = " col2 offset8 " >
2018-04-02 08:29:19 +02:00
< ? php echo template :: submit ( 'galleryEditSubmit' ); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-03-24 10:53:24 +01:00
< h4 > Paramètres de la galerie </ h4 >
2022-03-23 18:18:48 +01:00
< div class = " row " >
2022-03-24 10:53:24 +01:00
< div class = " col6 " >
2022-03-23 18:18:48 +01:00
< ? php echo template :: text ( 'galleryEditName' , [
'label' => 'Nom' ,
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'name' ])
]); ?>
</ div >
2022-03-24 10:53:24 +01:00
< div class = " col6 " >
2022-03-23 18:18:48 +01:00
< ? php echo template :: hidden ( 'galleryEditDirectoryOld' , [
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'directory' ]),
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
< ? php echo template :: select ( 'galleryEditDirectory' , [], [
'label' => 'Dossier cible' ,
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
</ div >
2022-03-24 10:53:24 +01:00
</ div >
< div class = " row " >
< div class = " col3 " >
2022-03-23 18:18:48 +01:00
< ? php echo template :: select ( 'galleryEditSort' , $module :: $sort , [
'selected' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'sort' ]),
'label' => 'Tri des images' ,
'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.'
]); ?>
</ div >
2022-03-28 16:57:53 +02:00
< div class = " col7 verticalAlignBottom " >
< div class = " row " >
< div class = " col12 " >
< ? php echo template :: checkbox ( 'galleryEditFullscreen' , true , 'Mode plein écran automatique' , [
'checked' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'fullScreen' ]),
'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.'
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
2022-03-29 13:53:27 +02:00
< ? php echo template :: checkbox ( 'galleryEditShowPageContent' , true , 'Afficher le contenu de la page avec la galerie' , [
2022-03-28 16:57:53 +02:00
'checked' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'showPageContent' ]),
'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.'
]); ?>
</ div >
</ div >
</ div >
2020-04-09 23:12:15 +02:00
</ div >
2018-04-02 08:29:19 +02:00
</ div >
2022-03-24 10:53:24 +01:00
< div class = " row " >
< div class = " col12 " >
< ? php if ( $module :: $pictures ) : ?>
2022-03-30 12:30:27 +02:00
< ? php echo template :: table ([ 1 , 4 , 1 , 5 , 1 ], $module :: $pictures , [ '#' , 'Image' , 'Couverture' , 'Légende' , '' ],[ 'id' => 'galleryTable' ], $module :: $picturesId ); ?>
2022-03-24 10:53:24 +01:00
< ? php echo template :: hidden ( 'galleryEditFormResponse' ); ?>
< ? php echo template :: hidden ( 'galleryEditFormGalleryName' ,[ 'value' => $this -> getUrl ( 2 )]); ?>
< ? php else : ?>
< ? php echo template :: speech ( 'Aucune image.' ); ?>
< ? php endif ; ?>
</ div >
</ div >
2020-04-08 21:10:13 +02:00
</ div >
2022-03-23 18:18:48 +01:00
</ div >
< div class = " moduleVersion " > Version n°
< ? php echo $module :: VERSION ; ?>
</ div >
2020-04-07 19:08:24 +02:00
< ? php echo template :: formClose (); ?>