Skip to content
Snippets Groups Projects
Commit 1d6b4cb2 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Look and feel v6

parent a8afa547
No related branches found
No related tags found
No related merge requests found
...@@ -1080,6 +1080,7 @@ if ($action == 'edit_price' && $object->getRights()->creer) ...@@ -1080,6 +1080,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
if (empty($conf->global->PRODUIT_MULTIPRICES)) if (empty($conf->global->PRODUIT_MULTIPRICES))
{ {
print '<!-- Edit price -->'."\n";
print '<form action="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '" method="POST">'; print '<form action="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION ['newtoken'] . '">'; print '<input type="hidden" name="token" value="' . $_SESSION ['newtoken'] . '">';
print '<input type="hidden" name="action" value="update_price">'; print '<input type="hidden" name="action" value="update_price">';
...@@ -1184,6 +1185,7 @@ if ($action == 'edit_price' && $object->getRights()->creer) ...@@ -1184,6 +1185,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
} }
else else
{ {
print '<!-- Edit price per level -->'."\n";
?> ?>
<script> <script>
...@@ -1213,7 +1215,7 @@ if ($action == 'edit_price' && $object->getRights()->creer) ...@@ -1213,7 +1215,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
print '<input type="hidden" name="action" value="update_price">'; print '<input type="hidden" name="action" value="update_price">';
print '<input type="hidden" name="id" value="' . $object->id . '">'; print '<input type="hidden" name="id" value="' . $object->id . '">';
dol_fiche_head(''); //dol_fiche_head('', '', '', -1);
if (! empty($conf->global->PRODUIT_MULTIPRICES) && ! empty($conf->global->PRODUIT_MULTIPRICES_ALLOW_AUTOCALC_PRICELEVEL)) { if (! empty($conf->global->PRODUIT_MULTIPRICES) && ! empty($conf->global->PRODUIT_MULTIPRICES_ALLOW_AUTOCALC_PRICELEVEL)) {
print $langs->trans('UseMultipriceRules'). ' <input type="checkbox" id="usePriceRules" name="usePriceRules" '.($object->price_autogen ? 'checked' : '').'><br><br>'; print $langs->trans('UseMultipriceRules'). ' <input type="checkbox" id="usePriceRules" name="usePriceRules" '.($object->price_autogen ? 'checked' : '').'><br><br>';
...@@ -1295,7 +1297,7 @@ if ($action == 'edit_price' && $object->getRights()->creer) ...@@ -1295,7 +1297,7 @@ if ($action == 'edit_price' && $object->getRights()->creer)
print '</table>'; print '</table>';
dol_fiche_end(); //dol_fiche_end();
print '<div style="text-align: center">'; print '<div style="text-align: center">';
print '<input type="submit" class="button" value="' . $langs->trans("Save") . '">'; print '<input type="submit" class="button" value="' . $langs->trans("Save") . '">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment