début ajout possibilité de déterminer si le contenu d'une catégorie 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";
|
require "./pre.inc.php";
|
||||||
|
|
||||||
|
$user->getrights('categorie');
|
||||||
|
|
||||||
|
if (! $user->rights->categorie->lire)
|
||||||
|
{
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
if ($_REQUEST['id'] == "")
|
if ($_REQUEST['id'] == "")
|
||||||
{
|
{
|
||||||
dolibarr_print_error ();
|
dolibarr_print_error ();
|
||||||
@ -67,6 +74,16 @@ else
|
|||||||
print "\t<tr ".$bc[$var].">\n";
|
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><a href='viewcat.php?id=".$cat->id."'>".$cat->label."</a></td>\n";
|
||||||
print "\t\t<td>".$cat->description."</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";
|
print "\t</tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,8 +132,17 @@ else
|
|||||||
* Boutons actions
|
* Boutons actions
|
||||||
*/
|
*/
|
||||||
print "<div class='tabsAction'>\n";
|
print "<div class='tabsAction'>\n";
|
||||||
|
|
||||||
|
if ($user->rights->categorie->creer)
|
||||||
|
{
|
||||||
print "<a class='tabAction' href='edit.php?id=".$c->id."'>".$langs->trans("Edit")."</a>";
|
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 "<a class='tabAction' href='delete.php?id=".$c->id."'>".$langs->trans("Delete")."</a>";
|
||||||
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,3 +36,5 @@ ProductIsInCategories=Product/Service is in following categories
|
|||||||
ClassifyInCategory=Classify in category
|
ClassifyInCategory=Classify in category
|
||||||
ReturnInProduct=Return in product/service card
|
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
|
CategoryExistsAtSameLevel=Cette catégorie existe déjà au même endroit
|
||||||
ReturnInProduct=Retour sur la fiche produit/service
|
ReturnInProduct=Retour sur la fiche produit/service
|
||||||
ContentsVisibleByAll=Le contenu sera visible par tous
|
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