Look and feel v14
This commit is contained in:
parent
d4420bbfd9
commit
e7d64d073a
@ -415,11 +415,6 @@ if ($action == 'create') {
|
||||
|
||||
print '<table class="border centpercent">';
|
||||
|
||||
print '<tr class="hide_if_no_auto_create_payment">';
|
||||
print '<td class="fieldrequired">'.$langs->trans("DatePayment").'</td><td>';
|
||||
print $form->selectDate($datep, "datep", '', '', '', 'add', 1, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td class="titlefieldcreate fieldrequired">'.$form->textwithpicto($langs->trans("PeriodEndDate"), $langs->trans("LastDayTaxIsRelatedTo")).'</td><td>';
|
||||
print $form->selectDate((GETPOST("datevmonth", 'int') ? $datev : -1), "datev", '', '', '', 'add', 1, 1);
|
||||
print '</td></tr>';
|
||||
@ -435,6 +430,17 @@ if ($action == 'create') {
|
||||
// Amount
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input name="amount" size="10" value="'.GETPOST("amount", "alpha").'"></td></tr>';
|
||||
|
||||
print '<tr><td colspan="2"><hr></td></tr>';
|
||||
|
||||
// Auto create payment
|
||||
print '<tr><td>'.$langs->trans('AutomaticCreationPayment').'</td>';
|
||||
print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_payment) ? '' : 'checked="checked"') . ' value="1"></td></tr>'."\n";
|
||||
|
||||
print '<tr class="hide_if_no_auto_create_payment">';
|
||||
print '<td class="fieldrequired">'.$langs->trans("DatePayment").'</td><td>';
|
||||
print $form->selectDate($datep, "datep", '', '', '', 'add', 1, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
// Type payment
|
||||
print '<tr><td class="fieldrequired" id="label_type_payment">'.$langs->trans("PaymentMode").'</td><td>';
|
||||
$form->select_types_paiements(GETPOST("type_payment"), "type_payment");
|
||||
@ -448,10 +454,6 @@ if ($action == 'create') {
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// Auto create payment
|
||||
print '<tr><td>'.$langs->trans('AutomaticCreationPayment').'</td>';
|
||||
print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_payment) ? '' : 'checked="checked"') . ' value="1"></td></tr>'."\n";
|
||||
|
||||
// Number
|
||||
print '<tr class="hide_if_no_auto_create_payment"><td>'.$langs->trans('Numero');
|
||||
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
|
||||
@ -473,9 +475,11 @@ if ($action == 'create') {
|
||||
print dol_get_fiche_end();
|
||||
|
||||
print '<div class="center">';
|
||||
print '<span class="hide_if_no_auto_create_payment">';
|
||||
print '<div class="hide_if_no_auto_create_payment paddingbottom">';
|
||||
print '<input type="checkbox" checked value="1" name="closepaidtva"> <span class="">'.$langs->trans("ClosePaidVATAutomatically").'</span>';
|
||||
print '</span><br>';
|
||||
print '<br>';
|
||||
print '</div>';
|
||||
|
||||
print '<input type="submit" class="button button-save" value="'.$langs->trans("Save").'">';
|
||||
print ' ';
|
||||
print '<input type="submit" class="button button-cancel" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
|
||||
@ -492,7 +492,7 @@ if ($action == 'create') {
|
||||
// Bank
|
||||
if (!empty($conf->banque->enabled)) {
|
||||
print '<tr><td id="label_fk_account">';
|
||||
print $form->editfieldkey('DefaultBankAccount', 'selectaccountid', '', $object, 0, 'string', '', 1).'</td><td>';
|
||||
print $form->editfieldkey('BankAccount', 'selectaccountid', '', $object, 0, 'string', '', 1).'</td><td>';
|
||||
print img_picto('', 'bank_account', 'class="paddingrighonly"');
|
||||
$form->select_comptes($accountid, "accountid", 0, '', 1); // Affiche liste des comptes courant
|
||||
print '</td></tr>';
|
||||
@ -500,7 +500,7 @@ if ($action == 'create') {
|
||||
|
||||
// Type payment
|
||||
print '<tr><td id="label_type_payment">';
|
||||
print $form->editfieldkey('DefaultPaymentMode', 'selectpaymenttype', '', $object, 0, 'string', '', 1).'</td><td>';
|
||||
print $form->editfieldkey('PaymentMode', 'selectpaymenttype', '', $object, 0, 'string', '', 1).'</td><td>';
|
||||
$form->select_types_paiements(GETPOST("paymenttype", 'aZ09'), "paymenttype", '');
|
||||
print '</td></tr>';
|
||||
|
||||
@ -526,10 +526,10 @@ if ($action == 'create') {
|
||||
}
|
||||
|
||||
// Bouton Save payment
|
||||
print '<tr class="hide_if_no_auto_create_payment"><td>';
|
||||
/* print '<tr class="hide_if_no_auto_create_payment"><td>';
|
||||
print $langs->trans("ClosePaidSalaryAutomatically");
|
||||
print '</td><td><input type="checkbox" checked value="1" name="closepaidsalary"></td></tr>';
|
||||
|
||||
*/
|
||||
// Other attributes
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
@ -543,6 +543,12 @@ if ($action == 'create') {
|
||||
print dol_get_fiche_end();
|
||||
|
||||
print '<div class="center">';
|
||||
|
||||
print '<div class="hide_if_no_auto_create_payment paddingbottom">';
|
||||
print '<input type="checkbox" checked value="1" name="closepaidsalary">'.$langs->trans("ClosePaidSalaryAutomatically");
|
||||
print '<br>';
|
||||
print '</div>';
|
||||
|
||||
print '<input type="submit" class="button button-save" name="save" value="'.$langs->trans("Save").'">';
|
||||
print ' ';
|
||||
print '<input type="submit" class="button" name="saveandnew" value="'.$langs->trans("SaveAndNew").'">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user