创建版本
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
<div class="panel">
|
||||
<table class="table table-form">
|
||||
<form method="post" action="{{url()}}" id="myform" name="myform">
|
||||
|
||||
<tr>
|
||||
<td align="right" width="10%">板块名称 <span style="color:red">*</span></td>
|
||||
<td align="left">
|
||||
<input type="text" class="form-control input-sm" name="name" value="{{$row['name']}}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">访问权限</td>
|
||||
<td>
|
||||
{{App\Support\Dialog::search($row,'id=scope_id&name=scope_name&multi=1')}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">类别状态</td>
|
||||
<td>
|
||||
<label class="radio-inline"><input type="radio" name="state" value="1" @if($row['id']>0&&$row['state']==1) checked="true" @endif > 启用</label>
|
||||
|
||||
<label class="radio-inline"><input type="radio" name="state" value="0" @if($row['id']>0&&$row['state']==0) checked="true" @endif > 停用</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">排序</td>
|
||||
<td align="left">
|
||||
<input type="text" class="form-control input-sm" name="sort" value="{{$row['sort']}}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right">备注</td>
|
||||
<td align="left">
|
||||
<textarea class="form-control input-sm" rows="3" cols="20" type="text" name="remark" id="remark" />{{$row['remark']}}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right"></td>
|
||||
<td align="left">
|
||||
<input type="hidden" name="id" value="{{$row['id']}}" />
|
||||
<input type="hidden" id="past_parent_id" name="past_parent_id" value="{{$row['parent_id']}}" />
|
||||
<button type="submit" class="btn btn-success"><i class="fa fa-check-circle"></i> 提交</button>
|
||||
<button type="button" onclick="history.back();" class="btn btn-default">返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,54 @@
|
||||
<div class="panel">
|
||||
|
||||
<div class="wrapper">
|
||||
@if(isset($access['add']))
|
||||
<a href="{{url('add')}}" class="btn btn-sm btn-info"><i class="icon icon-plus"></i> 新建</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<form method="post" id="myform" name="myform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table m-b-none b-t table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left">名称</th>
|
||||
<th align="left">备注</th>
|
||||
<th align="center">排序</th>
|
||||
<th align="center">编号</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@if($rows)
|
||||
@foreach($rows as $v)
|
||||
<tr>
|
||||
<td align="left">{{$v['layer_html']}}{{$v['name']}}</td>
|
||||
<td align="left">{{$v['remark']}}</td>
|
||||
<td align="center">
|
||||
<input type="text" class="form-control input-sort" name="sort[{{$v['id']}}]" value="{{$v['sort']}}" />
|
||||
</td>
|
||||
<td align="center">{{$v['id']}}</td>
|
||||
<td align="center">
|
||||
<a class="option" href="{{url('add')}}?id={{$v['id']}}"> 编辑 </a>
|
||||
<a class="option" onclick="app.confirm('{{url('delete',['id'=>$v['id']])}}','确定要删除吗?');" href="javascript:;">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</table>
|
||||
|
||||
<footer class="panel-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-1 hidden-xs">
|
||||
<button type="submit" class="btn btn-primary btn-sm"><i class="icon icon-sort-by-order"></i> 排序</button>
|
||||
</div>
|
||||
<div class="col-sm-11 text-right text-center-xs">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user