-
Notifications
You must be signed in to change notification settings - Fork 863
/
Select.cshtml
31 lines (28 loc) · 983 Bytes
/
Select.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@using ZKEACMS.Article.Models
@model ArticleEntity
@{
Style.Reqiured("dataTable").AtHead();
Script.Reqiured("dataTable").AtFoot();
Script.Reqiured("datepicker").AtFoot();
Style.Reqiured("datepicker").AtHead();
Layout = Layouts.PopUp;
string select = "<label class=\"radio-inline\"><input class=\"select\" type=\"radio\" name=\"select\" value=\"{{id}}\" data-title=\"{{title}}\" />" + L("Select") +"</label>";
}
<div class="grid-component">
@Html.SearchTerms(false)
<div class="panel panel-default">
<div class="panel-body">
<grid delete-able="false" edit-able="true" edit-template="@select"></grid>
</div>
</div>
</div>
@using (Script.AtFoot())
{
<script type="text/javascript">
$(function () {
$(document).on("click", ".select", function () {
SetSelected({ value: $(this).data("title"), additional: { ArticleID: $(this).val() } });
});
});
</script>
}