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)
{
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
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
@@ -801,7 +801,7 @@ if ($_GET['propalid'])
$file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf';
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)
{
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)
{
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>';

View File

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

View File

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

View File

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