add forms for add and edit permission
This commit is contained in:
parent
6c0a923b67
commit
d990d55139
@ -3956,7 +3956,7 @@ if ($module == 'initmodule') {
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
print '<select name="label" >';
|
print '<select name="label" >';
|
||||||
print '<option value=""></option>';
|
print '<option value=""></option>';
|
||||||
for ($i = 0; $i<count($labels); $i++) {
|
for ($i = 0; $i<3; $i++) {
|
||||||
print '<option value="'.dol_escape_htmltag($labels[$i]).'">'.$labels[$i].'</option>';
|
print '<option value="'.dol_escape_htmltag($labels[$i]).'">'.$labels[$i].'</option>';
|
||||||
}
|
}
|
||||||
print '</select></td>';
|
print '</select></td>';
|
||||||
@ -3972,7 +3972,7 @@ if ($module == 'initmodule') {
|
|||||||
|
|
||||||
print '<td><select class="maxwidth" name="crud">';
|
print '<td><select class="maxwidth" name="crud">';
|
||||||
print '<option value=""></option>';
|
print '<option value=""></option>';
|
||||||
for ($i = 0;$i<count($crud);$i++) {
|
for ($i = 0;$i<3;$i++) {
|
||||||
print '<option value="'.$crud[$i].'">'.$langs->trans($crud[$i]).'</option>';
|
print '<option value="'.$crud[$i].'">'.$langs->trans($crud[$i]).'</option>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -4015,7 +4015,7 @@ if ($module == 'initmodule') {
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
print '<select name="crud">';
|
print '<select name="crud">';
|
||||||
print '<option value="'.dol_escape_htmltag($perm[5]).'">'.$langs->trans($perm[5]).'</option>';
|
print '<option value="'.dol_escape_htmltag($perm[5]).'">'.$langs->trans($perm[5]).'</option>';
|
||||||
for ($i = 0; $i<count($crud); $i++) {
|
for ($i = 0; $i<3; $i++) {
|
||||||
if ($perm[5] != $crud[$i]) {
|
if ($perm[5] != $crud[$i]) {
|
||||||
print '<option value="'.$crud[$i].'">'.$langs->trans($crud[$i]).'</option>';
|
print '<option value="'.$crud[$i].'">'.$langs->trans($crud[$i]).'</option>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user