diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php
index b6d73d7e8d0..23d0f8c2f17 100644
--- a/htdocs/accountancy/admin/index.php
+++ b/htdocs/accountancy/admin/index.php
@@ -141,20 +141,6 @@ if ($action == 'setmanagezero') {
}
}
-if ($action == 'setdisabledirectinput') {
- $setdisabledirectinput = GETPOSTINT('value');
- $res = dolibarr_set_const($db, "BANK_DISABLE_DIRECT_INPUT", $setdisabledirectinput, 'yesno', 0, '', $conf->entity);
- if (!($res > 0)) {
- $error++;
- }
-
- if (!$error) {
- setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
- } else {
- setEventMessages($langs->trans("Error"), null, 'mesgs');
- }
-}
-
if ($action == 'setenabledraftexport') {
$setenabledraftexport = GETPOSTINT('value');
$res = dolibarr_set_const($db, "ACCOUNTING_ENABLE_EXPORT_DRAFT_JOURNAL", $setenabledraftexport, 'yesno', 0, '', $conf->entity);
diff --git a/htdocs/admin/bank.php b/htdocs/admin/bank.php
index 34bcf97d319..3d22198492e 100644
--- a/htdocs/admin/bank.php
+++ b/htdocs/admin/bank.php
@@ -37,10 +37,6 @@ require_once DOL_DOCUMENT_ROOT.'/societe/class/companybankaccount.class.php';
// Load translation files required by the page
$langs->loadLangs(array("admin", "companies", "bills", "other", "banks"));
-if (!$user->admin) {
- accessforbidden();
-}
-
$action = GETPOST('action', 'aZ09');
$actionsave = GETPOST('save', 'alpha');
$value = GETPOST('value', 'alpha');
@@ -48,11 +44,32 @@ $label = GETPOST('label', 'alpha');
$scandir = GETPOST('scan_dir', 'alpha');
$type = 'bankaccount';
+if (!$user->admin) {
+ accessforbidden();
+}
+
+$error = 0;
+
/*
* Actions
*/
+if (in_array($action, array('setBANK_DISABLE_DIRECT_INPUT'))) {
+ $constname = preg_replace('/^set/', '', $action);
+ $constvalue = GETPOSTINT('value');
+ $res = dolibarr_set_const($db, $constname, $constvalue, 'yesno', 0, '', $conf->entity);
+ if (!($res > 0)) {
+ $error++;
+ }
+
+ if (!$error) {
+ setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
+ } else {
+ setEventMessages($langs->trans("Error"), null, 'mesgs');
+ }
+}
+
// Order display of bank account
if ($action == 'setbankorder') {
if (dolibarr_set_const($db, "BANK_SHOW_ORDER_OPTION", GETPOST('value', 'alpha'), 'chaine', 0, '', $conf->entity) > 0) {
@@ -477,6 +494,19 @@ print '
'.$langs->trans("Description").' | ';
print ''.$langs->trans("Status")." | \n";
print "\n";
+print '';
+print '| '.$langs->trans("BANK_DISABLE_DIRECT_INPUT").' | | ';
+if (getDolGlobalString('BANK_DISABLE_DIRECT_INPUT')) {
+ print '';
+ print img_picto($langs->trans("Activated"), 'switch_on');
+ print ' | ';
+} else {
+ print '';
+ print img_picto($langs->trans("Disabled"), 'switch_off');
+ print ' | ';
+}
+print '
';
+
print '| ';
print $langs->trans('AccountStatement');
print " | \n";
diff --git a/htdocs/core/lib/signature.lib.php b/htdocs/core/lib/signature.lib.php
index b3f6afbfa3e..4c2e13693ec 100644
--- a/htdocs/core/lib/signature.lib.php
+++ b/htdocs/core/lib/signature.lib.php
@@ -35,13 +35,17 @@ function showOnlineSignatureUrl($type, $ref, $obj = null, $mode = '')
$servicename = 'Online';
- $out = img_picto('', 'globe').' '.$langs->trans("ToOfferALinkForOnlineSignature", $servicename).' ';
+ $out = '';
+ if ($mode != 'short') {
+ $out .= img_picto('', 'globe', 'class="pictofixedwidth"');
+ }
+ $out .= ''.$langs->trans("ToOfferALinkForOnlineSignature", $servicename).' ';
$url = getOnlineSignatureUrl(0, $type, $ref, 1, $obj);
$out .= '';
diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 1922cafbf58..b221416eb5a 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -1731,11 +1731,11 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
if (!getDolGlobalInt('SOCIETE_DISABLE_BANKACCOUNT') && getDolGlobalInt("SOCIETE_RIB_ALLOW_ONLINESIGN")) {
// Show online signature link
- print ' | ';
+ print ' | ';
$useonlinesignature = 1;
if ($useonlinesignature) {
require_once DOL_DOCUMENT_ROOT . '/core/lib/signature.lib.php';
- print showOnlineSignatureUrl($companybankaccount->element, $rib->id, $rib, 1);
+ print showOnlineSignatureUrl($companybankaccount->element, $rib->id, $rib, 'short');
}
print ' | ';
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 49bc6f18a9a..de497ad8ad1 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -856,6 +856,9 @@ th .button {
.quatrevingtpercentminusx {
width: calc(80% - 52px);
}
+.centpercentminusx {
+ width: calc(100% - 52px);
+}
textarea.centpercent {
width: 96%;
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 6533ed9b3ae..7335f591f38 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -1044,6 +1044,9 @@ th .button {
.quatrevingtpercentminusx {
width: calc(80% - 52px);
}
+.centpercentminusx {
+ width: calc(100% - 52px);
+}
textarea.centpercent {
width: 96%;
}