-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
218 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
Example1.RazorPages.IndividualAccounts/Pages/AuthRoles/Delete.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
@page | ||
@using LocalizeMessagesAndErrors | ||
@using Microsoft.AspNetCore.Mvc.TagHelpers | ||
@model Example1.RazorPages.IndividualAccounts.Pages.AuthRoles.DeleteModel | ||
|
||
@inject ISimpleLocalizer SimpleLocalizer | ||
|
||
<h1>Delete Role</h1> | ||
|
||
<h3>Are you sure you want to delete the <span class="h2">@Model.RoleName</span> ?</h3> | ||
<h3> | ||
@SimpleLocalizer.LocalizeFormatted($"Are you sure you want to delete the {Model.RoleName} ?", this) | ||
</h3> | ||
<div> | ||
<form method="post"> | ||
@Html.HiddenFor(model => model.RoleName) | ||
<input type="submit" value="Delete" class="btn btn-danger" /> | ||
<a class="btn btn-secondary" asp-area="" asp-page=".\ListRoles">Cancel</a> | ||
<input type="submit" value=@SimpleLocalizer.LocalizeString("Delete", this) | ||
class="btn btn-danger" /> | ||
<a class="btn btn-secondary" asp-area="" asp-page=".\ListRoles"> | ||
@SimpleLocalizer.LocalizeString("Cancel", this) | ||
</a> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 24 additions & 8 deletions
32
Example1.RazorPages.IndividualAccounts/Pages/AuthUsers/Edit.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.