Work on stripe interface

This commit is contained in:
Laurent Destailleur 2018-03-14 17:12:32 +01:00
parent b232681318
commit 9994b1f133
2 changed files with 6 additions and 6 deletions

View File

@ -616,7 +616,7 @@ class FormFile
$out.= '<tr class="liste_titre">'; $out.= '<tr class="liste_titre">';
$addcolumforpicto=($delallowed || $printer || $morepicto); $addcolumforpicto=($delallowed || $printer || $morepicto);
$out.= '<th align="center" colspan="'.(3+($addcolumforpicto?'2':'1')).'" class="formdoc liste_titre maxwidthonsmartphone">'; $out.= '<th align="center" colspan="'.(3+($addcolumforpicto?1:0)).'" class="formdoc liste_titre maxwidthonsmartphone">';
// Model // Model
if (! empty($modellist)) if (! empty($modellist))
@ -778,7 +778,7 @@ class FormFile
$res = $hookmanager->executeHooks('formBuilddocLineOptions',$parameters,$file); $res = $hookmanager->executeHooks('formBuilddocLineOptions',$parameters,$file);
if (empty($res)) if (empty($res))
{ {
$out .= $hookmanager->resPrint; // Complete line $out.= $hookmanager->resPrint; // Complete line
$out.= '</tr>'; $out.= '</tr>';
} }
else $out = $hookmanager->resPrint; // Replace line else $out = $hookmanager->resPrint; // Replace line
@ -811,7 +811,7 @@ class FormFile
if (count($file_list) == 0 && count($link_list) == 0 && $headershown) if (count($file_list) == 0 && count($link_list) == 0 && $headershown)
{ {
$out.='<tr class="oddeven"><td colspan="3" class="opacitymedium">'.$langs->trans("None").'</td></tr>'."\n"; $out.='<tr><td colspan="'.(3+($addcolumforpicto?1:0)).'" class="opacitymedium">'.$langs->trans("None").'</td></tr>'."\n";
} }
} }

View File

@ -734,7 +734,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
{ {
$morehtmlright='<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'&amp;action=createcard">'.$langs->trans("Add").'</a>'; $morehtmlright='<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'&amp;action=createcard">'.$langs->trans("Add").'</a>';
} }
print load_fiche_titre($langs->trans('StripePaymentModes').($stripeacc?' ('.$stripeacc.')':' (API mode)'), $morehtmlright, ''); print load_fiche_titre($langs->trans('StripePaymentModes').($stripeacc?' (Stripe connection with Stripe Connect account '.$stripeacc.')':' (Stripe connection with default API credentials)'), $morehtmlright, '');
$listofsources = array(); $listofsources = array();
if (is_object($stripe)) if (is_object($stripe))
@ -1152,7 +1152,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
{ {
$colspan=8; $colspan=8;
if (! empty($conf->prelevement->enabled)) $colspan+=2; if (! empty($conf->prelevement->enabled)) $colspan+=2;
print '<tr '.$bc[0].'><td colspan="'.$colspan.'" class="opacitymedium">'.$langs->trans("NoBANRecord").'</td></tr>'; print '<tr><td colspan="'.$colspan.'" class="opacitymedium">'.$langs->trans("NoBANRecord").'</td></tr>';
} }
print '</table>'; print '</table>';