-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#218 - UI preparation for managing actions at client.
- Loading branch information
Showing
7 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@page "/user/changepassword" | ||
|
||
<UserHead /> | ||
|
||
<div class="user"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form method="post"> | ||
<div class="form-group"> | ||
<label for="OldPassword">Current password</label> | ||
<input class="form-control" autofocus="" type="password" data-val="true" data-val-required="The Current password field is required." id="OldPassword" name="OldPassword"> | ||
<span class="text-danger field-validation-valid" data-valmsg-for="OldPassword" data-valmsg-replace="true"></span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="NewPassword">New password</label> | ||
<input class="form-control" type="password" data-val="true" data-val-length="The New password must be at least 4 and at max 100 characters long." data-val-length-max="100" data-val-length-min="4" data-val-required="The New password field is required." id="NewPassword" name="NewPassword"> | ||
<span class="text-danger field-validation-valid" data-valmsg-for="NewPassword" data-valmsg-replace="true"></span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="ConfirmPassword">Confirm new password</label> | ||
<input class="form-control" type="password" data-val="true" data-val-equalto="The new password and confirmation password do not match." data-val-equalto-other="*.NewPassword" id="ConfirmPassword" name="ConfirmPassword"> | ||
<span class="text-danger field-validation-valid" data-valmsg-for="ConfirmPassword" data-valmsg-replace="true"></span> | ||
</div> | ||
<button type="submit" class="btn btn-default">Update password</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@page "/user" | ||
|
||
<UserHead /> | ||
|
||
<div class="user"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form method="post"> | ||
<div class="form-group"> | ||
<label for="UserName">UserName</label> | ||
<input class="form-control" disabled="" type="text" id="UserName" name="UserName" value="maraf"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="Email">Email</label> | ||
<div class="input-group"> | ||
<input class="form-control" autofocus="" type="email" data-val="true" data-val-email="The Email field is not a valid e-mail address." data-val-required="The Email field is required." id="Email" name="Email" value=""> | ||
<span class="input-group-addon" aria-hidden="true"><span class="glyphicon glyphicon-ok text-success"></span></span> | ||
</div> | ||
<span class="text-danger field-validation-valid" data-valmsg-for="Email" data-valmsg-replace="true"></span> | ||
</div> | ||
<button type="submit" class="btn btn-default">Save</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@inject Navigator Navigator | ||
@inject Microsoft.AspNetCore.Blazor.Services.IUriHelper UriHelper | ||
|
||
<Title Icon="user" Main="User Account" Sub="Change your account settings" /> | ||
|
||
<TabSet> | ||
<Tab Url="@Navigator.UrlUserManage()" CssClass="@GetActiveCssClass(Navigator.UrlUserManage())"> | ||
Profile | ||
</Tab> | ||
<Tab Url="@Navigator.UrlUserPassword()" CssClass="@GetActiveCssClass(Navigator.UrlUserPassword())"> | ||
Password | ||
</Tab> | ||
</TabSet> | ||
|
||
@functions | ||
{ | ||
string GetActiveCssClass(string url) | ||
{ | ||
string absolute = UriHelper.GetAbsoluteUri(); | ||
string relative = "/" + UriHelper.ToBaseRelativePath(UriHelper.GetBaseUri(), absolute); | ||
return relative == url ? "active" : null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters