JXMovies/CMS/JXCMS.CMS.Movie/Admin/Views/Collection/BindingClassifyDialog.cshtml

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-02-16 22:11:24 +08:00
@{
Layout = "_DialogLayout";
}
@using JXCMS.CMS.Movie.Entity
@model List<JXCMS.CMS.Movie.Entity.WebSiteClassifyEntity>
@{
var classifyEntities = (List<ClassifyEntity>) ViewBag.classifyEntities;
}
<form id="modify_website" action="@Url.Action("UpdateBindingClassify")" method="post">
@for (int i = 0; i < Model.Count; i++)
{
@Html.HiddenFor(x => x[i].Id)
@Html.HiddenFor(x => x[i].WebSiteId)
@Html.HiddenFor(x => x[i].TypeName)
@Html.HiddenFor(x => x[i].TypeId)
<div class="input-daterange input-group" style="margin-bottom: 10px">
<span class="form-control">@Model[i].TypeName</span>
<span class="input-group-addon">
<i class="mdi mdi-link-variant"></i>
</span>
@Html.DropDownListFor(x => x[i].ClassifyId, new SelectList(classifyEntities, "Id", "Name", Model[i].ClassifyId),
new {@class = "form-control"})
</div>
}
</form>
@section dialogScript
{
<script type="text/javascript">
$('#commit').click(function() {
$('#modify_website').submit();
})
</script>
}