dyjh 6 vuotta sitten
vanhempi
commit
1d63efb93a
1 muutettua tiedostoa jossa 16 lisäystä ja 26 poistoa
  1. 16 26
      resources/views/admin/album/agent/index.blade.php

+ 16 - 26
resources/views/admin/album/agent/index.blade.php

xqd
@@ -56,32 +56,22 @@
             <td>{{ $item->name }}</td>
             <td>{{ $item->status }}</td>
 								<td>
-									<div class="btn-group">
-										<button data-toggle="dropdown"
-											class="btn btn-warning btn-sm dropdown-toggle"
-											aria-expanded="false">
-											操作 <span class="caret"></span>
-										</button>
-										<ul class="dropdown-menu">
-
-
-											@if(role('Album/Agent/update'))
-											<li><a href="{{ U('Album/Agent/update',['id'=>$item->id])}}" class="font-bold">修改</a></li>
-											@endif
-
-											@if($item->status == '待审核')
-												<li><a href="{{ U('Album/Agent/status',['id'=>$item->id,'status'=>1])}}" class="font-bold">通过审核</a></li>
-											@endif
-
-											@if(role('Album/Agent/destroy'))
-											<li class="divider"></li>
-											<li><a href="{{ U('Album/Agent/destroy',['id'=>$item->id])}}" onclick="return confirm('你确定执行删除操作?');">删除</a></li>
-											@endif
-
-										</ul>
-									</div>
-								@if(role('Album/Agent/view'))
-
+									@if(role('Album/Agent/update'))
+										<div class="col-sm-3">
+											<a href="{{ U('Album/Agent/update',['id'=>$item->id])}}" class="btn btn-sm btn-warning pull-right">修改</a>
+										</div>
+									@endif
+									@if($item->status == '待审核')
+										<div class="col-sm-3">
+											<a href="{{ U('Album/Agent/status',['id'=>$item->id,'status'=>1])}}" onclick="return confirm('你确定通过审核?');" class="btn btn-sm btn-success pull-right">通过审核</a>
+										</div>
+									@endif
+									@if(role('Album/Agent/destroy'))
+										<div class="col-sm-3">
+											<a href="{{ U('Album/Agent/destroy',['id'=>$item->id])}}" onclick="return confirm('你确定执行删除操作?');" class="btn btn-sm btn-danger pull-right">删除</a>
+										</div>
+									@endif
+									@if(role('Album/Agent/view'))
 										<div class="col-sm-3 pull-right">
 											<a href="{{ U('Album/Product/Price/index',['id'=>$item->id])}}" class="btn btn-sm btn-primary pull-right">查看报价</a>
 										</div>