source: Application/ocrent/Views/Identity/Register.cshtml

Last change on this file was f5f7c24, checked in by 192011 <mk.snicker@…>, 17 months ago

Initial commit

  • Property mode set to 100644
File size: 3.3 KB
Line 
1@model Models.DataTransferObjects.RegisterDTO
2
3@{
4 ViewData["Title"] = "Register";
5}
6
7<div class="auth-wrapper">
8 <div class="auth d-flex justify-content-center align-items-center flex-column">
9 <h3>Sign up</h3>
10 <form method="post" asp-action="Register" asp-controller="Identity">
11 @*<div asp-validation-summary="All" class="text-danger"></div>*@
12 <div class="form-group">
13 <label asp-for="Email">Email</label>
14 <input asp-for="Email" autocomplete="off" class="form-control" />
15 <span asp-for="Email" class="text-danger"></span>
16 </div>
17
18 <div class="form-group">
19 <label asp-for="Username">Username</label>
20 <input asp-for="Username" autocomplete="off" class="form-control" />
21 <span asp-validation-for="Username" class="text-danger"></span>
22 </div>
23
24 <div class="form-group">
25 <label asp-for="FirstName">First Name</label>
26 <input asp-for="FirstName" autocomplete="off" class="form-control" />
27 <span asp-validation-for="FirstName" class="text-danger"></span>
28 </div>
29 <div class="form-group">
30 <label asp-for="LastName">Last Name</label>
31 <input asp-for="LastName" autocomplete="off" class="form-control" />
32 <span asp-validation-for="LastName" class="text-danger"></span>
33 </div>
34 <div class="form-group">
35 <label asp-for="Pass">Password</label>
36 <input type="password" autocomplete="off" asp-for="Pass" class="form-control" />
37 <span asp-validation-for="Pass" class="text-danger"></span>
38 </div>
39 <div class="form-group">
40 <label asp-for="ConfirmPass">Confirm password</label>
41 <input type="password" autocomplete="off" asp-for="ConfirmPass" class="form-control" />
42 <span asp-validation-for="ConfirmPass" class="text-danger"></span>
43 </div>
44 <div class="form-group">
45 <label asp-for="IsBusinessUser">Business User</label>
46 <input class="form-check-input" type="checkbox" asp-for="IsBusinessUser" />
47 <span asp-validation-for="IsBusinessUser" class="text-danger"></span>
48 </div>
49
50 <button type="submit" class="btn btn-primary mt-2">Register</button>
51 </form>
52 </div>
53</div>
54
55<style>
56 auth-wrapper {
57 min-height: calc(100vh - 100px);
58 width: 100%;
59 display: flex;
60 justify-content: center;
61 align-items: center;
62 }
63
64 .auth {
65 padding: 50px;
66 width: 500px;
67 box-shadow: 0 0 2px 1px #f1f1f1;
68 margin: 25px auto;
69 color: white;
70 border-radius: 15px;
71 }
72
73 .auth input[type="text"], .auth input[type="password"], .auth input[type="submit"], .auth input[type="email"] {
74 display: block;
75 padding: 10px;
76 margin: 15px auto;
77 min-width: 250px;
78 }
79
80 .auth input[type="submit"] {
81 background-color: cornflowerblue;
82 color: white;
83 }
84
85 .auth input[type="submit"]:hover {
86 opacity: 0.9;
87 }
88
89 .auth span {
90 margin-bottom: 30px;
91 }
92</style>
Note: See TracBrowser for help on using the repository browser.