mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
On deplace le bouton Retour Liste au niveau de la ligne de ref car les boutons actions sont reserves aux actions sur l'objet et ce bouton est un operation de navigation et non d'action sur l'objet. Le lient est donc mis au meme niveau que les boutons de navigations suivant-precedents d'une fiche
This commit is contained in:
parent
d8754400d8
commit
fa3c1933e3
|
|
@ -474,6 +474,16 @@ class CommonObject
|
|||
print "</select>\n";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Charge les propriétés ref_previous et ref_next
|
||||
* \param filter filtre
|
||||
* \return int <0 si ko, >0 si ok
|
||||
*/
|
||||
function load_previous_next_ref($filter='')
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -144,8 +144,12 @@ if ($_GET["propalid"] > 0)
|
|||
*/
|
||||
print '<table class="border" width="100%">';
|
||||
|
||||
$linkback='<a href="propal.php' . "?page=$page&socid=$socid&viewstatut=$viewstatut&sortfield=$sortfield&$sortorder" .'">'.$langs->trans("BackToList")."</a>";
|
||||
|
||||
// Ref
|
||||
print '<tr><td>'.$langs->trans('Ref').'</td><td colspan="5">'.$propal->ref.'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans('Ref').'</td><td colspan="5">';
|
||||
print $html->showrefnav($propal,'propalid',$linkback);
|
||||
print '</td></tr>';
|
||||
|
||||
// Ref client
|
||||
print '<tr><td>';
|
||||
|
|
@ -449,7 +453,6 @@ if ($_GET["propalid"] > 0)
|
|||
* Boutons Actions
|
||||
*/
|
||||
print '<div class="tabsAction">';
|
||||
print '<a class="butAction" href="propal.php' . "?page=$page&socid=$socid&viewstatut=$viewstatut&sortfield=$sortfield&$sortorder" .'">'.'Retour Liste'."</a>";
|
||||
|
||||
if ($propal->statut <> 4 && $user->societe_id == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3327,9 +3327,10 @@ class Form
|
|||
* \brief Affiche tableau avec ref et bouton navigation pour un objet metier
|
||||
* \param object Objet a afficher
|
||||
* \param paramid Nom du parametre a utiliser pour nommer id dans liens URL
|
||||
* \param morehtml Code html supplementaire a afficher avant barre nav
|
||||
* \return string Portion HTML avec ref + boutons nav
|
||||
*/
|
||||
function showrefnav($object,$paramid='ref')
|
||||
function showrefnav($object,$paramid,$morehtml='')
|
||||
{
|
||||
$ret='';
|
||||
|
||||
|
|
@ -3337,11 +3338,21 @@ class Form
|
|||
$previous_ref = $object->ref_previous?'<a href="'.$_SERVER["PHP_SELF"].'?'.$paramid.'='.urlencode($object->ref_previous).'">'.img_previous().'</a>':'';
|
||||
$next_ref = $object->ref_next?'<a href="'.$_SERVER["PHP_SELF"].'?'.$paramid.'='.urlencode($object->ref_next).'">'.img_next().'</a>':'';
|
||||
|
||||
if ($previous_ref || $next_ref) $ret.='<table class="nobordernopadding" width="100%"><tr class="nobordernopadding"><td class="nobordernopadding">';
|
||||
$ret.=$object->getNomUrl(0);
|
||||
if ($previous_ref || $next_ref || $morehtml) {
|
||||
$ret.='<table class="nobordernopadding" width="100%"><tr class="nobordernopadding"><td class="nobordernopadding">';
|
||||
}
|
||||
//$ret.=$object->getNomUrl(0);
|
||||
$ret.=$object->ref;
|
||||
if ($morehtml) {
|
||||
$ret.='</td><td class="nobordernopadding" align="right">'.$morehtml;
|
||||
}
|
||||
if ($previous_ref || $next_ref) {
|
||||
$ret.='</td><td class="nobordernopadding" align="center" width="20">'.$previous_ref.'</td>';
|
||||
$ret.='<td class="nobordernopadding" align="center" width="20">'.$next_ref.'</td></tr></table>';
|
||||
$ret.='<td class="nobordernopadding" align="center" width="20">'.$next_ref;
|
||||
}
|
||||
if ($previous_ref || $next_ref || $morehtml)
|
||||
{
|
||||
$ret.='</td></tr></table>';
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -379,6 +379,7 @@ Owner=Owner
|
|||
DetectedVersion=Detected version
|
||||
FollowingConstantsWillBeSubstituted=Following constants will be substitute with corresponding value.
|
||||
Refresh=Refresh
|
||||
BackToList=Back to list
|
||||
# Countries
|
||||
CountryFR=France
|
||||
CountryBE=Belgium
|
||||
|
|
|
|||
|
|
@ -380,6 +380,7 @@ Owner=Propri
|
|||
DetectedVersion=Version détectée
|
||||
FollowingConstantsWillBeSubstituted=Les constantes suivantes seront substituées par leur valeur correspondante.
|
||||
Refresh=Rafraichir
|
||||
BackToList=Retour liste
|
||||
# Countries
|
||||
CountryFR=France
|
||||
CountryBE=Belgique
|
||||
|
|
@ -407,4 +408,4 @@ ShortWednesday=M
|
|||
ShortThursday=J
|
||||
ShortFriday=V
|
||||
ShortSaturday=S
|
||||
ShortSunday=D
|
||||
ShortSunday=D
|
||||
|
|
|
|||
|
|
@ -654,7 +654,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||
|
||||
// Reference
|
||||
print '<td width="15%">'.$langs->trans("Ref").'</td><td width="85%">';
|
||||
print $html->showrefnav($product);
|
||||
print $html->showrefnav($product,'ref');
|
||||
print '</td>';
|
||||
|
||||
$nblignes=6;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user