Disable save button after click
This commit is contained in:
public/js
resources
lang
en-GB
views
auth
permissions
roles
users
banking
common
customers
profile
expenses
bills
payments
vendors
incomes
customers
invoices
revenues
modals
bills
categories
customers
invoices
vendors
modules
token
partials
settings
categories
currencies
modules
settings
taxes
6
public/js/app.js
vendored
6
public/js/app.js
vendored
@ -191,6 +191,12 @@ $(document).ready(function () {
|
|||||||
$(".input-group-recurring #recurring_frequency").select2();
|
$(".input-group-recurring #recurring_frequency").select2();
|
||||||
$('.input-group-recurring #recurring_frequency').trigger('change');
|
$('.input-group-recurring #recurring_frequency').trigger('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('.form-loading-button').submit(function( event ) {
|
||||||
|
$('.button-submit').button('loading');
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function confirmDelete(form_id, title, message, button_cancel, button_delete) {
|
function confirmDelete(form_id, title, message, button_cancel, button_delete) {
|
||||||
|
@ -81,6 +81,7 @@ return [
|
|||||||
'color' => 'Colour',
|
'color' => 'Colour',
|
||||||
'save' => 'Save',
|
'save' => 'Save',
|
||||||
'cancel' => 'Cancel',
|
'cancel' => 'Cancel',
|
||||||
|
'loading' => 'Loading...',
|
||||||
'from' => 'From',
|
'from' => 'From',
|
||||||
'to' => 'To',
|
'to' => 'To',
|
||||||
'print' => 'Print',
|
'print' => 'Print',
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'auth/permissions', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'auth/permissions', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('display_name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('display_name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($permission, [
|
{!! Form::model($permission, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['auth/permissions', $permission->id],
|
'url' => ['auth/permissions', $permission->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'auth/roles', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'auth/roles', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('display_name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('display_name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($role, [
|
{!! Form::model($role, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['auth/roles', $role->id],
|
'url' => ['auth/roles', $role->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'auth/users', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'auth/users', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'url' => ['auth/users', $user->id],
|
'url' => ['auth/users', $user->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'banking/accounts', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'banking/accounts', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($account, [
|
{!! Form::model($account, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['banking/accounts', $account->id],
|
'url' => ['banking/accounts', $account->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'banking/transfers', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'banking/transfers', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::selectGroup('from_account_id', trans('transfers.from_account'), 'university', $accounts) }}
|
{{ Form::selectGroup('from_account_id', trans('transfers.from_account'), 'university', $accounts) }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($transfer, [
|
{!! Form::model($transfer, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['banking/transfers', $transfer->id],
|
'url' => ['banking/transfers', $transfer->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'common/companies', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'common/companies', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('company_name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('company_name', trans('general.name'), 'id-card-o') }}
|
||||||
|
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['common/companies', $company->id],
|
'url' => ['common/companies', $company->id],
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => $path . '/import', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => $path . '/import', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['route' => 'items.store', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['route' => 'items.store', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'route' => ['items.update', $item->id],
|
'route' => ['items.update', $item->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'url' => ['customers/profile/update'],
|
'url' => ['customers/profile/update'],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'expenses/bills', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'expenses/bills', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
@stack('vendor_id_input_start')
|
@stack('vendor_id_input_start')
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::model($bill, ['method' => 'PATCH', 'files' => true, 'url' => ['expenses/bills', $bill->id], 'role' => 'form']) !!}
|
{!! Form::model($bill, ['method' => 'PATCH', 'files' => true, 'url' => ['expenses/bills', $bill->id], 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::selectGroup('vendor_id', trans_choice('general.vendors', 1), 'user', $vendors) }}
|
{{ Form::selectGroup('vendor_id', trans_choice('general.vendors', 1), 'user', $vendors) }}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'expenses/payments', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'expenses/payments', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'url' => ['expenses/payments', $payment->id],
|
'url' => ['expenses/payments', $payment->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'expenses/vendors', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'expenses/vendors', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'url' => ['expenses/vendors', $vendor->id],
|
'url' => ['expenses/vendors', $vendor->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'incomes/customers', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'incomes/customers', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($customer, [
|
{!! Form::model($customer, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['incomes/customers', $customer->id],
|
'url' => ['incomes/customers', $customer->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'incomes/invoices', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'incomes/invoices', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
@stack('customer_id_input_start')
|
@stack('customer_id_input_start')
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::model($invoice, ['method' => 'PATCH', 'files' => true, 'url' => ['incomes/invoices', $invoice->id], 'role' => 'form']) !!}
|
{!! Form::model($invoice, ['method' => 'PATCH', 'files' => true, 'url' => ['incomes/invoices', $invoice->id], 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::selectGroup('customer_id', trans_choice('general.customers', 1), 'user', $customers, config('general.customers')) }}
|
{{ Form::selectGroup('customer_id', trans_choice('general.customers', 1), 'user', $customers, config('general.customers')) }}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'incomes/revenues', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'incomes/revenues', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'url' => ['incomes/revenues', $revenue->id],
|
'url' => ['incomes/revenues', $revenue->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="modal-message"></div>
|
<div class="modal-message"></div>
|
||||||
{!! Form::open(['id' => 'form-add-payment', 'role' => 'form']) !!}
|
{!! Form::open(['id' => 'form-add-payment', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-add-payment', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-add-payment', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.categories', 1)]) }}</h4>
|
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.categories', 1)]) }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{!! Form::open(['id' => 'form-create-category', 'role' => 'form']) !!}
|
{!! Form::open(['id' => 'form-create-category', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
|
||||||
@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-category', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-category', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.customers', 1)]) }}</h4>
|
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.customers', 1)]) }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{!! Form::open(['id' => 'form-create-customer', 'role' => 'form']) !!}
|
{!! Form::open(['id' => 'form-create-customer', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-customer', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-customer', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="modal-message"></div>
|
<div class="modal-message"></div>
|
||||||
{!! Form::open(['id' => 'form-add-payment', 'role' => 'form']) !!}
|
{!! Form::open(['id' => 'form-add-payment', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-add-payment', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-add-payment', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.vendors', 1)]) }}</h4>
|
<h4 class="modal-title">{{ trans('general.title.new', ['type' => trans_choice('general.vendors', 1)]) }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{!! Form::open(['id' => 'form-create-vendor', 'role' => 'form']) !!}
|
{!! Form::open(['id' => 'form-create-vendor', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-vendor', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'button', 'id' =>'button-create-vendor', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'apps/token', 'files' => true, 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'apps/token', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div class="{{ $col }}">
|
<div class="{{ $col }}">
|
||||||
<div class="form-group no-margin">
|
<div class="form-group no-margin">
|
||||||
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
{!! Form::button('<span class="fa fa-save"></span> ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-success button-submit', 'data-loading-text' => trans('general.loading')]) !!}
|
||||||
<a href="{{ url($cancel) }}" class="btn btn-default"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</a>
|
<a href="{{ url($cancel) }}" class="btn btn-default"><span class="fa fa-times-circle"></span> {{ trans('general.cancel') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'settings/categories', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'settings/categories', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($category, [
|
{!! Form::model($category, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['settings/categories', $category->id],
|
'url' => ['settings/categories', $category->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'settings/currencies', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'settings/currencies', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($currency, [
|
{!! Form::model($currency, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['settings/currencies', $currency->id],
|
'url' => ['settings/currencies', $currency->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['settings/apps/' . $module->getAlias()],
|
'url' => ['settings/apps/' . $module->getAlias()],
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{!! Form::model($setting, [
|
{!! Form::model($setting, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['settings/settings'],
|
'url' => ['settings/settings'],
|
||||||
'class' => 'setting-form',
|
'class' => 'setting-form form-loading-button'
|
||||||
'files' => true,
|
'files' => true,
|
||||||
'role' => 'form'
|
'role' => 'form'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<!-- Default box -->
|
<!-- Default box -->
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
{!! Form::open(['url' => 'settings/taxes', 'role' => 'form']) !!}
|
{!! Form::open(['url' => 'settings/taxes', 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
{!! Form::model($tax, [
|
{!! Form::model($tax, [
|
||||||
'method' => 'PATCH',
|
'method' => 'PATCH',
|
||||||
'url' => ['settings/taxes', $tax->id],
|
'url' => ['settings/taxes', $tax->id],
|
||||||
'role' => 'form'
|
'role' => 'form',
|
||||||
|
'class' => 'form-loading-button'
|
||||||
]) !!}
|
]) !!}
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
Reference in New Issue
Block a user