Merge pull request #1276 from aspangaro/develop
Modify the presentation of the card
This commit is contained in:
commit
84f6efbb0f
@ -297,20 +297,7 @@ if ($id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
print "<tr><td>".$langs->trans("Type")."</td><td>".$object->type_libelle."</td><td>".$langs->trans("Payments")."</td></tr>";
|
print "<tr><td>".$langs->trans("Type")."</td><td>".$object->type_libelle."</td>";
|
||||||
|
|
||||||
// Period end date
|
|
||||||
print "<tr><td>".$langs->trans("PeriodEndDate")."</td>";
|
|
||||||
print "<td>";
|
|
||||||
if ($action == 'edit')
|
|
||||||
{
|
|
||||||
print $form->select_date($object->periode, 'period', 0, 0, 0, 'charge', 1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print dol_print_date($object->periode,"day");
|
|
||||||
}
|
|
||||||
print "</td>";
|
|
||||||
|
|
||||||
$rowspan=5;
|
$rowspan=5;
|
||||||
print '<td rowspan="'.$rowspan.'" valign="top">';
|
print '<td rowspan="'.$rowspan.'" valign="top">';
|
||||||
@ -337,7 +324,7 @@ if ($id > 0)
|
|||||||
$i = 0; $total = 0;
|
$i = 0; $total = 0;
|
||||||
echo '<table class="nobordernopadding" width="100%">';
|
echo '<table class="nobordernopadding" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Type").'</td>';
|
print '<td>'.$langs->trans("Payments").'</td><td>'.$langs->trans("Type").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Amount").'</td><td> </td></tr>';
|
print '<td align="right">'.$langs->trans("Amount").'</td><td> </td></tr>';
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
@ -376,6 +363,19 @@ if ($id > 0)
|
|||||||
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
|
// Period end date
|
||||||
|
print "<tr><td>".$langs->trans("PeriodEndDate")."</td>";
|
||||||
|
print "<td>";
|
||||||
|
if ($action == 'edit')
|
||||||
|
{
|
||||||
|
print $form->select_date($object->periode, 'period', 0, 0, 0, 'charge', 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print dol_print_date($object->periode,"day");
|
||||||
|
}
|
||||||
|
print "</td></tr>";
|
||||||
|
|
||||||
// Due date
|
// Due date
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
@ -393,8 +393,6 @@ if ($id > 0)
|
|||||||
// Status
|
// Status
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td><td>'.$object->getLibStatut(4).'</td></tr>';
|
print '<tr><td>'.$langs->trans("Status").'</td><td>'.$object->getLibStatut(4).'</td></tr>';
|
||||||
|
|
||||||
print '<tr><td colspan="2"> </td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user