mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
fix: Rename Template Default to Basic
This commit is contained in:
parent
ec643ca374
commit
bb16c5ab56
@ -59,8 +59,8 @@ module.exports = {
|
||||
fieldname: 'template',
|
||||
label: 'Template',
|
||||
fieldtype: 'Select',
|
||||
options: ['Default', 'Minimal', 'Business'],
|
||||
default: 'Default'
|
||||
options: ['Basic', 'Minimal', 'Business'],
|
||||
default: 'Basic'
|
||||
},
|
||||
{
|
||||
fieldname: 'color',
|
||||
|
@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Default from './Templates/Default';
|
||||
import Basic from './Templates/Basic';
|
||||
import Minimal from './Templates/Minimal';
|
||||
import Business from './Templates/Business';
|
||||
|
||||
@ -12,12 +12,16 @@ export default {
|
||||
props: ['doc', 'printSettings'],
|
||||
computed: {
|
||||
printComponent() {
|
||||
let type = this.printSettings.template || 'Default';
|
||||
return {
|
||||
Default,
|
||||
let type = this.printSettings.template;
|
||||
let templates = {
|
||||
Basic,
|
||||
Minimal,
|
||||
Business
|
||||
}[type];
|
||||
};
|
||||
if (!(type in templates)) {
|
||||
type = 'Basic';
|
||||
}
|
||||
return templates[type];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="border">
|
||||
<div class="border h-full">
|
||||
<div>
|
||||
<div class="px-6 pt-6" v-if="printSettings && accountingSettings">
|
||||
<div class="flex text-sm text-gray-900 border-b pb-4">
|
||||
@ -165,5 +165,3 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<div class="bg-white border" :style="{ 'font-family': printSettings.font }">
|
||||
<div
|
||||
class="bg-white border h-full"
|
||||
:style="{ 'font-family': printSettings.font }"
|
||||
>
|
||||
<div class="flex items-center justify-between px-12 py-10 border-b">
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center rounded h-16">
|
||||
|
Loading…
Reference in New Issue
Block a user