Changed expense field order

This commit is contained in:
Hillel Coren 2017-03-03 12:06:21 +02:00
parent 4c5c68eff5
commit cd16988ebc

View File

@ -46,11 +46,11 @@
->label(trans('texts.category')) ->label(trans('texts.category'))
->addGroupClass('expense-category-select') !!} ->addGroupClass('expense-category-select') !!}
{!! Former::text('expense_date') {!! Former::text('amount')
->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT)) ->label(trans('texts.amount'))
->addGroupClass('expense_date') ->data_bind("value: amount, valueUpdate: 'afterkeydown'")
->label(trans('texts.date')) ->addGroupClass('amount')
->append('<i class="glyphicon glyphicon-calendar"></i>') !!} ->append('<span data-bind="html: expenseCurrencyCode"></span>') !!}
{!! Former::select('expense_currency_id')->addOption('','') {!! Former::select('expense_currency_id')->addOption('','')
->data_bind('combobox: expense_currency_id') ->data_bind('combobox: expense_currency_id')
@ -58,11 +58,11 @@
->data_placeholder(Utils::getFromCache($account->getCurrencyId(), 'currencies')->name) ->data_placeholder(Utils::getFromCache($account->getCurrencyId(), 'currencies')->name)
->fromQuery($currencies, 'name', 'id') !!} ->fromQuery($currencies, 'name', 'id') !!}
{!! Former::text('amount') {!! Former::text('expense_date')
->label(trans('texts.amount')) ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))
->data_bind("value: amount, valueUpdate: 'afterkeydown'") ->addGroupClass('expense_date')
->addGroupClass('amount') ->label(trans('texts.date'))
->append('<span data-bind="html: expenseCurrencyCode"></span>') !!} ->append('<i class="glyphicon glyphicon-calendar"></i>') !!}
@if ($expense && $expense->invoice_id) @if ($expense && $expense->invoice_id)
{!! Former::plaintext() {!! Former::plaintext()