1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/resources/views/clientauth/login.blade.php

68 lines
1.9 KiB
PHP
Raw Normal View History

2017-02-16 04:00:13 +01:00
@extends('login')
2017-02-16 04:00:13 +01:00
@section('form')
2016-05-24 23:02:28 +02:00
@include('partials.warn_session', ['redirectTo' => '/client/sessionexpired'])
2017-02-16 04:00:13 +01:00
<div class="container">
{!! Former::open('client/login')
->rules(['password' => 'required'])
->addClass('form-signin') !!}
2017-02-16 04:00:13 +01:00
<h2 class="form-signin-heading">{{ trans('texts.client_login') }}</h2>
<hr class="green">
2017-02-16 04:00:13 +01:00
@if (count($errors->all()))
<div class="alert alert-danger">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</div>
@endif
@if (Session::has('warning'))
<div class="alert alert-warning">{{ Session::get('warning') }}</div>
2017-02-16 04:00:13 +01:00
@endif
2017-02-16 04:00:13 +01:00
@if (Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>
2017-02-16 04:00:13 +01:00
@endif
2017-02-16 04:00:13 +01:00
@if (Session::has('error'))
<div class="alert alert-danger"><li>{{ Session::get('error') }}</li></div>
2017-02-16 04:00:13 +01:00
@endif
{{ Former::populateField('remember', 'true') }}
2017-02-16 04:00:13 +01:00
<div>
{!! Former::password('password')->placeholder(trans('texts.password'))->raw() !!}
</div>
2017-02-16 04:00:13 +01:00
{!! Former::hidden('remember')->raw() !!}
{!! Button::success(trans('texts.login'))
->withAttributes(['id' => 'loginButton', 'class' => 'green'])
->large()->submit()->block() !!}
2017-02-16 04:00:13 +01:00
<div class="row meta">
<div class="col-md-7 col-sm-12">
{!! link_to('/client/recover_password', trans('texts.recover_password')) !!}
</div>
</div>
{!! Former::close() !!}
</div>
2017-02-16 04:00:13 +01:00
<script type="text/javascript">
$(function() {
if ($('#email').val()) {
$('#password').focus();
} else {
$('#email').focus();
}
})
</script>
@endsection