Browse Source

Merge pull request #3279 from marcus-herrmann/develop

Use "for" attribute on labels in auth views
Taylor Otwell 9 years ago
parent
commit
73e1c71e70

+ 4 - 4
resources/views/auth/login.blade.php

@@ -22,16 +22,16 @@
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="email" class="form-control" name="email" value="{{ old('email') }}">
+                                <input type="email" class="form-control" name="email" id="email" value="{{ old('email') }}">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="password" class="form-control" name="password">
+                                <input type="password" class="form-control" name="password" id="password">
                             </div>
                             </div>
                         </div>
                         </div>
 
 

+ 2 - 2
resources/views/auth/password.blade.php

@@ -28,9 +28,9 @@
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="email" class="form-control" name="email" value="{{ old('email') }}">
+                                <input type="email" class="form-control" name="email" id="email" value="{{ old('email') }}">
                             </div>
                             </div>
                         </div>
                         </div>
 
 

+ 8 - 8
resources/views/auth/register.blade.php

@@ -22,30 +22,30 @@
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
                         <input type="hidden" name="_token" value="{{ csrf_token() }}">
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="text" class="form-control" name="name" value="{{ old('name') }}">
+                                <input type="text" class="form-control" name="name" id="name" value="{{ old('name') }}">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="email" class="form-control" name="email" value="{{ old('email') }}">
+                                <input type="email" class="form-control" name="email" id="email" value="{{ old('email') }}">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="password" class="form-control" name="password">
+                                <input type="password" class="form-control" name="password" id="password">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <label class="col-md-4 control-label">Confirm Password</label>
+                            <label for="password_confirmation" class="col-md-4 control-label">Confirm Password</label>
                             <div class="col-md-6">
                             <div class="col-md-6">
-                                <input type="password" class="form-control" name="password_confirmation">
+                                <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
                             </div>
                             </div>
                         </div>
                         </div>
 
 

+ 6 - 6
resources/views/auth/reset.blade.php

@@ -23,23 +23,23 @@
                         <input type="hidden" name="token" value="{{ $token }}">
                         <input type="hidden" name="token" value="{{ $token }}">
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="email" class="form-control" name="email" value="{{ old('email') }}">
+                                <input type="email" class="form-control" name="email" id="email" value="{{ old('email') }}">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <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">
                             <div class="col-md-6">
-                                <input type="password" class="form-control" name="password">
+                                <input type="password" class="form-control" name="password" id="password">
                             </div>
                             </div>
                         </div>
                         </div>
 
 
                         <div class="form-group">
                         <div class="form-group">
-                            <label class="col-md-4 control-label">Confirm Password</label>
+                            <label for="password_confirmation" class="col-md-4 control-label">Confirm Password</label>
                             <div class="col-md-6">
                             <div class="col-md-6">
-                                <input type="password" class="form-control" name="password_confirmation">
+                                <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
                             </div>
                             </div>
                         </div>
                         </div>