1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/clientauth/reset.blade.php

52 lines
1.7 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')
<div class="container">
2016-05-24 23:02:28 +02:00
2017-02-16 04:00:13 +01:00
{!! Former::open('/client/password/reset')->addClass('form-signin')->rules(array(
'password' => 'required',
'password_confirmation' => 'required',
)) !!}
2017-02-16 04:00:13 +01:00
<h2 class="form-signin-heading">{{ trans('texts.set_password') }}</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 there are login errors, show them here -->
2017-02-16 04:00:13 +01:00
@if (Session::has('warning'))
<div class="alert alert-warning">{{ Session::get('warning') }}</div>
@endif
2017-02-16 04:00:13 +01:00
@if (Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>
@endif
2017-02-16 04:00:13 +01:00
@if (Session::has('error'))
<div class="alert alert-danger">{{ Session::get('error') }}</div>
@endif
2017-02-16 04:00:13 +01:00
<input type="hidden" name="token" value="{{{ $token }}}">
<input type="hidden" name="contact_key" value="{{{ $contact_key }}}">
2017-02-16 04:00:13 +01:00
<div>
{!! Former::password('password')->placeholder(trans('texts.password'))->raw() !!}
{!! Former::password('password_confirmation')->placeholder(trans('texts.confirm_password'))->raw() !!}
</div>
2017-02-16 04:00:13 +01:00
<p>{!! Button::success(trans('texts.save'))->large()->submit()->withAttributes(['class' => 'green'])->block() !!}</p>
{!! Former::close() !!}
</div>
<script type="text/javascript">
$(function () {
$('#password').focus();
})
</script>
@endsection