update Area + Device
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
<div class="form-group" id="code">
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">Mã phòng ban <i class="text-red">*</i></div>
|
||||
<input type="number" class="form-control" value="{$model->code|default:""}" name="Code">
|
||||
<input type="number" class="form-control" value="{$model->code|default:""}" name="Code" {if $model->code==1}disabled=""{/if}>
|
||||
</div>
|
||||
<span class="help-block hidden"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">Trực thuộc <i class="text-red">*</i></div>
|
||||
<select class="form-control" name="Pid" id="Pid">
|
||||
<select class="form-control" name="Pid" id="Pid" {if $model->code==1}disabled=""{/if}>
|
||||
{html_options options=$departmentArray selected=$model->pid|default:1}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -6,27 +6,27 @@
|
||||
{DepartmentAsset::register($this)|void}
|
||||
{block name='content'}
|
||||
<div class="department-index">
|
||||
<div class="">
|
||||
<label class="action-button">
|
||||
<i class="fa fa-sitemap"></i> Cây thư mục
|
||||
<div class="" style="font-size: 15px;">
|
||||
<label class="action-button" onclick="common.form(this, '');" data-href="{Url::to(['tree'])}">
|
||||
<i class="fa fa-sitemap fa-1-5x"></i> Cây thư mục
|
||||
</label>
|
||||
<label class="action-button" onclick="common.form(this, 'department');" data-href="{Url::to(['create'])}">
|
||||
<i class="fa fa-plus-square"></i> Thêm
|
||||
<i class="fa fa-plus-square fa-1-5x"></i> Thêm
|
||||
</label>
|
||||
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['update'])}">
|
||||
<i class="fa fa-edit"></i> Tùy chỉnh
|
||||
<i class="fa fa-edit fa-1-5x"></i> Tùy chỉnh
|
||||
</label>
|
||||
<label class="action-button" onclick="_delete(this);" data-href="{Url::to(['delete'])}">
|
||||
<i class="fa fa-trash"></i> Xóa
|
||||
<i class="fa fa-trash fa-1-5x"></i> Xóa
|
||||
</label>
|
||||
<label class="action-button" onclick="$('#file').trigger('click');">
|
||||
<i class="fa fa-upload"></i> Nhập
|
||||
<i class="fa fa-upload fa-1-5x"></i> Nhập
|
||||
</label>
|
||||
<label class="action-button" onclick="_export(this);" data-href="{Url::to(['export'])}">
|
||||
<i class="fa fa-download"></i> Xuất
|
||||
<i class="fa fa-download fa-1-5x"></i> Xuất
|
||||
</label>
|
||||
<label class="action-button" onclick="_logs(this);" data-href="{Url::to(['logs'])}">
|
||||
<i class="fa fa-file"></i> Ghi nhận hệ thống
|
||||
<i class="fa fa-file fa-1-5x"></i> Ghi nhận hệ thống
|
||||
</label>
|
||||
</div>
|
||||
<div class="hidden">
|
||||
|
||||
7
views/department/tree.tpl
Normal file
7
views/department/tree.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<div style="cursor: pointer;">
|
||||
<i class="fa fa-minus-square-o" onclick="common.tree(this);" data="1" data-stt="true"></i>
|
||||
<b class="tree tree-drop" data="0">{$root->code}-{$root->name}</b>
|
||||
<div id="sub-tree-1" style="padding-left: 20px;">
|
||||
{\app\widgets\Department::widget(["pid"=>1])}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user