You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.0 KiB
54 lines
2.0 KiB
@model List<Infrastructure.Configuration.EFConfigurationValue>
|
|
@{
|
|
var start = 0;
|
|
}
|
|
<form action="" method="post" class="form-horizontal">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<div class="pull-left">
|
|
<a class="btn btn-primary" href="/Admin/Configuration/Add">
|
|
<i class="fa fa-plus-square"></i>
|
|
新建
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<table class="table table-bordered table-striped dataTable">
|
|
<tr>
|
|
<th><input type="checkbox" class="select_all" /></th>
|
|
<th>行号</th>
|
|
<th>键</th>
|
|
<th>值</th>
|
|
<th>类型</th>
|
|
@if (User.IsInRole("EditConfiguration"))
|
|
{
|
|
<th>编辑</th>
|
|
}
|
|
</tr>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<input type="checkbox" name="list[]" value="@item.Id" />
|
|
</td>
|
|
<td>@(++start)</td>
|
|
<td>@item.Id</td>
|
|
<td>@Html.DisplayFor(o => item.Value, item.Type.ToString())</td>
|
|
<td>@item.Type.GetDisplayName()</td>
|
|
@if (User.IsInRole("EditConfiguration"))
|
|
{
|
|
<td>
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("Edit",new { id=item.Id})">
|
|
<i class="fa fa-pencil"></i>
|
|
编辑
|
|
</a>
|
|
</td>
|
|
}
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</form> |