This repository was archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCreate.cshtml
More file actions
86 lines (74 loc) · 3.37 KB
/
Create.cshtml
File metadata and controls
86 lines (74 loc) · 3.37 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@model AssetManager.Web.ViewModels.StatusLabelViewModel
@using AssetManager.Web.ViewModels
@{
ViewData["Title"] = "Create";
}
<div class="header-content">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-8">
<p class="header-content-title">Create</p>
<p class="header-content-subtitle">Status Labels</p>
</div>
<div class="col-md-6 col-sm-6 col-xs-4">
<a class="pull-right btn btn-primary btn-create-new" asp-action="Index" ><i class="fa fa-arrow-left icon-white"></i> Back</a>
</div>
</div>
</div>
<hr />
<div class="row">
<!-- right column -->
<div class="col-md-8 col-md-offset-2">
<div class="box box-info">
<div class="box-header with-border">
</div>
<form asp-controller="StatusLabels" method="post" class="form-horizontal">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="box-body">
<div class="form-group">
<label asp-for="Name" class="control-label col-md-3"></label>
<div class="col-md-7">
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Type" class="control-label col-md-3"></label>
<div class="col-md-7">
<select class="col-md-5" asp-for="Type" asp-items="Html.GetEnumSelectList<StatusTypeVM>()">
<option>--Select Type--</option>
</select>
<span asp-validation-for="Type" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="Notes" class="control-label col-md-3"></label>
<div class="col-md-7">
<textarea asp-for="Notes" class="form-control"> </textarea>
<span asp-validation-for="Notes" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3"></label>
<div class="col-md-7">
<div class="checkbox">
<input asp-for="ShowInNav" /> @Html.DisplayNameFor(model => model.ShowInNav)
</div>
</div>
</div>
<div class="col-md-offset-3 col-md-7 no-padding">
<div class="box-footer text-right">
<a class="btn btn-link text-left" asp-action="Index">Cancel</a>
<button type="submit" class="btn btn-success">
<i class="fa fa-check icon-white"></i>
Submit
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}