1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Updated auth pages to new design, Removed public layout

This commit is contained in:
Dan Brown
2019-02-03 17:34:15 +00:00
parent 138f5d5c4f
commit 5325870271
31 changed files with 521 additions and 577 deletions

View File

@ -1,37 +1,25 @@
@extends('public')
@section('header-buttons')
<a href="{{ baseUrl("/login") }}">@icon('login') {{ trans('auth.log_in') }}</a>
@if(setting('registration-enabled'))
<a href="{{ baseUrl("/register") }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
@endif
@stop
@extends('simple-layout')
@section('content')
<div class="container very-small mt-xl">
<div class="card content-wrap auto-height">
<h1 class="list-heading">{{ trans('auth.reset_password') }}</h1>
<p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
<div class="text-center">
<div class="card center-box">
<h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
<form action="{{ baseUrl("/password/email") }}" method="POST" class="stretch-inputs">
{!! csrf_field() !!}
<div class="body">
<p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
<div class="form-group">
<label for="email">{{ trans('auth.email') }}</label>
@include('form/text', ['name' => 'email'])
</div>
<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="from-group text-right">
<button class="button primary">{{ trans('auth.reset_password_send_button') }}</button>
</div>
</form>
</div>
<div class="from-group text-right mt-m">
<button class="button primary">{{ trans('auth.reset_password_send_button') }}</button>
</div>
</form>
</div>
</div>
@stop

View File

@ -1,43 +1,34 @@
@extends('public')
@section('header-buttons')
<a href="{{ baseUrl("/login") }}">@icon('login') {{ trans('auth.log_in') }}</a>
@if(setting('registration-enabled'))
<a href="{{ baseUrl("/register") }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
@endif
@stop
@extends('simple-layout')
@section('content')
<div class="text-center">
<div class="card center-box">
<h3>@icon('permission') {{ trans('auth.reset_password') }}</h3>
<div class="container very-small mt-xl">
<div class="card content-wrap auto-height">
<h1 class="list-heading">{{ trans('auth.reset_password') }}</h1>
<div class="body">
<form action="{{ baseUrl("/password/reset") }}" method="POST">
{!! csrf_field() !!}
<input type="hidden" name="token" value="{{ $token }}">
<form action="{{ baseUrl("/password/reset") }}" method="POST" class="stretch-inputs">
{!! 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="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">{{ 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="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 class="from-group text-right mt-m">
<button class="button primary">{{ trans('auth.reset_password') }}</button>
</div>
</form>
</div>
</div>