2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00

fix(ui): Notes display in templates

This commit is contained in:
18alantom 2022-04-04 12:08:47 +05:30
parent 2db6dba73e
commit d3af272bcc
3 changed files with 29 additions and 18 deletions

View File

@ -86,7 +86,7 @@
<div class="px-6 mt-2 flex justify-end text-base"> <div class="px-6 mt-2 flex justify-end text-base">
<div class="w-1/2 bg-pink"> <div class="w-1/2 bg-pink">
<div <div
class="uppercase text-sm tracking-widest font-semibold text-gray-800 mt-2" class="text-sm tracking-widest text-gray-600 mt-2"
> >
Notes Notes
</div> </div>

View File

@ -113,16 +113,14 @@
</div> </div>
</div> </div>
<div class="mt-12" v-if="doc.terms"> <div class="mt-12" v-if="doc.terms">
<template>
<div <div
class="uppercase text-sm tracking-widest font-semibold text-gray-800" class="text-lg font-semibold"
> >
Notes Notes
</div> </div>
<div class="mt-4 text-lg whitespace-pre-line"> <div class="mt-4 text-lg whitespace-pre-line">
{{ doc.terms }} {{ doc.terms }}
</div> </div>
</template>
</div> </div>
</div> </div>
</div> </div>

View File

@ -57,7 +57,14 @@
</div> </div>
<div class="w-1/2" v-if="companyAddress"> <div class="w-1/2" v-if="companyAddress">
<div <div
class="uppercase text-sm font-semibold tracking-widest text-gray-800 ml-8" class="
uppercase
text-sm
font-semibold
tracking-widest
text-gray-800
ml-8
"
> >
{{ isSalesInvoice ? 'From' : 'To' }} {{ isSalesInvoice ? 'From' : 'To' }}
</div> </div>
@ -74,7 +81,15 @@
</div> </div>
<div class="px-12 py-10 border-b"> <div class="px-12 py-10 border-b">
<div <div
class="mb-4 flex uppercase text-sm tracking-widest font-semibold text-gray-800" class="
mb-4
flex
uppercase
text-sm
tracking-widest
font-semibold
text-gray-800
"
> >
<div class="w-4/12">Item</div> <div class="w-4/12">Item</div>
<div class="w-2/12 text-right">Quantity</div> <div class="w-2/12 text-right">Quantity</div>
@ -89,8 +104,7 @@
</div> </div>
</div> </div>
<div class="flex px-12 py-10"> <div class="flex px-12 py-10">
<div class="w-1/2"> <div class="w-1/2" v-if="doc.terms">
<template v-if="doc.terms">
<div <div
class="uppercase text-sm tracking-widest font-semibold text-gray-800" class="uppercase text-sm tracking-widest font-semibold text-gray-800"
> >
@ -99,7 +113,6 @@
<div class="mt-4 text-lg whitespace-pre-line"> <div class="mt-4 text-lg whitespace-pre-line">
{{ doc.terms }} {{ doc.terms }}
</div> </div>
</template>
</div> </div>
<div class="w-1/2 text-lg"> <div class="w-1/2 text-lg">
<div class="flex pl-2 justify-between py-1"> <div class="flex pl-2 justify-between py-1">
@ -131,6 +144,6 @@ import Base from './Base';
export default { export default {
name: 'Minimal', name: 'Minimal',
extends: Base extends: Base,
}; };
</script> </script>