Browse Source

MMICRM : Option to hide button to sign propal

Mathieu Moulin 1 year ago
parent
commit
1a7e6a26df
2 changed files with 4 additions and 3 deletions
  1. 1 1
      htdocs/custom/mmicrm
  2. 3 2
      htdocs/public/onlinesign/newonlinesign.php

+ 1 - 1
htdocs/custom/mmicrm

@@ -1 +1 @@
-Subproject commit 11a0344b2ac69d6787cbad4550a372c6c88920c4
+Subproject commit 56dfedd841e0bb68a95451cd1ac232c3f3713a43

+ 3 - 2
htdocs/public/onlinesign/newonlinesign.php

@@ -751,8 +751,9 @@ if ($action == "dosign" && empty($cancel)) {
 				print '<span class="warning">'.$langs->trans("PropalAlreadyRefused").'</span>';
 			}
 		} else {
-			print '<input type="submit" class="butAction small wraponsmartphone marginbottomonly marginleftonly marginrightonly reposition" value="'.$langs->trans("SignPropal").'">';
-			print '<input name="refusepropal" type="submit" class="butActionDelete small wraponsmartphone marginbottomonly marginleftonly marginrightonly reposition" value="'.$langs->trans("RefusePropal").'">';
+			if (empty(getDolGlobalInt('MMICRM_PROPAL_HIDE_SIGN')))
+				print '<input type="submit" class="butAction small wraponsmartphone marginbottomonly marginleftonly marginrightonly reposition" value="'.$langs->trans("SignPropal").'">';
+			print '<input name="refusepropal" type="submit" class="'.(empty(getDolGlobalInt('MMICRM_PROPAL_HIDE_SIGN')) ?'butActionDelete' :'butAction').' small wraponsmartphone marginbottomonly marginleftonly marginrightonly reposition" value="'.$langs->trans("RefusePropal").'">';
 		}
 	} elseif ($source == 'contract') {
 		if ($message == 'signed') {