Agenda format d'heure sans flatpicker

Fonction removedir  renommée en deleteDir
This commit is contained in:
Fred Tempez 2024-08-29 18:00:55 +02:00
parent 0f8766bc8a
commit 61cf384c72
3 changed files with 11 additions and 14 deletions

View File

@ -124,13 +124,13 @@ class agenda extends common {
//Si mise à jour depuis une version <4.5
if( is_dir('site/data/agenda/data')){
$this->custom_copy( 'site/data/agenda/data', 'site/data/agenda/module/data');
$this->removeDir('site/data/agenda/data');
$this->deleteDir('site/data/agenda/data');
$this->custom_copy( 'site/data/agenda/adresses', 'site/data/agenda/module/adresses');
$this->removeDir('site/data/agenda/adresses');
$this->deleteDir('site/data/agenda/adresses');
$this->custom_copy( 'site/data/agenda/ics', 'site/data/agenda/module/ics');
$this->removeDir('site/data/agenda/ics');
$this->deleteDir('site/data/agenda/ics');
$this->custom_copy( 'site/data/agenda/categories', 'site/data/agenda/module/categories');
$this->removeDir('site/data/agenda/categories');
$this->deleteDir('site/data/agenda/categories');
}
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.5']);
}
@ -656,9 +656,6 @@ class agenda extends common {
$this->addOutput([
'showBarEditButton' => true,
'showPageContent' => false,
'vendor' => [
'flatpickr'
],
'view' => 'creation'
]);
}
@ -668,6 +665,8 @@ class agenda extends common {
* Edition, modification, suppression
*/
public function edition($lid) {
var_dump($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD'));
die();
//Préparation avant l'édition de l'évènement
self::$evenement['id'] = $lid;
@ -761,9 +760,6 @@ class agenda extends common {
$this->addOutput([
'showBarEditButton' => true,
'showPageContent' => false,
'vendor' => [
'flatpickr'
],
'view' => 'edition'
]);
}

View File

@ -44,7 +44,7 @@
'help' => 'Choix de la date et de l\'heure de début de l\'évènement',
'label' => 'Date de début',
'value' => $module::$time_unix_deb,
'vendor' => 'flatpickr'
'type' => 'datetime-local',
]); ?>
</div>
@ -53,7 +53,7 @@
'help' => 'Choix de la date et de l\'heure de fin de l\'évènement',
'label' => 'Date de fin',
'value' => $module::$time_unix_fin,
'vendor' => 'flatpickr'
'type' => 'datetime-local',
]); ?>
</div>
</div>

View File

@ -70,9 +70,10 @@
<?php echo template::date('edition_date_debut', [
'help' => 'Date de début',
'label' => 'Date de début',
'type' => 'datetime-local',
'disabled' => $readonly,
'value' => $module::$evenement['datedebut'],
'vendor' => 'flatpickr'
]); ?>
</div>
@ -80,9 +81,9 @@
<?php echo template::date('edition_date_fin', [
'help' => 'Date de fin',
'label' => 'Date de fin',
'type' => 'datetime-local',
'disabled' => $readonly,
'value' => $module::$evenement['datefin'],
'vendor' => 'flatpickr'
]); ?>
</div>
</div>