Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Add for/id attribute to auth scaffold inputs #13689

Merged
merged 1 commit into from
May 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
{{ csrf_field() }}

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

<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}">

@if ($errors->has('email'))
<span class="help-block">
Expand All @@ -25,10 +25,10 @@
</div>

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

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

@if ($errors->has('password'))
<span class="help-block">
Expand All @@ -51,7 +51,7 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
<i class="fa fa-btn fa-sign-in"></i>Login
<i class="fa fa-btn fa-sign-in"></i> Login
</button>

<a class="btn btn-link" href="{{ url('/password/reset') }}">Forgot Your Password?</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
{{ csrf_field() }}

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

<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}">

@if ($errors->has('email'))
<span class="help-block">
Expand All @@ -34,7 +34,7 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
<i class="fa fa-btn fa-envelope"></i>Send Password Reset Link
<i class="fa fa-btn fa-envelope"></i> Send Password Reset Link
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<input type="hidden" name="token" value="{{ $token }}">

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

<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ $email or old('email') }}">
<input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}">

@if ($errors->has('email'))
<span class="help-block">
Expand All @@ -28,10 +28,10 @@
</div>

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

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

@if ($errors->has('password'))
<span class="help-block">
Expand All @@ -42,9 +42,9 @@
</div>

<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<label class="col-md-4 control-label">Confirm Password</label>
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password_confirmation">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation">

@if ($errors->has('password_confirmation'))
<span class="help-block">
Expand All @@ -57,7 +57,7 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
<i class="fa fa-btn fa-refresh"></i>Reset Password
<i class="fa fa-btn fa-refresh"></i> Reset Password
</button>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
{{ csrf_field() }}

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

<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ old('name') }}">
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}">

@if ($errors->has('name'))
<span class="help-block">
Expand All @@ -25,10 +25,10 @@
</div>

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

<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}">

@if ($errors->has('email'))
<span class="help-block">
Expand All @@ -39,10 +39,10 @@
</div>

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

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

@if ($errors->has('password'))
<span class="help-block">
Expand All @@ -53,10 +53,10 @@
</div>

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

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

@if ($errors->has('password_confirmation'))
<span class="help-block">
Expand All @@ -69,7 +69,7 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
<i class="fa fa-btn fa-user"></i>Register
<i class="fa fa-btn fa-user"></i> Register
</button>
</div>
</div>
Expand Down