Add restriction to combo box
This commit is contained in:
parent
5258c522ce
commit
0450498e2b
@ -1398,9 +1398,11 @@ if ($action == 'create') {
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Shipping Method
|
// Shipping Method
|
||||||
print '<tr><td>' . $langs->trans('SendingMethod') . '</td><td colspan="2">';
|
if (! empty($conf->expedition->enabled)) {
|
||||||
print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
|
print '<tr><td>' . $langs->trans('SendingMethod') . '</td><td colspan="2">';
|
||||||
print '</td></tr>';
|
print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Delivery date (or manufacturing)
|
// Delivery date (or manufacturing)
|
||||||
print '<tr><td>' . $langs->trans("DeliveryDate") . '</td>';
|
print '<tr><td>' . $langs->trans("DeliveryDate") . '</td>';
|
||||||
@ -1865,21 +1867,23 @@ if ($action == 'create') {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Shipping Method
|
// Shipping Method
|
||||||
print '<tr><td>';
|
if (! empty($conf->expedition->enabled)) {
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
print '<tr><td>';
|
||||||
print $langs->trans('SendingMethod');
|
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||||
print '</td>';
|
print $langs->trans('SendingMethod');
|
||||||
if ($action != 'editshippingmethod' && $user->rights->propal->creer)
|
print '</td>';
|
||||||
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshippingmethod&id='.$object->id.'">'.img_edit($langs->trans('SetShippingMode'),1).'</a></td>';
|
if ($action != 'editshippingmethod' && $user->rights->propal->creer)
|
||||||
print '</tr></table>';
|
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshippingmethod&id='.$object->id.'">'.img_edit($langs->trans('SetShippingMode'),1).'</a></td>';
|
||||||
print '</td><td colspan="3">';
|
print '</tr></table>';
|
||||||
if ($action == 'editshippingmethod') {
|
print '</td><td colspan="3">';
|
||||||
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
|
if ($action == 'editshippingmethod') {
|
||||||
} else {
|
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
|
||||||
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
|
} else {
|
||||||
|
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
// Origin of demand
|
// Origin of demand
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
|
|||||||
@ -1530,9 +1530,11 @@ if ($action == 'create' && $user->rights->commande->creer) {
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Shipping Method
|
// Shipping Method
|
||||||
print '<tr><td>' . $langs->trans('SendingMethod') . '</td><td colspan="2">';
|
if (! empty($conf->expedition->enabled)) {
|
||||||
print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
|
print '<tr><td>' . $langs->trans('SendingMethod') . '</td><td colspan="2">';
|
||||||
print '</td></tr>';
|
print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
|
||||||
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// What trigger creation
|
// What trigger creation
|
||||||
print '<tr><td>' . $langs->trans('Source') . '</td><td colspan="2">';
|
print '<tr><td>' . $langs->trans('Source') . '</td><td colspan="2">';
|
||||||
@ -1990,21 +1992,23 @@ if ($action == 'create' && $user->rights->commande->creer) {
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Shipping Method
|
// Shipping Method
|
||||||
print '<tr><td height="10">';
|
if (! empty($conf->expedition->enabled)) {
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
print '<tr><td height="10">';
|
||||||
print $langs->trans('SendingMethod');
|
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||||
print '</td>';
|
print $langs->trans('SendingMethod');
|
||||||
if ($action != 'editshippingmethod' && $user->rights->commande->creer)
|
print '</td>';
|
||||||
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshippingmethod&id='.$object->id.'">'.img_edit($langs->trans('SetShippingMode'),1).'</a></td>';
|
if ($action != 'editshippingmethod' && $user->rights->commande->creer)
|
||||||
print '</tr></table>';
|
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshippingmethod&id='.$object->id.'">'.img_edit($langs->trans('SetShippingMode'),1).'</a></td>';
|
||||||
print '</td><td colspan="3">';
|
print '</tr></table>';
|
||||||
if ($action == 'editshippingmethod') {
|
print '</td><td colspan="3">';
|
||||||
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
|
if ($action == 'editshippingmethod') {
|
||||||
} else {
|
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
|
||||||
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
|
} else {
|
||||||
|
$form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
// Terms of payment
|
// Terms of payment
|
||||||
print '<tr><td height="10">';
|
print '<tr><td height="10">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user