mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Title for SettingSection
This commit is contained in:
parent
40d82bf5fd
commit
e7984bcfce
@ -8,3 +8,10 @@ export default {
|
|||||||
props: ['title']
|
props: ['title']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
.page-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="doc">
|
<div v-if="doc">
|
||||||
<h4 class="mb-3">{{ doctype }}</h4>
|
<h4 class="mb-3">{{ title }}</h4>
|
||||||
<form-layout
|
<form-layout
|
||||||
:doc="doc"
|
:doc="doc"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
@ -20,12 +20,15 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
doc: null,
|
doc: null,
|
||||||
|
title: '',
|
||||||
fields: []
|
fields: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.doc = await frappe.getDoc(this.doctype);
|
this.doc = await frappe.getDoc(this.doctype);
|
||||||
this.fields = frappe.getMeta(this.doctype).fields;
|
const meta = frappe.getMeta(this.doctype);
|
||||||
|
this.fields = meta.fields;
|
||||||
|
this.title = meta.label;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
saveDoc() {
|
saveDoc() {
|
||||||
|
Loading…
Reference in New Issue
Block a user