From 4698d503a06028bd4b37cd5a4a33230809f4e378 Mon Sep 17 00:00:00 2001 From: batuhanbas Date: Fri, 29 Nov 2019 16:40:19 +0300 Subject: [PATCH] reconciliations styles updated --- .../views/banking/reconciliations/create.blade.php | 9 +++++++-- .../views/banking/reconciliations/edit.blade.php | 9 +++++++-- .../views/banking/reconciliations/index.blade.php | 12 ++++-------- resources/views/portal/invoices/signed.blade.php | 3 ++- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/resources/views/banking/reconciliations/create.blade.php b/resources/views/banking/reconciliations/create.blade.php index 175172223..ed9d69302 100644 --- a/resources/views/banking/reconciliations/create.blade.php +++ b/resources/views/banking/reconciliations/create.blade.php @@ -114,8 +114,13 @@ @if ($transactions->count())
 {{ trans('general.cancel') }} - {!! Form::button('  ' . trans('reconciliations.reconcile'), ['type' => 'button', 'id' => 'button-reconcile', 'class' => 'btn btn-info button-submit header-button-top', 'data-loading-text' => trans('general.loading'), 'disabled' => 'disabled']) !!} - {!! Form::button('  ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-success button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!} + {!! Form::button( + '
' . ' ' . trans('reconciliations.reconcile') . '', + [':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-icon btn-info button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!} + + {!! Form::button( + '
' . ' ' . trans('general.save') . '', + [':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-icon btn-success button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!}
@else
diff --git a/resources/views/banking/reconciliations/edit.blade.php b/resources/views/banking/reconciliations/edit.blade.php index 38191f4be..70ecddc65 100644 --- a/resources/views/banking/reconciliations/edit.blade.php +++ b/resources/views/banking/reconciliations/edit.blade.php @@ -79,8 +79,13 @@
@if ($transactions->count())  {{ trans('general.cancel') }} - {!! Form::button('  ' . trans('reconciliations.reconcile'), ['type' => 'button', 'id' => 'button-reconcile', 'class' => 'btn btn-info button-submit header-button-top', 'data-loading-text' => trans('general.loading'), 'disabled' => 'disabled']) !!} - {!! Form::button('  ' . trans('general.save'), ['type' => 'submit', 'class' => 'btn btn-success button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!} + {!! Form::button( + '
' . ' ' . trans('reconciliations.reconcile') . '', + [':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-icon btn-info button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!} + + {!! Form::button( + '
' . ' ' . trans('general.save') . '', + [':disabled' => 'form.loading', 'type' => 'submit', 'class' => 'btn btn-icon btn-success button-submit header-button-top', 'data-loading-text' => trans('general.loading')]) !!} @else {{ trans('general.no_records') }} @endif diff --git a/resources/views/banking/reconciliations/index.blade.php b/resources/views/banking/reconciliations/index.blade.php index 71d2b8199..7df6a4d08 100644 --- a/resources/views/banking/reconciliations/index.blade.php +++ b/resources/views/banking/reconciliations/index.blade.php @@ -37,7 +37,7 @@ @sortablelink('account_id', trans_choice('general.accounts', 1)) {{ trans('general.period') }} @sortablelink('closing_balance', trans('reconciliations.closing_balance')) - @sortablelink('enabled', trans('general.enabled')) + @sortablelink('invoice_status_code', trans_choice('general.statuses', 1)) {{ trans('general.actions') }} @@ -51,14 +51,10 @@ @date($item->started_at) - @date($item->ended_at) @money($item->closing_balance, $item->account->currency_code, true) - @if (user()->can('update-banking-reconciliations')) - {{ Form::enabledGroup($item->id, $item->account->name, $item->enabled) }} + @if ($item->reconciled) + {{ trans('reconciliations.reconciled') }} @else - @if ($item->enabled) - {{ trans('general.enabled') }} - @else - {{ trans('general.disabled') }} - @endif + {{ trans('reconciliations.unreconciled') }} @endif diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index 963bc9f25..b376f8b28 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -210,7 +210,8 @@ 'id' => 'invoice-payment', 'role' => 'form', 'autocomplete' => "off", - 'novalidate' => 'true' + 'novalidate' => 'true', + 'class' => 'mb-0', ]) !!} {{ Form::selectGroup('payment_method', '', 'fas fa-wallet', $payment_methods, '', ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'mb-0') }} {!! Form::hidden('invoice_id', $invoice->id, ['v-model' => 'form.invoice_id']) !!}