|
|
|
@ -12,11 +12,11 @@ use \common\libs\MyLib; |
|
|
|
|
<form id="theFrm"> |
|
|
|
|
<input type="hidden" name="group_id" value="<?=$permissions_id?>">
|
|
|
|
|
<?php foreach($menu_items as $item) { ?> |
|
|
|
|
<div class="col-md-2"> |
|
|
|
|
<div class="col-sm-2"> |
|
|
|
|
<div class="panel panel-info"> |
|
|
|
|
<div class="panel-heading"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-md-12"> |
|
|
|
|
<div class="col-sm-12"> |
|
|
|
|
<label class="i-checks"> |
|
|
|
|
<input type="checkbox" class="parent_checkbox" name="menu_ids[]" value="<?=$item->id?>" <?=in_array($item->id, $menu_ids)?'checked':''?>><i></i> <?=$item->name?> |
|
|
|
|
</label> |
|
|
|
@ -26,7 +26,7 @@ use \common\libs\MyLib; |
|
|
|
|
<div class="panel-body"> |
|
|
|
|
<?php foreach($item->menus as $sub_item) { ?> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-md-12"> |
|
|
|
|
<div class="col-sm-12"> |
|
|
|
|
<label class="i-checks"> |
|
|
|
|
<input type="checkbox" class="sub_checkbox" name="menu_ids[]" value="<?=$sub_item->id?>" <?=in_array($sub_item->id, $menu_ids)?'checked':''?>><i></i> <?=$sub_item->name?> |
|
|
|
|
</label> |
|
|
|
@ -40,7 +40,7 @@ use \common\libs\MyLib; |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-md-5 col-md-offset-5"> |
|
|
|
|
<div class="col-sm-5 col-sm-offset-5"> |
|
|
|
|
<button class="btn btn-primary btn-save" type="button"> |
|
|
|
|
<strong>保 存</strong> |
|
|
|
|
</button> |
|
|
|
|