-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodal.html
54 lines (45 loc) · 2.25 KB
/
modal.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!-- This modal contains a form that creates a given record. The DateTime field uses the bootstrap-datetimepicker JS addon -->
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Create Survey</h4>
</div>
@using (Html.BeginForm("Create", "Survey"))
{
<!-- AntiForgeryToken to prevent attacks -->
@Html.AntiForgeryToken()
@*Modal Body*@
<div class="modal-body">
<div class="form-group">
@Html.LabelFor((m => m.Name))
@Html.TextBoxFor((m => m.Name), new { @class = "form-control", autofocus = "autofocus" })
@Html.ValidationMessageFor(m => m.Name)
</div>
@*DateTime*@
<div class="row">
<div class='col-sm-6'>
<div class="form-group">
@Html.LabelFor(m => m.DateTime)
@Html.TextBoxFor((m => m.DateTime), new { @class = "form-control", @id = "datetimepicker4" })
@Html.ValidationMessageFor(m => m.DateTime)
</div>
</div>
</div>
<div class="form-group">
@Html.LabelFor(m => m.STypeInt, "Type")
@Html.DropDownListFor(m => m.STypeInt, new SelectList(Model.STypes, "ID", "Name"), " ", new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.STypeInt)
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
}
</div>
</div>
</div>