-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathCreate.cshtml
More file actions
51 lines (44 loc) · 1.68 KB
/
Create.cshtml
File metadata and controls
51 lines (44 loc) · 1.68 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
@page
@using LocalizeMessagesAndErrors
@inject ISimpleLocalizer SimpleLocalizer
@using Microsoft.AspNetCore.Mvc.TagHelpers
@model Example1.RazorPages.IndividualAccounts.Pages.AuthRoles.CreateModel
<h3>
@SimpleLocalizer.LocalizeString("Creating a new Role", this)
</h3>
<hr />
<div class="row">
<form method="post">
<div class="col-md-12">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div>
<label class="control-label">
@SimpleLocalizer.LocalizeString("Role Name", this)
</label>
<input asp-for="Data.RoleName" class="form-control" />
<span asp-validation-for="Data.RoleName" class="text-danger"></span>
</div>
<div>
<label class="control-label">
@SimpleLocalizer.LocalizeString("Role description", this)
</label>
<input asp-for="Data.Description" class="form-control" />
<span asp-validation-for="Data.Description" class="text-danger"></span>
</div>
</div>
<div class="col-md-12">
<p></p>
<partial name="_PartialCreateEdit" for="@Model.Data" />
</div>
<div class="form-group">
<input type="submit" value=@SimpleLocalizer.LocalizeString("Create", this)
class="btn btn-primary" />
<a class="btn btn-secondary" asp-area="" asp-page=".\ListRoles">
@SimpleLocalizer.LocalizeString("Cancel", this)
</a>
</div>
</form>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}