|
@@ -804,7 +804,7 @@ if (empty($reshook))
|
|
|
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // To redisplay the form being edited
|
|
|
exit();
|
|
|
}
|
|
|
- } elseif ($action == 'updateline' && $user->rights->expedition->creer && GETPOST('cancel', 'alpha') == $langs->trans('Cancel')) {
|
|
|
+ } elseif ($action == 'updateline' && $user->rights->expedition->creer && GETPOST('cancel', 'alpha') == $langs->trans("Cancel")) {
|
|
|
header('Location: '.$_SERVER['PHP_SELF'].'?id='.$object->id); // To redisplay the form being edited
|
|
|
exit();
|
|
|
}
|
|
@@ -1551,7 +1551,7 @@ if ($action == 'create')
|
|
|
print '<div class="center">';
|
|
|
print '<input type="submit" class="button" name="add" value="'.dol_escape_htmltag($langs->trans("Create")).'">';
|
|
|
print ' ';
|
|
|
- print '<input type="'.($backtopage ? "submit" : "button").'" class="button" name="cancel" value="'.dol_escape_htmltag($langs->trans("Cancel")).'"'.($backtopage ? '' : ' onclick="javascript:history.go(-1)"').'>'; // Cancel for create does not post form if we don't know the backtopage
|
|
|
+ print '<input type="'.($backtopage ? "submit" : "button").'" class="button button-cancel" name="cancel" value="'.dol_escape_htmltag($langs->trans("Cancel")).'"'.($backtopage ? '' : ' onclick="javascript:history.go(-1)"').'>'; // Cancel for create does not post form if we don't know the backtopage
|
|
|
print '</div>';
|
|
|
|
|
|
print '</form>';
|
|
@@ -1789,7 +1789,7 @@ if ($action == 'create')
|
|
|
print '<input id="trueWeight" name="trueWeight" value="'.$object->trueWeight.'" type="text" class="width50">';
|
|
|
print $formproduct->selectMeasuringUnits("weight_units", "weight", $object->weight_units, 0, 2);
|
|
|
print ' <input class="button" name="modify" value="'.$langs->trans("Modify").'" type="submit">';
|
|
|
- print ' <input class="button" name="cancel" value="'.$langs->trans("Cancel").'" type="submit">';
|
|
|
+ print ' <input class="button button-cancel" name="cancel" value="'.$langs->trans("Cancel").'" type="submit">';
|
|
|
print '</form>';
|
|
|
} else {
|
|
|
print $object->trueWeight;
|
|
@@ -1822,7 +1822,7 @@ if ($action == 'create')
|
|
|
print '<input id="trueHeight" name="trueHeight" value="'.$object->trueHeight.'" type="text" class="width50">';
|
|
|
print $formproduct->selectMeasuringUnits("size_units", "size", $object->size_units, 0, 2);
|
|
|
print ' <input class="button" name="modify" value="'.$langs->trans("Modify").'" type="submit">';
|
|
|
- print ' <input class="button" name="cancel" value="'.$langs->trans("Cancel").'" type="submit">';
|
|
|
+ print ' <input class="button button-cancel" name="cancel" value="'.$langs->trans("Cancel").'" type="submit">';
|
|
|
print '</form>';
|
|
|
} else {
|
|
|
print $object->trueHeight;
|
|
@@ -2361,7 +2361,7 @@ if ($action == 'create')
|
|
|
{
|
|
|
print '<td class="center" colspan="2" valign="middle">';
|
|
|
print '<input type="submit" class="button button-save" id="savelinebutton marginbottomonly" name="save" value="'.$langs->trans("Save").'"><br>';
|
|
|
- print '<input type="submit" class="button" id="cancellinebutton" name="cancel" value="'.$langs->trans("Cancel").'"><br>';
|
|
|
+ print '<input type="submit" class="button button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans("Cancel").'"><br>';
|
|
|
print '</td>';
|
|
|
} elseif ($object->statut == Expedition::STATUS_DRAFT)
|
|
|
{
|