1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-13 17:07:47 +01:00
openstamanager/modules/articoli/buttons.php
Thomas Zilio edab9a2367 Miglioramenti sulla duplicazione articoli
Suggerimenti da issue #834 e #814
2020-07-31 08:44:05 +02:00

15 lines
397 B
PHP
Executable File

<?php
include_once __DIR__.'/../../core.php';
echo '
<button type="button" class="btn btn-primary" onclick="duplicaArticolo()">
<i class="fa fa-copy"></i> '.tr('Duplica articolo').'
</button>
<script>
function duplicaArticolo() {
openModal("'.tr('Duplica articolo').'", "'.$module->fileurl('modals/duplicazione.php').'?id_module='.$id_module.'&id_record='.$id_record.'");
}
</script>';