mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-31 13:05:47 +08:00
Moved text from auth views into lang files
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<label for="username">{{ trans('auth.username') }}</label>
|
||||
@include('form/text', ['name' => 'username', 'tabindex' => 1])
|
||||
</div>
|
||||
|
||||
@if(session('request-email', false) === true)
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@include('form/text', ['name' => 'email', 'tabindex' => 1])
|
||||
<span class="text-neg">
|
||||
Please enter an email to use for this account.
|
||||
{{ trans('auth.ldap_email_hint') }}
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<label for="password">{{ trans('auth.password') }}</label>
|
||||
@include('form/password', ['name' => 'password', 'tabindex' => 2])
|
||||
</div>
|
@ -1,10 +1,10 @@
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@include('form/text', ['name' => 'email', 'tabindex' => 1])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<label for="password">{{ trans('auth.password') }}</label>
|
||||
@include('form/password', ['name' => 'password', 'tabindex' => 2])
|
||||
<span class="block small"><a href="{{ baseUrl('/password/email') }}">Forgot Password?</a></span>
|
||||
<span class="block small"><a href="{{ baseUrl('/password/email') }}">{{ trans('auth.forgot_password') }}</a></span>
|
||||
</div>
|
@ -2,7 +2,7 @@
|
||||
|
||||
@section('header-buttons')
|
||||
@if(setting('registration-enabled', false))
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>Sign up</a>
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>{{ trans('auth.sign_up') }}</a>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
<div class="text-center">
|
||||
<div class="center-box">
|
||||
<h1>Log In</h1>
|
||||
<h1>{{ title_case(trans('auth.log_in')) }}</h1>
|
||||
|
||||
<form action="{{ baseUrl("/login") }}" method="POST" id="login-form">
|
||||
{!! csrf_field() !!}
|
||||
@ -19,20 +19,20 @@
|
||||
@include('auth/forms/login/' . $authMethod)
|
||||
|
||||
<div class="form-group">
|
||||
<label for="remember" class="inline">Remember Me</label>
|
||||
<label for="remember" class="inline">{{ trans('auth.remember_me') }}</label>
|
||||
<input type="checkbox" id="remember" name="remember" class="toggle-switch-checkbox">
|
||||
<label for="remember" class="toggle-switch"></label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="from-group">
|
||||
<button class="button block pos" tabindex="3"><i class="zmdi zmdi-sign-in"></i> Sign In</button>
|
||||
<button class="button block pos" tabindex="3"><i class="zmdi zmdi-sign-in"></i> {{ title_case(trans('auth.log_in')) }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@if(count($socialDrivers) > 0)
|
||||
<hr class="margin-top">
|
||||
<h3 class="text-muted">Social Login</h3>
|
||||
<h3 class="text-muted">{{ trans('auth.social_login') }}</h3>
|
||||
@if(isset($socialDrivers['google']))
|
||||
<a href="{{ baseUrl("/login/service/google") }}" style="color: #DC4E41;"><i class="zmdi zmdi-google-plus-box zmdi-hc-4x"></i></a>
|
||||
@endif
|
||||
|
@ -1,9 +1,9 @@
|
||||
@extends('public')
|
||||
|
||||
@section('header-buttons')
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>Sign in</a>
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>{{ trans('auth.log_in') }}</a>
|
||||
@if(setting('registration-enabled'))
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>Sign up</a>
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>{{ trans('auth.sign_up') }}</a>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@ -12,20 +12,20 @@
|
||||
|
||||
<div class="text-center">
|
||||
<div class="center-box text-left">
|
||||
<h1>Reset Password</h1>
|
||||
<h1>{{ trans('auth.reset_password') }}</h1>
|
||||
|
||||
<p class="muted small">Enter your email below and you will be sent an email with a password reset link.</p>
|
||||
<p class="muted small">{{ trans('auth.reset_password_send_instructions') }}</p>
|
||||
|
||||
<form action="{{ baseUrl("/password/email") }}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@include('form/text', ['name' => 'email'])
|
||||
</div>
|
||||
|
||||
<div class="from-group">
|
||||
<button class="button block pos">Send Reset Link</button>
|
||||
<button class="button block pos">{{ trans('auth.reset_password_send_button') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -1,9 +1,9 @@
|
||||
@extends('public')
|
||||
1@extends('public')
|
||||
|
||||
@section('header-buttons')
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>Sign in</a>
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>{{ trans('auth.log_in') }}</a>
|
||||
@if(setting('registration-enabled'))
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>Sign up</a>
|
||||
<a href="{{ baseUrl("/register") }}"><i class="zmdi zmdi-account-add"></i>{{ trans('auth.sign_up') }}</a>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@ -14,29 +14,29 @@
|
||||
|
||||
<div class="text-center">
|
||||
<div class="center-box text-left">
|
||||
<h1>Reset Password</h1>
|
||||
<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">Email</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@include('form/text', ['name' => 'email'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<label for="password">{{ trans('auth.password') }}</label>
|
||||
@include('form/password', ['name' => 'password'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password_confirmation">Confirm Password</label>
|
||||
<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">Reset Password</button>
|
||||
<button class="button block pos">{{ trans('auth.reset_password') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
@section('header-buttons')
|
||||
@if(!$signedIn)
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>Sign in</a>
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>{{ trans('auth.log_in') }}</a>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@ -10,10 +10,9 @@
|
||||
|
||||
<div class="text-center">
|
||||
<div class="center-box">
|
||||
<h2>Thanks for registering!</h2>
|
||||
<p>Please check your email and click the confirmation button to access {{ setting('app-name', 'BookStack') }}.</p>
|
||||
<h2>{{ trans('auth.register_thanks') }}</h2>
|
||||
<p>{{ trans('auth.register_confirm', ['appName' => setting('app-name')]) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@stop
|
||||
|
@ -1,42 +1,42 @@
|
||||
@extends('public')
|
||||
|
||||
@section('header-buttons')
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>Sign in</a>
|
||||
<a href="{{ baseUrl("/login") }}"><i class="zmdi zmdi-sign-in"></i>{{ trans('auth.log_in') }}</a>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="text-center">
|
||||
<div class="center-box">
|
||||
<h1>Sign Up</h1>
|
||||
<h1>{{ title_case(trans('auth.sign_up')) }}</h1>
|
||||
|
||||
<form action="{{ baseUrl("/register") }}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Name</label>
|
||||
<label for="email">{{ trans('auth.name') }}</label>
|
||||
@include('form/text', ['name' => 'name'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@include('form/text', ['name' => 'email'])
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
@include('form/password', ['name' => 'password', 'placeholder' => 'Must be over 5 characters'])
|
||||
<label for="password">{{ trans('auth.password') }}</label>
|
||||
@include('form/password', ['name' => 'password', 'placeholder' => trans('auth.password_hint')])
|
||||
</div>
|
||||
|
||||
<div class="from-group">
|
||||
<button class="button block pos">Create Account</button>
|
||||
<button class="button block pos">{{ trans('auth.create_account') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@if(count($socialDrivers) > 0)
|
||||
<hr class="margin-top">
|
||||
<h3 class="text-muted">Social Registration</h3>
|
||||
<p class="text-small">Register and sign in using another service.</p>
|
||||
<h3 class="text-muted">{{ trans('auth.social_registration') }}</h3>
|
||||
<p class="text-small">{{ trans('auth.social_registration_text') }}</p>
|
||||
@if(isset($socialDrivers['google']))
|
||||
<a href="{{ baseUrl("/register/service/google") }}" style="color: #DC4E41;"><i class="zmdi zmdi-google-plus-box zmdi-hc-4x"></i></a>
|
||||
@endif
|
||||
|
@ -4,16 +4,16 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<h2>Email Address not confirmed</h2>
|
||||
<p class="text-muted">Your email address has not yet been confirmed. <br>
|
||||
Please click the link in the email that was sent shortly after you registered. <br>
|
||||
If you cannot find the email you can re-send the confirmation email by submitting the form below.
|
||||
<h2>{{ trans('auth.email_not_confirmed') }}</h2>
|
||||
<p class="text-muted">{{ trans('auth.email_not_confirmed_text') }}<br>
|
||||
{{ trans('auth.email_not_confirmed_click_link') }} <br>
|
||||
{{ trans('auth.email_not_confirmed_resend') }}
|
||||
</p>
|
||||
<hr>
|
||||
<form action="{{ baseUrl("/register/confirm/resend") }}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<div class="form-group">
|
||||
<label for="email">Email Address</label>
|
||||
<label for="email">{{ trans('auth.email') }}</label>
|
||||
@if(auth()->check())
|
||||
@include('form/text', ['name' => 'email', 'model' => auth()->user()])
|
||||
@else
|
||||
@ -21,7 +21,7 @@
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="button pos">Resend Confirmation Email</button>
|
||||
<button type="submit" class="button pos">{{ trans('auth.email_not_confirmed_resend_button') }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -19,4 +19,4 @@ if (! empty($outroLines)) {
|
||||
}
|
||||
|
||||
echo 'Regards,', "\n";
|
||||
echo config('app.name'), "\n";
|
||||
echo setting('app-name'), "\n";
|
||||
|
Reference in New Issue
Block a user