Skip to content

Commit aedca13

Browse files
committed
Refatoração tela de Cadastro
1 parent 249709a commit aedca13

File tree

4 files changed

+213
-93
lines changed

4 files changed

+213
-93
lines changed

src/web/JSE.WebApp.MVC/Extensions/DocumentAnnotation.cs renamed to src/web/JSE.WebApp.MVC/Extensions/CpfAnnotation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using Microsoft.AspNetCore.Mvc.DataAnnotations;
1+
using JSE.Core.DomainObjects;
2+
using Microsoft.AspNetCore.Mvc.DataAnnotations;
23
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
34
using Microsoft.Extensions.Localization;
45
using System.ComponentModel.DataAnnotations;
5-
using JSE.Core.DomainObjects;
66

77
namespace JSE.WebApp.MVC.Extensions
88
{
@@ -51,4 +51,4 @@ public IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStr
5151
return _baseProvider.GetAttributeAdapter(attribute, stringLocalizer);
5252
}
5353
}
54-
}
54+
}

src/web/JSE.WebApp.MVC/Views/Identidade/Login.cshtml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<label for="remember-30" class="form-check-label">Lembrar-me</label>
3939
</div>
4040
<div class="nav">
41-
<a class="nav-link animate-underline p-0" href="account-password-recovery.html">
41+
<a class="nav-link animate-underline p-0" href="#!">
4242
<span class="animate-target">Esqueceu a senha?</span>
4343
</a>
4444
</div>
@@ -85,43 +85,6 @@
8585
</div>
8686
</main>
8787

88-
89-
90-
@*
91-
<h1>@ViewData["Title"]</h1>
92-
93-
<div class="row align-items-center mt-4">
94-
95-
<div class="col-lg-7 text-center text-lg-start">
96-
<h5 class="display-4 mb-3">Entre com seu login e senha</h5>
97-
<p class="col-lg-10 fs-4">Para efetuar transações você precisa fazer autenticação.</p>
98-
</div>
99-
100-
<div class="col-md-10 mx-auto col-lg-5">
101-
<form class="p-2 p-md-3 border rounded-3 bg-body-tertiary" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" autocomplete="off">
102-
<vc:Summary></vc:Summary>
103-
104-
<div class="form-floating mb-2">
105-
<input asp-for="Email" class="form-control" placeholder="nome@dominio.com" autocomplete="new-text" />
106-
<label asp-for="Email"></label>
107-
<span asp-validation-for="Email" class="text-danger m-1"></span>
108-
</div>
109-
110-
<div class="form-floating mb-2">
111-
<input type="password" asp-for="Senha" class="form-control" placeholder="Senha" autocomplete="new-text" />
112-
<label asp-for="Senha"></label>
113-
<span asp-validation-for="Senha" class="text-danger m-1"></span>
114-
</div>
115-
116-
<button type="submit" class="w-100 btn btn-lg btn-primary">Entrar</button>
117-
118-
<hr class="my-4">
119-
<small class="text-body-secondary"><a asp-action="Registro" asp-controller="Identidade">Criar uma conta</a></small>
120-
</form>
121-
</div>
122-
</div>
123-
*@
124-
12588
@section Scripts {
12689
<partial name="_ValidationScriptsPartial" />
12790
}

0 commit comments

Comments
 (0)