diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index 5a6d26bb3c5..1a00a82242f 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -234,7 +234,7 @@ if ($_socid > 0)
print '
';
print '';
- print '| '.$langs->trans("Name").' | ';
+ print ' | | '.$langs->trans("Name").' | ';
print $objsoc->nom;
print ' | ';
@@ -346,22 +346,38 @@ if ($_socid > 0)
print '';
print '| ';
print $langs->trans('PaymentConditions');
- print ' | | ';
- print ' ';
- print ' | ';
- print ' | ';
- $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id');
+ print ' | ';
+
+ if ($_GET['action'] != 'editconditions') print ' | id.'">'.img_edit($langs->trans('SetConditions'),1).' | ';
+ print ' ';
+ print ' | ';
+ if ($_GET['action'] == 'editconditions')
+ {
+ $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'mode_reglement_id');
+ }
+ else
+ {
+ $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'none');
+ }
+
print " | ";
print '
';
// mode de règlement
print '';
print '| ';
print $langs->trans('PaymentMode');
- print ' | | ';
- print ' ';
- print ' | ';
- print ' | ';
- $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
+ print ' | ';
+ if ($_GET['action'] != 'editmode') print ' | id.'">'.img_edit($langs->trans('SetMode'),1).' | ';
+ print '
';
+ print '';
+ if ($_GET['action'] == 'editmode')
+ {
+ $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
+ }
+ else
+ {
+ $html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'none');
+ }
print " | ";
print '';
}