init
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{{$areas:=.areas}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<form action="/web/area/list" method="get">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-5"></div>
|
||||
<div class="col-md-3">
|
||||
<select class="form-control" name="type">
|
||||
<option value="name">区域名称</option>
|
||||
<option value="cs_type">类型[server|client]</option>
|
||||
<option value="is_forbidden">访问控制[0禁止|1允许]</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control" name="id" type="text" placeholder="">
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center w5p">ID</th>
|
||||
<th class="center w15p">区域名称</th>
|
||||
<th class="center w10p">类型</th>
|
||||
<th class="center w15p">访问控制</th>
|
||||
<th class="center w15p">创建时间</th>
|
||||
<th class="center w15p">更新时间</th>
|
||||
<th class="center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range $area := $areas}}
|
||||
<tr>
|
||||
<td class="center">{{$area.area_id}}</td>
|
||||
<td class="center">{{$area.name}}</td>
|
||||
<td class="center">{{$area.cs_type}}</td>
|
||||
<td class="center">{{if eq $area.is_forbidden "1"}}
|
||||
<span class="label label-warning">禁止</span> {{else}}
|
||||
<span class="label label-success">允许</span> {{end}}
|
||||
</td>
|
||||
<td class="center">
|
||||
{{dateFormat $area.create_time "Y-m-d H:i:s"}}
|
||||
</td>
|
||||
<td class="center">
|
||||
{{dateFormat $area.update_time "Y-m-d H:i:s"}}
|
||||
</td>
|
||||
<td class="center">
|
||||
<a name="edit" href="/web/area/edit?area_id={{$area.area_id}}"><i class="glyphicon glyphicon-pencil"> </i>修改</a>
|
||||
<a name="delete" data-toggle="confirmation" data-placement="left" data-title="确定删除吗?" href="/web/area/delete?area_id={{$area.area_id}}"><i class="glyphicon glyphicon-remove"> </i>删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user