Fix: all forms must react same way with option optimize_small_screen
This commit is contained in:
parent
a1f9b22210
commit
7e748f26a6
@ -408,7 +408,9 @@ function show_projects($conf,$langs,$db,$object,$backtopage='')
|
||||
if (! empty($conf->projet->enabled) && $user->rights->projet->creer)
|
||||
{
|
||||
//$buttoncreate='<a class="butAction" href="'.DOL_URL_ROOT.'/projet/fiche.php?socid='.$object->id.'&action=create&backtopage='.urlencode($backtopage).'">'.$langs->trans("AddProject").'</a>';
|
||||
$buttoncreate='<a class="addnewrecord" href="'.DOL_URL_ROOT.'/projet/fiche.php?socid='.$object->id.'&action=create&backtopage='.urlencode($backtopage).'">'.$langs->trans("AddProject").' '.img_picto($langs->trans("AddProject"),'filenew').'</a>'."\n";
|
||||
$buttoncreate='<a class="addnewrecord" href="'.DOL_URL_ROOT.'/projet/fiche.php?socid='.$object->id.'&action=create&backtopage='.urlencode($backtopage).'">'.$langs->trans("AddProject");
|
||||
if (empty($conf->dol_optimize_smallscreen)) $buttoncreate.=' '.img_picto($langs->trans("AddProject"),'filenew');
|
||||
$buttoncreate.='</a>'."\n";
|
||||
}
|
||||
|
||||
print "\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user