This commit is contained in:
liumengyi
2021-12-01 10:24:45 +08:00
parent 63b0c9be3c
commit 86674338d9
3 changed files with 9 additions and 3 deletions

View File

@@ -120,7 +120,10 @@ td.menus + td {border-left: 0;}
<?php if(!empty($lang->$moduleName->menus) and $action == 'browse') continue;;?>
<?php if(!empty($version) and strpos($changelogs, ",$moduleName-$actionLabel,") === false) continue;?>
<div class='group-item'>
<?php echo html::checkbox("actions[{$moduleName}]", array($action => $lang->$moduleName->$actionLabel), isset($groupPrivs[$moduleName][$action]) ? $action : '', '', 'inline');?>
<div class='checkbox-primary checkbox-inline'>
<input type='checkbox' name='actions[<?php echo $moduleName;?>][]' value='<?php echo $action;?>' <?php if(isset($groupPrivs[$moduleName][$action])) echo "checked='checked'";?> id='actions[<?php echo $moduleName . "]" . $action;?>' title='<?php echo $lang->$moduleName->$actionLabel;?>';>
<label for='actions[<?php echo $moduleName . "]" . $action;?>' ><?php echo $lang->$moduleName->$actionLabel;?></label>
</div>
</div>
<?php endforeach;?>
</td>