Fix enable/disabled contract
This commit is contained in:
parent
99553c8230
commit
071ca6d1c4
@ -1769,7 +1769,7 @@ else
|
||||
print '<form name="active" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&ligne='.GETPOST('ligne').'&action=active" method="post">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
|
||||
print '<table class="notopnoleftnoright tableforservicepart2" width="100%">';
|
||||
print '<table class="noborder tableforservicepart2" width="100%">';
|
||||
|
||||
// Definie date debut et fin par defaut
|
||||
$dateactstart = $objp->date_debut;
|
||||
@ -1789,15 +1789,15 @@ else
|
||||
}
|
||||
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td class="nohover">'.$langs->trans("DateServiceActivate").'</td><td>';
|
||||
print '<td class="nohover">'.$langs->trans("DateServiceActivate").'</td><td class="nohover">';
|
||||
print $form->select_date($dateactstart,'',$usehm,$usehm,'',"active",1,0,1);
|
||||
print '</td>';
|
||||
|
||||
print '<td class="nohover">'.$langs->trans("DateEndPlanned").'</td><td>';
|
||||
print '<td class="nohover">'.$langs->trans("DateEndPlanned").'</td><td class="nohover">';
|
||||
print $form->select_date($dateactend,"end",$usehm,$usehm,'',"active",1,0,1);
|
||||
print '</td>';
|
||||
|
||||
print '<td align="center nohover" rowspan="2" valign="middle">';
|
||||
print '<td align="center nohover" rowspan="2" valign="middle" class="nohover">';
|
||||
print '<input type="submit" class="button" name="activate" value="'.$langs->trans("Activate").'"><br>';
|
||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
print '</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user