Added ability to assign a category of product to a customer
This commit is contained in:
parent
deb94493dd
commit
f74fd049aa
@ -160,6 +160,7 @@ else
|
|||||||
print '<tr><td>'.$langs->trans("ContentsVisibleByAll").'</td><td>';
|
print '<tr><td>'.$langs->trans("ContentsVisibleByAll").'</td><td>';
|
||||||
print $html->selectyesno("visible",$categorie->visible,1);
|
print $html->selectyesno("visible",$categorie->visible,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
print '<input type="hidden" name="socid" value="'.$categorie->socid.'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<tr><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
print '<tr><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||||
|
|||||||
@ -161,7 +161,8 @@ print "<div class='tabsAction'>\n";
|
|||||||
|
|
||||||
if ($user->rights->categorie->creer)
|
if ($user->rights->categorie->creer)
|
||||||
{
|
{
|
||||||
print "<a class='butAction' href='edit.php?id=".$c->id."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
$socid = ($c->socid ? "&socid=".$c->socid : "");
|
||||||
|
print "<a class='butAction' href='edit.php?id=".$c->id.$socid."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->categorie->supprimer)
|
if ($user->rights->categorie->supprimer)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user