akaunting 3.0 (the last dance)
This commit is contained in:
@ -1,65 +0,0 @@
|
||||
<div class="modal-body pb-0">
|
||||
{!! Form::open([
|
||||
'route' => 'modals.invoice-templates.update',
|
||||
'method' => 'PATCH',
|
||||
'id' => 'template',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'invoice_form.errors.clear($event.target.name)',
|
||||
'files' => true,
|
||||
'role' => 'form',
|
||||
'class' => 'form-loading-button mb-0',
|
||||
'novalidate' => true
|
||||
]) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-4 text-center">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="invoice_form.template='default'">
|
||||
<img src="{{ asset('public/img/invoice_templates/default.png') }}" class="mb-1 mt-3" height="200" alt="Default"/>
|
||||
<label>
|
||||
<input type="radio" name="template" value="default" v-model="invoice_form.template">
|
||||
{{ trans('settings.invoice.default') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 text-center px-2">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="invoice_form.template='classic'">
|
||||
<img src="{{ asset('public/img/invoice_templates/classic.png') }}" class="mb-1 mt-3" height="200" alt="Classic"/>
|
||||
<label>
|
||||
<input type="radio" name="template" value="classic" v-model="invoice_form.template">
|
||||
{{ trans('settings.invoice.classic') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 text-center px-0">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="invoice_form.template='modern'">
|
||||
<img src="{{ asset('public/img/invoice_templates/modern.png') }}" class="mb-1 mt-3" height="200" alt="Modern"/>
|
||||
<label>
|
||||
<input type="radio" name="template" value="modern" v-model="invoice_form.template">
|
||||
{{ trans('settings.invoice.modern') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-4">
|
||||
@stack('color_input_start')
|
||||
<div class="form-group col-md-12 {{ $errors->has('color') ? 'has-error' : ''}}">
|
||||
{!! Form::label('color', trans('general.color'), ['class' => 'form-control-label']) !!}
|
||||
<div class="input-group input-group-merge" id="invoice-color-picker">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<el-color-picker popper-class="template-color-picker" v-model="invoice_form.color" size="mini" :predefine="predefineColors" @change="onChangeColor"></el-color-picker>
|
||||
</span>
|
||||
</div>
|
||||
{!! Form::text('color', setting('invoice.color'), ['v-model' => 'invoice_form.color', '@input' => 'onChangeColorInput', 'id' => 'color', 'class' => 'form-control color-hex', 'required' => 'required']) !!}
|
||||
</div>
|
||||
{!! $errors->first('color', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
@stack('color_input_end')
|
||||
</div>
|
||||
|
||||
{!! Form::hidden('_template', setting('invoice.template')) !!}
|
||||
{!! Form::hidden('_prefix', 'invoice') !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
@ -1,19 +1,9 @@
|
||||
<div class="modal-body pb-0">
|
||||
{!! Form::open([
|
||||
'route' => 'modals.transfer-templates.update',
|
||||
'method' => 'PATCH',
|
||||
'id' => 'template',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'transfer_form.errors.clear($event.target.name)',
|
||||
'files' => true,
|
||||
'role' => 'form',
|
||||
'class' => 'form-loading-button mb-0',
|
||||
'novalidate' => true
|
||||
]) !!}
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-4 text-center">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="transfer_form.template='default'">
|
||||
<img src="{{ asset('public/img/transfer_templates/default.png') }}" class="mb-1 mt-3" height="200" alt="Default"/>
|
||||
<div class="py-1 px-5 bg-body">
|
||||
<x-form id="template" method="PATCH" route="modals.transfer-templates.update">
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<div class="sm:col-span-2 bg-gray-100 rounded-lg cursor-pointer text-center py-2 px-2">
|
||||
<div @click="transfer_form.template='default'">
|
||||
<img src="{{ asset('public/img/transfer_templates/default.png') }}" class="h-72 m-auto" alt="Default"/>
|
||||
</br>
|
||||
<label style="font-size: initial;">
|
||||
<input type="radio" name="template" value="default" v-model="transfer_form.template">
|
||||
@ -22,9 +12,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 text-center px-2">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="transfer_form.template='second'">
|
||||
<img src="{{ asset('public/img/transfer_templates/second.png') }}" class="mb-1 mt-3" height="200" alt="Second"/>
|
||||
<div class="sm:col-span-2 bg-gray-100 rounded-lg cursor-pointer text-center py-2 px-2">
|
||||
<div @click="transfer_form.template='second'">
|
||||
<img src="{{ asset('public/img/transfer_templates/second.png') }}" class="h-72 m-auto" alt="Second"/>
|
||||
</br>
|
||||
<label style="font-size: initial;">
|
||||
<input type="radio" name="template" value="second" v-model="transfer_form.template">
|
||||
@ -33,9 +23,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 text-center px-0">
|
||||
<div class="bg-print border-radius-default print-edge choose" @click="transfer_form.template='third'">
|
||||
<img src="{{ asset('public/img/transfer_templates/third.png') }}" class="mb-1 mt-3" height="200" alt="Third"/>
|
||||
<div class="sm:col-span-2 bg-gray-100 rounded-lg cursor-pointer text-center py-2 px-2">
|
||||
<div @click="transfer_form.template='third'">
|
||||
<img src="{{ asset('public/img/transfer_templates/third.png') }}" class="h-72 m-auto" alt="Third"/>
|
||||
</br>
|
||||
<label style="font-size: initial;">
|
||||
<input type="radio" name="template" value="third" v-model="transfer_form.template">
|
||||
@ -45,8 +35,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Form::hidden('transfer_id', $transfer->id) !!}
|
||||
{!! Form::hidden('_template', setting('transfer.template')) !!}
|
||||
{!! Form::hidden('_prefix', 'transfer') !!}
|
||||
{!! Form::close() !!}
|
||||
<x-form.input.hidden name="transfer_id" :value="$transfer->id" />
|
||||
<x-form.input.hidden name="_template" :value="setting('transfer.template')" />
|
||||
<x-form.input.hidden name="_prefix" value="transfer" />
|
||||
</x-form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user