]> BookStack Code Mirror - bookstack/commitdiff
Updated reset-password flow design
authorDan Brown <redacted>
Sat, 14 Apr 2018 15:16:29 +0000 (16:16 +0100)
committerDan Brown <redacted>
Sat, 14 Apr 2018 15:16:29 +0000 (16:16 +0100)
Fixes #800

resources/views/auth/passwords/email.blade.php
resources/views/auth/passwords/reset.blade.php

index 6722dc44175b435dccbfed2d6a3ebda95bf2a7d4..38f5cc07a9d4b14d2f0ffc15f02250bf244cd413 100644 (file)
 
 
     <div class="text-center">
 
 
     <div class="text-center">
-        <div class="center-box text-left">
-            <h1>{{ trans('auth.reset_password') }}</h1>
+        <div class="card center-box">
+            <h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
 
 
-            <p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
+            <div class="body">
+                <p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
 
 
-            <form action="{{ baseUrl("/password/email") }}" method="POST">
-                {!! csrf_field() !!}
+                <form action="{{ baseUrl("/password/email") }}" method="POST">
+                    {!! csrf_field() !!}
 
 
-                <div class="form-group">
-                    <label for="email">{{ trans('auth.email') }}</label>
-                    @include('form/text', ['name' => 'email'])
-                </div>
+                    <div class="form-group">
+                        <label for="email">{{ trans('auth.email') }}</label>
+                        @include('form/text', ['name' => 'email'])
+                    </div>
+
+                    <div class="from-group text-right">
+                        <button class="button primary">{{ trans('auth.reset_password_send_button') }}</button>
+                    </div>
+                </form>
+            </div>
 
 
-                <div class="from-group">
-                    <button class="button block pos">{{ trans('auth.reset_password_send_button') }}</button>
-                </div>
-            </form>
         </div>
     </div>
 
         </div>
     </div>
 
index f76a1d7c25ea073b9b45c752f659bb73a3fa748f..0f66bd47360ce63ee106708ef78397cddd0b0015 100644 (file)
@@ -7,38 +7,38 @@
     @endif
 @stop
 
     @endif
 @stop
 
-@section('body-class', 'image-cover login')
-
 @section('content')
 
 @section('content')
 
-
     <div class="text-center">
     <div class="text-center">
-        <div class="center-box text-left">
-            <h1>{{ trans('auth.reset_password') }}</h1>
-
-            <form action="{{ baseUrl("/password/reset") }}" method="POST">
-                {!! csrf_field() !!}
-                <input type="hidden" name="token" value="{{ $token }}">
-
-                <div class="form-group">
-                    <label for="email">{{ trans('auth.email') }}</label>
-                    @include('form/text', ['name' => 'email'])
-                </div>
-
-                <div class="form-group">
-                    <label for="password">{{ trans('auth.password') }}</label>
-                    @include('form/password', ['name' => 'password'])
-                </div>
-
-                <div class="form-group">
-                    <label for="password_confirmation">{{ trans('auth.password_confirm') }}</label>
-                    @include('form/password', ['name' => 'password_confirmation'])
-                </div>
-
-                <div class="from-group">
-                    <button class="button block pos">{{ trans('auth.reset_password') }}</button>
-                </div>
-            </form>
+        <div class="card center-box">
+            <h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
+
+            <div class="body">
+                <form action="{{ baseUrl("/password/reset") }}" method="POST">
+                    {!! csrf_field() !!}
+                    <input type="hidden" name="token" value="{{ $token }}">
+
+                    <div class="form-group">
+                        <label for="email">{{ trans('auth.email') }}</label>
+                        @include('form/text', ['name' => 'email'])
+                    </div>
+
+                    <div class="form-group">
+                        <label for="password">{{ trans('auth.password') }}</label>
+                        @include('form/password', ['name' => 'password'])
+                    </div>
+
+                    <div class="form-group">
+                        <label for="password_confirmation">{{ trans('auth.password_confirm') }}</label>
+                        @include('form/password', ['name' => 'password_confirmation'])
+                    </div>
+
+                    <div class="from-group text-right">
+                        <button class="button primary">{{ trans('auth.reset_password') }}</button>
+                    </div>
+                </form>
+            </div>
+
         </div>
     </div>
 
         </div>
     </div>