Skip to content

Commit

Permalink
Switch back to sections/layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss committed Jan 16, 2017
1 parent fc17e46 commit 07466ae
Showing 1 changed file with 54 additions and 52 deletions.
106 changes: 54 additions & 52 deletions src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub
Original file line number Diff line number Diff line change
@@ -1,69 +1,71 @@
@component('layouts.app')
<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</div>
@extends('layouts.app')

<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@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</div>

@if (session('warning'))
<div class="alert alert-warning">
{{ session('warning') }}
</div>
@else
<div class="panel-body">
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif

@if (session('warning'))
<div class="alert alert-warning">
{{ session('warning') }}
</div>
@else

<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
{{ csrf_field() }}
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
{{ csrf_field() }}

<input type="hidden" name="email" value="{{ $email }}">
<input type="hidden" name="expiration" value="{{ $expiration }}">
<input type="hidden" name="token" value="{{ $token }}">
<input type="hidden" name="email" value="{{ $email }}">
<input type="hidden" name="expiration" value="{{ $expiration }}">
<input type="hidden" name="token" value="{{ $token }}">

<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>

<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required autofocus>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required autofocus>

@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
</div>

<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<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 class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<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>

@if ($errors->has('password_confirmation'))
<span class="help-block">
<strong>{{ $errors->first('password_confirmation') }}</strong>
</span>
@endif
</div>
@if ($errors->has('password_confirmation'))
<span class="help-block">
<strong>{{ $errors->first('password_confirmation') }}</strong>
</span>
@endif
</div>
</div>

<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Reset Password
</button>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Reset Password
</button>
</div>
</form>
@endif
</div>
</div>
</form>
@endif
</div>
</div>
</div>
</div>
@endcomponent
</div>
@endsection

0 comments on commit 07466ae

Please sign in to comment.