You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
executaveis/GCI.PortalCondomino/Views/Account/ChangePassword.cshtml

55 lines
2.2 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@using GCI.PortalCondomino.Models
@using GCI.PortalCondomino.Helpers
@model ChangePasswordModel
@{
ViewBag.Title = "Alteração de password";
Layout = "~/Views/BackOffice/_Layout.cshtml";
}
<h3 class="oswald mt0 mb40 ac">@ViewBag.Title</h3>
@using (Html.BeginForm("ChangePassword", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { role = "form", lpformnum = "1" }))
{
@Html.AntiForgeryToken()
@Html.Hidden("commonholdid", @Model.CodCondominio, new { id = "commonholdid" })
if (!string.IsNullOrEmpty(ViewBag.Feedback) && ViewBag.Feedback == "SUCCESS")
{
<h4 class="oswald mt0 mb40 ac" style="color: #98dd22;">Password alterada com sucesso</h4>
}
<div class="container col-xs-12 form-horizontal">
@if (!ViewData.ModelState.IsValid)
{
<div class="alert alert-danger" role="alert">
@Html.ValidationMessage("")
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
}
<fieldset>
<label for="current">Password atual:</label>
<input type="password" id="current" name="model.Current" class="form-control" value="@(Model.Current)" autofocus="" autocomplete="off" required />
</fieldset>
<fieldset>
<label for="replacement">Nova password:</label>
<input type="password" id="replacement" name="model.Replacement" class="form-control" value="@(Model.Replacement)" rows="4" autofocus="" autocomplete="off" required />
</fieldset>
<fieldset>
<label for="confirmation">Confirmar nova password:</label>
<input type="password" id="confirmation" name="model.Confirmation" class="form-control" value="@(Model.Confirmation)" autofocus="" autocomplete="off" required />
</fieldset>
<div class="row mt40 mb40 ac">
<button type="submit" class="btn btn-default btn-lg">Gravar</button>
</div>
</div>
}
@section footer {
@Html.Partial("_ContactosAdminPartial", Model.AdminData)
}
@section scripts {
<script src="~/Content/js/binder.js" type="text/javascript" nonce="@Html.ScriptNonce()"></script>
}