F2 avanzada
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@using Microsoft.AspNetCore.Identity
|
||||
@model IdentityRole
|
||||
|
||||
@{
|
||||
@@ -19,6 +20,29 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
section scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Editar rol";
|
||||
}
|
||||
|
||||
<h1>Editar rol: @Model.Name</h1>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="control-label"></label>
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Guardar cambios" class="btn btn-primary" />
|
||||
<a asp-action="Index" class="btn btn-secondary">Cancelar</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
section scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
Reference in New Issue
Block a user