mirror of
https://github.com/frappe/books.git
synced 2025-02-10 07:59:03 +00:00
Title for SettingSection
This commit is contained in:
parent
40d82bf5fd
commit
e7984bcfce
@ -2,7 +2,7 @@ const countryList = Object.keys(require('../../../fixtures/countryInfo.json')).s
|
||||
|
||||
module.exports = {
|
||||
name: "AccountingSettings",
|
||||
label: "AccountingSettings",
|
||||
label: "Accounting Settings",
|
||||
naming: "name", // {random|autoincrement}
|
||||
isSingle: 1,
|
||||
isChild: 0,
|
||||
|
@ -8,3 +8,10 @@ export default {
|
||||
props: ['title']
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.page-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div v-if="doc">
|
||||
<h4 class="mb-3">{{ doctype }}</h4>
|
||||
<h4 class="mb-3">{{ title }}</h4>
|
||||
<form-layout
|
||||
:doc="doc"
|
||||
:fields="fields"
|
||||
@ -20,12 +20,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
doc: null,
|
||||
title: '',
|
||||
fields: []
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
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: {
|
||||
saveDoc() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user