update phân quyền chi tiết
This commit is contained in:
@@ -15,27 +15,41 @@
|
||||
<input type='hidden' name='sync_staffs_url' value="{Url::to(['sync-staffs'])}">
|
||||
<input type='hidden' name='get_logs_sync_url' value="{Url::to(['sync-logs'])}">
|
||||
<div class="" style="font-size: 15px;">
|
||||
<label class="action-button" onclick="common.form(this, 'device');" data-href="{Url::to(['create'])}">
|
||||
<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 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 fa-1-5x"></i> Xóa
|
||||
</label>
|
||||
<label class="action-button" onclick="_getLogs(this);" data-href="{Url::to(['get-logs'])}">
|
||||
<i class="fa fa-exchange fa-1-5x"></i> Lấy các sự kiện
|
||||
</label>
|
||||
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['change-ip'])}">
|
||||
<i class="fa fa-pencil fa-1-5x"></i> Thay đổi địa chỉ IP
|
||||
</label>
|
||||
<label class="action-button" onclick="_sync(this);" data-href="{Url::to(['sync'])}">
|
||||
<i class="fa fa-refresh fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
|
||||
</label>
|
||||
<label class="action-button" onclick="_export(this);" data-href="{Url::to(['export'])}">
|
||||
<i class="fa fa-download fa-1-5x"></i> Xuất
|
||||
</label>
|
||||
{if Yii::$app->user->can("deviceCreate")}
|
||||
<label class="action-button" onclick="common.form(this, 'device');" data-href="{Url::to(['create'])}">
|
||||
<i class="fa fa-plus-square fa-1-5x"></i> Thêm
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceUpdate")}
|
||||
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['update'])}">
|
||||
<i class="fa fa-edit fa-1-5x"></i> Tùy chỉnh
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceDelete")}
|
||||
<label class="action-button" onclick="_delete(this);" data-href="{Url::to(['delete'])}">
|
||||
<i class="fa fa-trash fa-1-5x"></i> Xóa
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceSyncDeviceToServer")}
|
||||
<label class="action-button" onclick="_getLogs(this);" data-href="{Url::to(['get-logs'])}">
|
||||
<i class="fa fa-exchange fa-1-5x"></i> Lấy các sự kiện
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceChangeIP")}
|
||||
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['change-ip'])}">
|
||||
<i class="fa fa-pencil fa-1-5x"></i> Thay đổi địa chỉ IP
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceSyncServerToDevice")}
|
||||
<label class="action-button" onclick="_sync(this);" data-href="{Url::to(['sync'])}">
|
||||
<i class="fa fa-refresh fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
|
||||
</label>
|
||||
{/if}
|
||||
{if Yii::$app->user->can("deviceExport")}
|
||||
<label class="action-button" onclick="_export(this);" data-href="{Url::to(['export'])}">
|
||||
<i class="fa fa-download fa-1-5x"></i> Xuất
|
||||
</label>
|
||||
{/if}
|
||||
<label class="action-button" onclick="_logs(this);" data-href="{Url::to(['logs'])}">
|
||||
<i class="fa fa-file fa-1-5x"></i> Ghi nhận hệ thống
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user