Skip to content

Commit

Permalink
优化锁定操作
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Aug 7, 2024
1 parent 1dd6408 commit da57196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/application/admin/view/other/adv/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
<td>{$v.width}px &times; {$v.height}px</td>
<td class="operations">
{if $v['locked']}
<a class="btn btn-outline-primary" title="解锁"
<a class="btn btn-outline-primary link-confirm" data-confirm="确定解锁项目?" title="解锁"
href="{:url('other.adv/unlock',array('id'=>$v['id']))}"><i class="ion-md-unlock"></i></a>
{else/}
<a class="btn btn-outline-primary" title="编辑"
href="{:url('other.adv/update',array('id'=>$v['id']))}"><i class="ion-md-create"></i></a>
<a class="btn btn-outline-primary" title="锁定"
<a class="btn btn-outline-primary link-confirm" data-confirm="确定锁定项目?" title="锁定"
href="{:url('other.adv/lock',array('id'=>$v['id']))}"><i class="ion-md-lock"></i></a>
{/if}

Expand Down
4 changes: 2 additions & 2 deletions src/application/admin/view/other/booth/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<a class="btn btn-outline-primary" title="编辑"
href="{:url('other.booth/update',array('id'=>$v['id']))}"><i class="ion-md-create"></i></a>
{if $v['locked']}
<a class="btn btn-outline-primary" title="解锁"
<a class="btn btn-outline-primary link-confirm" data-confirm="确定解锁项目?" title="解锁"
href="{:url('other.booth/unlock',array('id'=>$v['id']))}"><i class="ion-md-unlock"></i></a>
{else/}
<a class="btn btn-outline-primary" title="锁定"
<a class="btn btn-outline-primary link-confirm" data-confirm="确定锁定项目?" title="锁定"
href="{:url('other.booth/lock',array('id'=>$v['id']))}"><i class="ion-md-lock"></i></a>
<a class="btn btn-outline-danger link-confirm" data-confirm="您真的确定要删除吗?\n删除后将不能恢复!" title="删除"
href="{:url('other.booth/delete',array('id'=>$v['id']))}"><i class="ion-md-trash"></i></a>
Expand Down

0 comments on commit da57196

Please sign in to comment.