Fix: Statut ferm des propales non traduit

This commit is contained in:
Laurent Destailleur 2005-07-01 20:12:33 +00:00
parent 6e459c4666
commit 39fc7df1d2
4 changed files with 9 additions and 5 deletions

View File

@ -781,14 +781,14 @@ if ($_GET['propalid'])
{ {
if ($user->rights->propale->creer) if ($user->rights->propale->creer)
{ {
print '<a class="tabAction" href="propal.php?propalid='.$propal->id.'&amp;action=modif">'.$langs->trans('Edit').'</a>'; print '<a class="butAction" href="propal.php?propalid='.$propal->id.'&amp;action=modif">'.$langs->trans('Edit').'</a>';
} }
} }
// Build PDF // Build PDF
if ($propal->statut < 2 && $user->rights->propale->creer) if ($propal->statut < 2 && $user->rights->propale->creer)
{ {
print '<a class="tabAction" href="propal.php?propalid='.$propal->id.'&amp;action=pdf">'.$langs->trans('BuildPDF').'</a>'; print '<a class="butAction" href="propal.php?propalid='.$propal->id.'&amp;action=pdf">'.$langs->trans('BuildPDF').'</a>';
} }
// Send // Send
@ -801,7 +801,7 @@ if ($_GET['propalid'])
$file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf'; $file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf';
if (file_exists($file)) if (file_exists($file))
{ {
print '<a class="tabAction" href="propal.php?propalid='.$propal->id.'&amp;action=presend">'.$langs->trans('Send').'</a>'; print '<a class="butAction" href="propal.php?propalid='.$propal->id.'&amp;action=presend">'.$langs->trans('Send').'</a>';
} }
} }
} }
@ -811,7 +811,7 @@ if ($_GET['propalid'])
{ {
if ($user->rights->propale->supprimer) if ($user->rights->propale->supprimer)
{ {
print '<a class="butDelete" href="propal.php?propalid='.$propal->id.'&amp;action=delete">'.$langs->trans('Delete').'</a>'; print '<a class="butActionDelete" href="propal.php?propalid='.$propal->id.'&amp;action=delete">'.$langs->trans('Delete').'</a>';
} }
} }
@ -820,7 +820,7 @@ if ($_GET['propalid'])
{ {
if ($propal->statut == 1 && $user->rights->propale->cloturer) if ($propal->statut == 1 && $user->rights->propale->cloturer)
{ {
print '<a class="tabAction" href="propal.php?propalid='.$propal->id.'&amp;action=statut">'.$langs->trans('Close').'</a>'; print '<a class="butAction" href="propal.php?propalid='.$propal->id.'&amp;action=statut">'.$langs->trans('Close').'</a>';
} }
} }
print '</div><br>'; print '</div><br>';

View File

@ -26,6 +26,7 @@ PropalsDraft=Drafts
PropalsOpened=Opened PropalsOpened=Opened
PropalStatusDraft=Draft (need to be validated) PropalStatusDraft=Draft (need to be validated)
PropalStatusValidated=Validated (proposal is opened) PropalStatusValidated=Validated (proposal is opened)
PropalStatusClosed=Closed
ListOfProposals=List of commercial proposals ListOfProposals=List of commercial proposals
ActionsOnPropal=Tasks on proposal ActionsOnPropal=Tasks on proposal
NoOpenedPropals=No opened commercial proposals NoOpenedPropals=No opened commercial proposals

View File

@ -26,6 +26,7 @@ PropalsDraft=Brouillons
PropalsOpened=Ouvertes PropalsOpened=Ouvertes
PropalStatusDraft=Brouillon (à valider) PropalStatusDraft=Brouillon (à valider)
PropalStatusValidated=Validée (propale ouverte) PropalStatusValidated=Validée (propale ouverte)
PropalStatusClosed=Fermé
ListOfProposals=Liste des devis/propositions commerciales ListOfProposals=Liste des devis/propositions commerciales
ActionsOnPropal=Actions sur la proposition ActionsOnPropal=Actions sur la proposition
NoOpenedPropals=Pas de proposition ouverte NoOpenedPropals=Pas de proposition ouverte

View File

@ -79,8 +79,10 @@ class Propal
$langs->load("propals"); $langs->load("propals");
$this->labelstatut[0]=$langs->trans("PropalStatusDraft"); $this->labelstatut[0]=$langs->trans("PropalStatusDraft");
$this->labelstatut[1]=$langs->trans("PropalStatusValidated"); $this->labelstatut[1]=$langs->trans("PropalStatusValidated");
$this->labelstatut[2]=$langs->trans("PropalStatusClosed");
$this->labelstatut_short[0]=$langs->trans("PropalStatusDraft"); $this->labelstatut_short[0]=$langs->trans("PropalStatusDraft");
$this->labelstatut_short[1]=$langs->trans("Opened"); $this->labelstatut_short[1]=$langs->trans("Opened");
$this->labelstatut_short[2]=$langs->trans("PropalStatusClosed");
} }