1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/resources/views/clientauth/passwords/email.blade.php
2018-01-11 11:40:49 +02:00

65 lines
2.1 KiB
PHP

@extends('login')
@section('form')
@include('partials.warn_session', ['redirectTo' => '/client/session_expired'])
<div class="container">
{!! Former::open()
->rules(['email' => 'required|email'])
->addClass('form-signin') !!}
<h2 class="form-signin-heading">{{ trans('texts.password_recovery') }}</h2>
<hr class="green">
@if (count($errors->all()))
<div class="alert alert-danger">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</div>
@endif
@if (session('status'))
<div class="alert alert-info">
{{ session('status') }}
</div>
@endif
<!-- if there are login errors, show them here -->
@if (Session::has('warning'))
<div class="alert alert-warning">{{ Session::get('warning') }}</div>
@endif
@if (Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>
@endif
@if (Session::has('error'))
<div class="alert alert-danger">{{ Session::get('error') }}</div>
@endif
<div>
{!! Former::text('email')->placeholder(trans('texts.email_address'))->raw() !!}
</div>
{!! Button::success(trans('texts.send_email'))
->withAttributes(['class' => 'green'])
->large()->submit()->block() !!}
<div class="row meta">
<div class="col-md-12 col-sm-12" style="text-align:center;padding-top:8px;">
{!! link_to('/client/login' . (request()->account_key ? '?account_key=' . request()->account_key : ''), trans('texts.return_to_login')) !!}
</div>
</div>
{!! Former::close() !!}
</div>
<script type="text/javascript">
$(function() {
$('.form-signin').submit(function() {
$('button.btn-success').prop('disabled', true);
});
})
</script>
@endsection