-
Notifications
You must be signed in to change notification settings - Fork 4
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
Halim
authored and
Halim
committed
Nov 7, 2016
1 parent
d2d762e
commit 93f722f
Showing
6 changed files
with
89 additions
and
4 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
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,67 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Reset Password for user : <strong>{{ $user->username }}</strong> | ||
<a href="{{ url('users') }}" style="float: right;"> Users List</a> | ||
<span style="float: right;margin: 0px 10px;">|</span> | ||
<a href="{{ url("users/$user->users_id/edit") }}" style="float: right;">Edit User</a> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
@if($errors->any()) | ||
<ul class="alert alert-danger"> | ||
@foreach($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
@endif | ||
|
||
|
||
<form class="form-horizontal" role="form" method="PATCH" action="{{ url('/users', $user->id) }}"> | ||
|
||
{{ csrf_field() }} | ||
|
||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> | ||
<label for="password" class="col-md-4 control-label">New Password</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="password" type="password" class="form-control" name="password" required> | ||
|
||
@if ($errors->has('password')) | ||
<span class="help-block"> | ||
<strong>{{ $errors->first('password') }}</strong> | ||
</span> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<div class="col-md-6 col-md-offset-4"> | ||
<button type="submit" class="btn btn-primary"> | ||
Submit | ||
</button> | ||
</div> | ||
</div> | ||
|
||
</form> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@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
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