fixed invoice templates

This commit is contained in:
denisdulici
2019-12-25 21:48:05 +03:00
parent bc547a18b4
commit f3ac0944e2
10 changed files with 11 additions and 69 deletions

View File

@ -48,6 +48,7 @@ return [
'localisations' => 'Localisation|Localisations',
'defaults' => 'Default|Defaults',
'widgets' => 'Widget|Widgets',
'templates' => 'Template|Templates',
'dashboard' => 'Dashboard',
'welcome' => 'Welcome',

View File

@ -52,8 +52,7 @@ return [
'subheading' => 'Subheading',
'due_receipt' => 'Due upon receipt',
'due_days' => 'Due within :days days',
'invoice_template' => 'Invoice Template',
'choose_template' => 'Choose a template',
'choose_template' => 'Choose invoice template',
'default' => 'Default',
'classic' => 'Classic',
'modern' => 'Modern',

View File

@ -1,6 +1,6 @@
<div class="modal-body">
{!! Form::open([
'route' => 'modals.invoice-template.update',
'route' => 'modals.invoice-templates.update',
'method' => 'PATCH',
'id' => 'template',
'@submit.prevent' => 'onSubmit',
@ -13,7 +13,7 @@
<div class="row">
<div class="col-md-4 text-center px-0">
<div class="bg-print border-radius-5 print-edge choose" @click="invoice_form.template='default'">
<img src="{{ asset('public/img/print_templates/default.png') }}" class="mb-1 mt-3" height="200" alt="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') }}
@ -23,7 +23,7 @@
<div class="col-md-4 text-center px-0">
<div class="bg-print border-radius-5 print-edge choose" @click="invoice_form.template='classic'">
<img src="{{ asset('public/img/print_templates/classic.png') }}" class="mb-1 mt-3" height="200" alt="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') }}
@ -33,7 +33,7 @@
<div class="col-md-4 text-center px-0">
<div class="bg-print border-radius-5 print-edge choose" @click="invoice_form.template='modern'">
<img src="{{ asset('public/img/print_templates/modern.png') }}" class="mb-1 mt-3" height="200" alt="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') }}

View File

@ -41,7 +41,7 @@
{{ Form::invoice_text('quantity_name', trans('settings.invoice.quantity_name'), 'font', $quantity_names, null, [], 'quantity_name_input', null) }}
<div class="form-group col-md-6">
{!! Form::label('invoice_template', trans('settings.invoice.invoice_template'), ['class' => 'form-control-label']) !!}
{!! Form::label('invoice_template', trans_choice('general.templates', 1), ['class' => 'form-control-label']) !!}
<div class="input-group">
<a href="#" class="btn btn-block btn-outline-primary" @click="onTemplate">
@ -75,7 +75,7 @@
:button_cancel="'{{ trans('general.button.save') }}'"
:button_delete="'{{ trans('general.button.cancel') }}'">
<template #modal-body>
@include('modals.settings.template')
@include('modals.settings.invoice_template')
</template>
<template #card-footer>