-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ismael G Marin C
committed
Feb 11, 2020
1 parent
3321f23
commit 8259e30
Showing
3 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
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,69 @@ | ||
@layout('layouts.app') | ||
|
||
@section('content') | ||
@set('title', 'Change Password') | ||
|
||
<section class="section"> | ||
<div class="container"> | ||
<div class="columns"> | ||
<div class="column is-3"> | ||
@include('users.partials._settings_menu') | ||
</div> | ||
<div class="column is-9"> | ||
<div class="box"> | ||
<h2 class="title">Change Password</h2> | ||
|
||
<hr> | ||
|
||
<form action="/settings/password?_method=PUT" method="post"> | ||
{{ csrfField() }} | ||
|
||
<div class="field"> | ||
<label class="label">Current Password</label> | ||
|
||
<div class="control"> | ||
<input | ||
type="password" | ||
class="input {{ hasErrorFor('current_password') ? 'is-danger' : '' }}" | ||
name="current_password"> | ||
</div> | ||
|
||
{{ elIf('<p class="help is-danger">$self</p>', getErrorFor('current_password'), hasErrorFor('current_password')) }} | ||
</div> | ||
|
||
<div class="field"> | ||
<label class="label">New Password</label> | ||
|
||
<div class="control"> | ||
<input | ||
type="password" | ||
class="input {{ hasErrorFor('new_password') ? 'is-danger' : '' }}" | ||
name="new_password"> | ||
</div> | ||
|
||
{{ elIf('<p class="help is-danger">$self</p>', getErrorFor('new_password'), hasErrorFor('new_password')) }} | ||
</div> | ||
|
||
<div class="field"> | ||
<label class="label">Confirm Password</label> | ||
|
||
<div class="control"> | ||
<input | ||
type="password" | ||
class="input {{ hasErrorFor('new_password_confirmation') ? 'is-danger' : '' }}" | ||
name="new_password_confirmation"> | ||
</div> | ||
|
||
{{ elIf('<p class="help is-danger">$self</p>', getErrorFor('new_password_confirmation'), hasErrorFor('new_password_confirmation')) }} | ||
</div> | ||
|
||
<div class="control"> | ||
<button type="submit" class="button is-primary">Change Password</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection |
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