Transfer create and edit currency rate styling..
This commit is contained in:
		@@ -24,11 +24,11 @@
 | 
			
		||||
                    <div class="d-none w-100" :class="[{'d-flex' : show_rate}]">
 | 
			
		||||
                        {!! Form::hidden('from_currency_code', null, ['id' => 'from_currency_code', 'v-model' => 'form.from_currency_code']) !!}
 | 
			
		||||
 | 
			
		||||
                        {{ Form::textGroup('from_account_rate', trans('transfers.from_account_rate'), 'sliders-h', []) }}
 | 
			
		||||
                        {{ Form::textGroup('from_account_rate', trans('transfers.from_account_rate'), 'sliders-h', [':disabled' => "form.from_currency_code == '" . setting('default.currency') . "'"]) }}
 | 
			
		||||
 | 
			
		||||
                        {!! Form::hidden('to_currency_code', null, ['id' => 'to_currency_code', 'v-model' => 'form.to_currency_code']) !!}
 | 
			
		||||
 | 
			
		||||
                        {{ Form::textGroup('to_account_rate', trans('transfers.to_account_rate'), 'sliders-h', []) }}
 | 
			
		||||
                        {{ Form::textGroup('to_account_rate', trans('transfers.to_account_rate'), 'sliders-h', [':disabled' => "form.to_currency_code == '" . setting('default.currency') . "'"]) }}
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                    {{ Form::moneyGroup('amount', trans('general.amount'), 'money-bill-alt', ['required' => 'required', 'currency' => $currency, 'dynamic-currency' => 'currency'], 0) }}
 | 
			
		||||
 
 | 
			
		||||
@@ -25,11 +25,11 @@
 | 
			
		||||
                    <div class="d-none w-100" :class="[{'d-flex' : show_rate}]">
 | 
			
		||||
                        {!! Form::hidden('from_currency_code', $transfer->from_currency_code, ['id' => 'from_currency_code', 'v-model' => 'form.from_currency_code']) !!}
 | 
			
		||||
 | 
			
		||||
                        {{ Form::textGroup('from_account_rate', trans('transfers.from_account_rate'), 'sliders-h', [], $transfer->from_account_rate) }}
 | 
			
		||||
                        {{ Form::textGroup('from_account_rate', trans('transfers.from_account_rate'), 'sliders-h', [':disabled' => "form.from_currency_code == '" . setting('default.currency') . "'"], $transfer->from_account_rate) }}
 | 
			
		||||
 | 
			
		||||
                        {!! Form::hidden('to_currency_code', $transfer->to_currency_code, ['id' => 'to_currency_code', 'v-model' => 'form.to_currency_code']) !!}
 | 
			
		||||
 | 
			
		||||
                        {{ Form::textGroup('to_account_rate', trans('transfers.to_account_rate'), 'sliders-h', [], $transfer->to_account_rate) }}
 | 
			
		||||
                        {{ Form::textGroup('to_account_rate', trans('transfers.to_account_rate'), 'sliders-h', [':disabled' => "form.to_currency_code == '" . setting('default.currency') . "'"], $transfer->to_account_rate) }}
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                    {{ Form::moneyGroup('amount', trans('general.amount'), 'money-bill-alt', ['required' => 'required', 'currency' => $currency, 'dynamic-currency' => 'currency'], $transfer->amount) }}
 | 
			
		||||
 
 | 
			
		||||
@@ -35,13 +35,13 @@
 | 
			
		||||
        @if (!$hideHeaderAmount)
 | 
			
		||||
        <div class="{{ $classHeaderAmount }}">
 | 
			
		||||
            <span class="float-right">
 | 
			
		||||
            {{ trans($textHeaderAmount) }}
 | 
			
		||||
                {{ trans($textHeaderAmount) }}
 | 
			
		||||
            </span>
 | 
			
		||||
            <br>
 | 
			
		||||
 | 
			
		||||
            <strong>
 | 
			
		||||
                <span class="float-right long-texts mwpx-100 transaction-head-text">
 | 
			
		||||
                    @money($transfer->expense_transaction->amount, $transfer->from_currency_code, true)
 | 
			
		||||
                    @money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
 | 
			
		||||
                </span>
 | 
			
		||||
            </strong>
 | 
			
		||||
            <br><br>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,10 +2,14 @@
 | 
			
		||||
 | 
			
		||||
    <div
 | 
			
		||||
        class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['readonly']) ? ' readonly' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
 | 
			
		||||
        :class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]"
 | 
			
		||||
        @if (isset($attributes['show']))
 | 
			
		||||
        v-if="{{ $attributes['show'] }}"
 | 
			
		||||
        @endif
 | 
			
		||||
        @if (isset($attributes[':disabled']))
 | 
			
		||||
        :class="[{'disabled' : {{ $attributes[':disabled'] }}}, {'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }}}]"
 | 
			
		||||
        @else
 | 
			
		||||
        :class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }}}]"
 | 
			
		||||
        @endif
 | 
			
		||||
        >
 | 
			
		||||
        @if (!empty($text))
 | 
			
		||||
            {!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user