dbut ajout possibilit de dterminer si le contenu d'une catgorie sera visible ou
non dans la liste des produits/services, ceci afin de pouvoir cacher les sous-produits par exemple.
This commit is contained in:
parent
7edf4b6928
commit
172fcf6430
@ -18,6 +18,13 @@
|
||||
|
||||
require "./pre.inc.php";
|
||||
|
||||
$user->getrights('categorie');
|
||||
|
||||
if (! $user->rights->categorie->lire)
|
||||
{
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
if ($_REQUEST['id'] == "")
|
||||
{
|
||||
dolibarr_print_error ();
|
||||
@ -67,6 +74,16 @@ else
|
||||
print "\t<tr ".$bc[$var].">\n";
|
||||
print "\t\t<td><a href='viewcat.php?id=".$cat->id."'>".$cat->label."</a></td>\n";
|
||||
print "\t\t<td>".$cat->description."</td>\n";
|
||||
|
||||
if ($cat->visible == 1)
|
||||
{
|
||||
print "\t\t<td>".$langs->trans("ContentsVisibleByAllShort")."</td>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "\t\t<td>".$langs->trans("ContentsNoVisibleByAllShort")."</td>\n";
|
||||
}
|
||||
|
||||
print "\t</tr>\n";
|
||||
}
|
||||
}
|
||||
@ -115,8 +132,17 @@ else
|
||||
* Boutons actions
|
||||
*/
|
||||
print "<div class='tabsAction'>\n";
|
||||
print "<a class='tabAction' href='edit.php?id=".$c->id."'>".$langs->trans("Edit")."</a>";
|
||||
print "<a class='tabAction' href='delete.php?id=".$c->id."'>".$langs->trans("Delete")."</a>";
|
||||
|
||||
if ($user->rights->categorie->creer)
|
||||
{
|
||||
print "<a class='tabAction' href='edit.php?id=".$c->id."'>".$langs->trans("Edit")."</a>";
|
||||
}
|
||||
|
||||
if ($user->rights->categorie->supprimer)
|
||||
{
|
||||
print "<a class='tabAction' href='delete.php?id=".$c->id."'>".$langs->trans("Delete")."</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
|
||||
|
||||
@ -35,4 +35,6 @@ WasAddedSuccessfully=was added successfully.
|
||||
ProductIsInCategories=Product/Service is in following categories
|
||||
ClassifyInCategory=Classify in category
|
||||
ReturnInProduct=Return in product/service card
|
||||
ContentsVisibleByAll=The contents will be visible by all
|
||||
ContentsVisibleByAll=The contents will be visible by all
|
||||
ContentsVisibleByAllShort=Contents visible by all
|
||||
ContentsNoVisibleByAllShort=Contents no visible by all
|
||||
@ -38,3 +38,5 @@ NoneCategory=Aucune
|
||||
CategoryExistsAtSameLevel=Cette catégorie existe déjà au même endroit
|
||||
ReturnInProduct=Retour sur la fiche produit/service
|
||||
ContentsVisibleByAll=Le contenu sera visible par tous
|
||||
ContentsVisibleByAllShort=Contenu visible par tous
|
||||
ContentsNoVisibleByAllShort=Contenu non visible par tous
|
||||
|
||||
Loading…
Reference in New Issue
Block a user