Fix issue saving after clicking back

This commit is contained in:
Hillel Coren 2018-03-14 13:03:30 +02:00
parent 8a874ba602
commit 7f5804c739
10 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,7 @@
{!! Former::open($url) {!! Former::open($url)
->method($method) ->method($method)
->autocomplete('off')
->rules(['product_key' => 'required|max:255']) ->rules(['product_key' => 'required|max:255'])
->addClass('col-lg-10 col-lg-offset-1 main-form warn-on-exit') !!} ->addClass('col-lg-10 col-lg-offset-1 main-form warn-on-exit') !!}

View File

@ -33,7 +33,7 @@
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<div class="pull-right"> <div class="pull-right">
{!! Former::open('clients/bulk')->addClass('mainForm') !!} {!! Former::open('clients/bulk')->autocomplete('off')->addClass('mainForm') !!}
<div style="display:none"> <div style="display:none">
{!! Former::text('action') !!} {!! Former::text('action') !!}
{!! Former::text('public_id')->value($client->public_id) !!} {!! Former::text('public_id')->value($client->public_id) !!}

View File

@ -17,6 +17,7 @@
{!! Former::open($url) {!! Former::open($url)
->addClass('warn-on-exit main-form') ->addClass('warn-on-exit main-form')
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->autocomplete('off')
->method($method) !!} ->method($method) !!}
<div style="display:none"> <div style="display:none">
{!! Former::text('action') !!} {!! Former::text('action') !!}

View File

@ -18,6 +18,7 @@
->addClass('col-lg-10 col-lg-offset-1 warn-on-exit main-form') ->addClass('col-lg-10 col-lg-offset-1 warn-on-exit main-form')
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->method($method) ->method($method)
->autocomplete('off')
->rules(array( ->rules(array(
'client' => 'required', 'client' => 'required',
'invoice' => 'required', 'invoice' => 'required',

View File

@ -4,6 +4,7 @@
{!! Former::open($url) {!! Former::open($url)
->addClass('col-lg-10 col-lg-offset-1 warn-on-exit main-form') ->addClass('col-lg-10 col-lg-offset-1 warn-on-exit main-form')
->autocomplete('off')
->method($method) ->method($method)
->rules([ ->rules([
'name' => 'required', 'name' => 'required',

View File

@ -21,7 +21,7 @@
<div class="col-md-5"> <div class="col-md-5">
<div class="pull-right"> <div class="pull-right">
{!! Former::open('projects/bulk')->addClass('mainForm') !!} {!! Former::open('projects/bulk')->autocomplete('off')->addClass('mainForm') !!}
<div style="display:none"> <div style="display:none">
{!! Former::text('action') !!} {!! Former::text('action') !!}
{!! Former::text('public_id')->value($project->public_id) !!} {!! Former::text('public_id')->value($project->public_id) !!}

View File

@ -14,6 +14,7 @@
->method($method) ->method($method)
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->id('mainForm') ->id('mainForm')
->autocomplete('off')
->addClass('warn-on-exit') ->addClass('warn-on-exit')
->rules([ ->rules([
'invoice_id' => 'required', 'invoice_id' => 'required',

View File

@ -25,6 +25,7 @@
{!! Former::open($url) {!! Former::open($url)
->addClass('col-lg-10 col-lg-offset-1 warn-on-exit task-form') ->addClass('col-lg-10 col-lg-offset-1 warn-on-exit task-form')
->onsubmit('return onFormSubmit(event)') ->onsubmit('return onFormSubmit(event)')
->autocomplete('off')
->method($method) !!} ->method($method) !!}
@if ($task) @if ($task)

View File

@ -4,7 +4,7 @@
@parent @parent
@include('accounts.nav', ['selected' => ACCOUNT_USER_MANAGEMENT]) @include('accounts.nav', ['selected' => ACCOUNT_USER_MANAGEMENT])
{!! Former::open($url)->method($method)->addClass('warn-on-exit user-form')->rules(array( {!! Former::open($url)->autocomplete('off')->method($method)->addClass('warn-on-exit user-form')->rules(array(
'first_name' => 'required', 'first_name' => 'required',
'last_name' => 'required', 'last_name' => 'required',
'email' => 'required|email', 'email' => 'required|email',

View File

@ -34,7 +34,7 @@
<div class="col-md-5"> <div class="col-md-5">
<div class="pull-right"> <div class="pull-right">
{!! Former::open('vendors/bulk')->addClass('mainForm') !!} {!! Former::open('vendors/bulk')->autocomplete('off')->addClass('mainForm') !!}
<div style="display:none"> <div style="display:none">
{!! Former::text('action') !!} {!! Former::text('action') !!}
{!! Former::text('public_id')->value($vendor->public_id) !!} {!! Former::text('public_id')->value($vendor->public_id) !!}