Deltacms/module/agenda/view/categorie/categorie.php

110 lines
3.0 KiB
PHP
Raw Normal View History

2022-03-18 07:50:13 +01:00
<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Enregistrer';
$text[2] = 'Choix des couleurs par catégorie';
$text[3] = 'Si vous cochez cette case le choix des couleurs des évènements de l\'agenda se fera par catégorie.';
$text[4] = 'Choix des couleurs des évènements par catégorie';
$text[5] = 'Création ou modification d\'une catégorie';
$text[6] = 'Saisir un nom de catégorie, majuscules, accentuées, espaces autorisés';
$text[7] = 'Nom de la catégorie';
$text[8] = 'Le curseur horizontal règle le niveau de transparence.';
$text[9] = 'Fond';
$text[10] = 'Texte';
$text[11] = 'Nom';
$text[12] = 'Couleur du fond';
$text[13] = 'Couleur du texte';
$text[14] = 'Version n°';
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Save';
$text[2] = 'Choice of colours by category';
$text[3] = 'If you check this box, the colours of the events in the diary will be chosen by category';
$text[4] = 'Choice of event colours by category';
$text[5] = 'Create or modify a category';
$text[6] = 'Enter a category name, upper case, accented, spaces allowed';
$text[7] = 'Category name';
$text[8] = 'Horizontal slider sets transparency level';
$text[9] = 'Background';
$text[10] = 'Text';
$text[11] = 'Name';
$text[12] = 'Background colour';
$text[13] = 'Text colour';
$text[14] = 'Version No';
break;
}
?>
2022-01-31 09:10:49 +01:00
<?php echo template::formOpen('gestion_categorie'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('edition_retour', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0).'/config',
'ico' => 'left',
2022-03-18 07:50:13 +01:00
'value' => $text[0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('edition_enregistrer',[
2022-03-18 07:50:13 +01:00
'value' => $text[1],
2022-01-31 09:10:49 +01:00
'ico' => 'check'
]); ?>
</div>
</div>
<div class="block">
2022-03-18 07:50:13 +01:00
<h4><?php echo $text[4]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::checkbox('val_categories', true, $text[2], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['module', $this->getUrl(0), 'categories', 'valCategories']),
2022-03-18 07:50:13 +01:00
'help' => $text[3]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
<div class="block">
2022-03-18 07:50:13 +01:00
<h4><?php echo $text[5]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col4">
<?php
echo template::text('categorie_name', [
2022-03-18 07:50:13 +01:00
'help' => $text[6],
'label' => $text[7]
2022-01-31 09:10:49 +01:00
]);
?>
</div>
<div class="col4">
<?php echo template::text('categorie_couleur_fond', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[8],
'label' => $text[9],
2022-01-31 09:10:49 +01:00
'value' => 'rgba(0,0,0,1)'
]); ?>
</div>
<div class="col4">
<?php echo template::text('categorie_couleur_texte', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[8],
'label' => $text[10],
2022-01-31 09:10:49 +01:00
'value' => 'rgba(255,255,255,1)'
]); ?>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
2022-03-18 07:50:13 +01:00
<?php echo template::table([5,3,3,1], $module::$tabCategories, [$text[11], $text[12],$text[13],'']); ?>
2022-01-31 09:10:49 +01:00
2022-03-18 07:50:13 +01:00
<div class="moduleVersion">
<?php echo $text[14]; echo $module::VERSION; ?>
2022-01-31 09:10:49 +01:00
</div>