refine the switch for admin-options of UI.

This commit is contained in:
kunw 2016-06-21 13:42:20 +08:00
parent c95d42b9fc
commit 2b0b4ed003
3 changed files with 12 additions and 4 deletions

View File

@ -13,7 +13,11 @@
<div class="sub-pane">
<table class="table">
<thead>
<th>// 'username' | tr //</th><th>// 'email' | tr //</th><th>// 'registration_time' | tr //</th><th>// 'operation' | tr //</th>
<th>// 'username' | tr //</th>
<th>// 'email' | tr //</th>
<th>// 'registration_time' | tr //</th>
<th>// 'administrator' | tr //</th>
<th>// 'operation' | tr //</th>
</thead>
<tbody>
<tr ng-repeat="u in vm.users">
@ -21,7 +25,9 @@
<td>//u.email//</td>
<td>//u.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
<td>
<toggle-admin has-admin-role="u.has_admin_role == 1" user-id="//u.user_id//"></toggle-admin>&nbsp;&nbsp;
<toggle-admin has-admin-role="u.has_admin_role == 1" user-id="//u.user_id//"></toggle-admin>
</td>
<td>
&nbsp;&nbsp;<a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" ng-click="vm.confirmToDelete(u.user_id)"><span class="glyphicon glyphicon-trash"></span></a>
</td>
</tr>

View File

@ -165,5 +165,6 @@ var locale_messages = {
'change_profile': 'Change Profile',
'confirm_to_change_profile': 'Are you sure to change your profile?',
'form_is_invalid': 'Form content is invalid',
'form_is_invalid_message': 'Form content is invalid, please fill the required fields.'
'form_is_invalid_message': 'Form content is invalid, please fill the required fields.',
'administrator': 'Administrator'
};

View File

@ -164,5 +164,6 @@ var locale_messages = {
'change_profile': '修改个人信息',
'confirm_to_change_profile': '确认要修改个人信息吗?',
'form_is_invalid': '表单内容无效',
'form_is_invalid_message': '表单内容无效,请填写必填字段。'
'form_is_invalid_message': '表单内容无效,请填写必填字段。',
'administrator': '管理员'
};