Fontes : datatables
This commit is contained in:
parent
a6a866c01d
commit
37d1915007
@ -684,7 +684,10 @@ class theme extends common
|
|||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'title' => helper::translate('Fontes'),
|
'title' => helper::translate('Fontes'),
|
||||||
'view' => 'font'
|
'view' => 'font',
|
||||||
|
'vendor' => [
|
||||||
|
'datatables'
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,4 +8,26 @@
|
|||||||
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||||
* @link http://zwiicms.fr/
|
* @link http://zwiicms.fr/
|
||||||
*/
|
*/
|
||||||
$(".themeFontDelete").on("click",(function(){var _this=$(this);return core.confirm("Êtes-vous sûr de vouloir supprimer cette fonte ?",(function(){$(location).attr("href",_this.attr("href"))}))}));
|
$(".themeFontDelete").on("click", (function() {
|
||||||
|
var _this = $(this);
|
||||||
|
return core.confirm("Êtes-vous sûr de vouloir supprimer cette fonte ?", (function() {
|
||||||
|
$(location).attr("href", _this.attr("href"))
|
||||||
|
}))
|
||||||
|
}));
|
||||||
|
$('#dataTables').DataTable({
|
||||||
|
language: {
|
||||||
|
url: "core/vendor/datatables/french.json",
|
||||||
|
},
|
||||||
|
locale: 'fr',
|
||||||
|
"columnDefs": [{
|
||||||
|
target: 5,
|
||||||
|
orderable: false,
|
||||||
|
searchable: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
target: 6,
|
||||||
|
orderable: false,
|
||||||
|
searchable: false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($module::$fontsDetail) : ?>
|
<?php if ($module::$fontsDetail) : ?>
|
||||||
<?php echo template::table([2, 2, 3, 2, 1, 1, 1], $module::$fontsDetail, ['FontId', 'Nom', 'Famille', 'Affectation', 'Origine', '', '']); ?>
|
<?php echo template::table([2, 2, 3, 2, 1, 1, 1], $module::$fontsDetail, ['FontId', 'Nom', 'Famille', 'Affectation', 'Origine', '', ''], ['id' => 'dataTables']); ?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<?php echo template::speech('Aucune fonte !'); ?>
|
<?php echo template::speech('Aucune fonte !'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
Loading…
Reference in New Issue
Block a user