Skip to content

Commit c6ab5e1

Browse files
committed
Form
1 parent 5e13a50 commit c6ab5e1

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

src/AutomatedTestingApp/Areas/Identity/Views/Account/Login.cshtml

+18-22
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,24 @@
1010
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
1111
</head>
1212
<body>
13-
<div>
14-
<form asp-area="Identity" asp-route="/Account/Login" asp-route-returnurl="@ViewData["ReturnUrl"]" class="form-horizontal" role="form">
15-
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
16-
<div class="form-group">
17-
<label asp-for="Username"></label>
18-
<input asp-for="Username" class="form-control" />
19-
<span asp-validation-for="Username" class="text-danger"></span>
20-
</div>
21-
<div class="form-group">
22-
<label asp-for="Password"></label>
23-
<input asp-for="Password" class="form-control" />
24-
<span asp-validation-for="Password" class="text-danger"></span>
25-
</div>
26-
<div class="form-group">
27-
<div class="col-md-offset-2 col-md-10">
28-
<button type="submit" class="btn btn-default">Log in</button>
13+
<div class="h-100 d-flex align-items-center justify-content-center">
14+
<form asp-area="Identity" asp-route="/Account/Login" asp-route-returnurl="@ViewData["ReturnUrl"]" class="form-horizontal" role="form">
15+
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
16+
<div class="form-group">
17+
<label asp-for="Username"></label>
18+
<input asp-for="Username" class="form-control" />
19+
<span asp-validation-for="Username" class="text-danger"></span>
2920
</div>
30-
</div>
31-
</form>
32-
33-
<script src="~/js/scripts.js"></script>
34-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
35-
</div>
21+
<div class="form-group">
22+
<label asp-for="Password"></label>
23+
<input asp-for="Password" class="form-control" />
24+
<span asp-validation-for="Password" class="text-danger"></span>
25+
</div>
26+
<button type="submit" class="btn btn-primary">Log in</button>
27+
</form>
28+
29+
<script src="~/js/scripts.js"></script>
30+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
31+
</div>
3632
</body>
3733
</html>

src/AutomatedTestingApp/AutomatedTestingApp.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
<ItemGroup>
3434
<_ContentIncludedByDefault Remove="Views\Account\Index.cshtml" />
3535
<_ContentIncludedByDefault Remove="Views\Articles\Index.cshtml" />
36+
<_ContentIncludedByDefault Remove="Views\Calendar\Calendar.cshtml" />
37+
<_ContentIncludedByDefault Remove="Areas\Identity\Views\Shared\_Layout.cshtml" />
3638
</ItemGroup>
3739

3840

0 commit comments

Comments
 (0)