Add a confirm box before deleting.
This commit is contained in:
parent
1685729393
commit
68058d0e4f
@ -245,6 +245,13 @@ if ($conf->societe->enabled)
|
||||
// For products
|
||||
if ($conf->product->enabled || $conf->product->service)
|
||||
{
|
||||
// Example 1 : Adding jquery code
|
||||
print '<script type="text/javascript" language="javascript">
|
||||
function confirm_erase() {
|
||||
return confirm("'.dol_escape_js($langs->trans("ConfirmEraseAllCurrentBarCode")).'");
|
||||
}
|
||||
</script>';
|
||||
|
||||
$nbno=$nbtotal=0;
|
||||
|
||||
print_fiche_titre($langs->trans("BarcodeInitForProductsOrServices"),'','').'<br>'."\n";
|
||||
@ -296,8 +303,6 @@ if ($conf->product->enabled || $conf->product->service)
|
||||
if (empty($nbno))
|
||||
{
|
||||
$disabled1=1;
|
||||
$titleno=$langs->trans("NoRecordWithoutBarcodeDefined");
|
||||
print '<font class="ok">'.$langs->trans("NoRecordWithoutBarcodeDefined").'</font><br>';
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
@ -306,7 +311,7 @@ if ($conf->product->enabled || $conf->product->service)
|
||||
print '<input class="button" type="submit" name="submitformbarcodeproductgen" id="submitformbarcodeproductgen" value="'.$langs->trans("InitEmptyBarCode",min($maxperinit,$nbno)).'"'.$moretags1.'>';
|
||||
$moretags2=(($nbno == $nbtotal)?' disabled="disabled"':'');
|
||||
print ' ';
|
||||
print '<input class="button" type="submit" name="eraseallbarcode" id="eraseallbarcode" value="'.$langs->trans("EraseAllCurrentBarCode").'"'.$moretags2.'>';
|
||||
print '<input class="button" type="submit" name="eraseallbarcode" id="eraseallbarcode" value="'.$langs->trans("EraseAllCurrentBarCode").'"'.$moretags2.' onClick="return confirm_erase();">';
|
||||
print '<br><br><br>';
|
||||
}
|
||||
|
||||
|
||||
@ -380,14 +380,16 @@ DefaultLink=Default link
|
||||
ValueOverwrittenByUserSetup=Warning, this value may be overwritten by user specific setup (each user can set his own clicktodial url)
|
||||
ExternalModule=External module - Installed into directory %s
|
||||
BarcodeInitForThirdparties=Mass barcode init for thirdparties
|
||||
BarcodeInitForProductsOrServices=Mass barcode init for products or services
|
||||
BarcodeInitForProductsOrServices=Mass barcode init or reset for products or services
|
||||
CurrentlyNWithoutBarCode=Currently, you have <strong>%s</strong> records on <strong>%s</strong> %s without barcode defined.
|
||||
InitEmptyBarCode=Init value for next %s empty records
|
||||
EraseAllCurrentBarCode=Erase all current barcode values
|
||||
ConfirmEraseAllCurrentBarCode=Are you sure you want to erase all current barcode values ?
|
||||
AllBarcodeReset=All barcode values have been removed
|
||||
NoBarcodeNumberingTemplateDefined=No numbering barcode template enabled into barcode module setup.
|
||||
NoRecordWithoutBarcodeDefined=No record with no barcode value defined.
|
||||
|
||||
|
||||
# Modules
|
||||
Module0Name=Users & groups
|
||||
Module0Desc=Users and groups management
|
||||
|
||||
Loading…
Reference in New Issue
Block a user