mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: Add placeholders for Item fields
This commit is contained in:
parent
ebc8693c69
commit
b9e52917be
@ -8,6 +8,7 @@ module.exports = {
|
|||||||
fieldname: 'name',
|
fieldname: 'name',
|
||||||
label: 'Item Name',
|
label: 'Item Name',
|
||||||
fieldtype: 'Data',
|
fieldtype: 'Data',
|
||||||
|
placeholder: 'Item Name',
|
||||||
required: 1
|
required: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -27,6 +28,7 @@ module.exports = {
|
|||||||
label: 'Income',
|
label: 'Income',
|
||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
target: 'Account',
|
target: 'Account',
|
||||||
|
placeholder: 'Sales',
|
||||||
required: 1,
|
required: 1,
|
||||||
getFilters: query => {
|
getFilters: query => {
|
||||||
return {
|
return {
|
||||||
@ -40,6 +42,7 @@ module.exports = {
|
|||||||
label: 'Expense',
|
label: 'Expense',
|
||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
target: 'Account',
|
target: 'Account',
|
||||||
|
placeholder: 'Cost of Goods Sold',
|
||||||
required: 1,
|
required: 1,
|
||||||
getFilters: query => {
|
getFilters: query => {
|
||||||
return {
|
return {
|
||||||
@ -59,12 +62,14 @@ module.exports = {
|
|||||||
fieldname: 'tax',
|
fieldname: 'tax',
|
||||||
label: 'Tax',
|
label: 'Tax',
|
||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
target: 'Tax'
|
target: 'Tax',
|
||||||
|
placeholder: 'GST'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: 'rate',
|
fieldname: 'rate',
|
||||||
label: 'Rate',
|
label: 'Rate',
|
||||||
fieldtype: 'Currency'
|
fieldtype: 'Currency',
|
||||||
|
placeholder: '0.00'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
quickEditFields: [
|
quickEditFields: [
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
:class="inputClasses"
|
:class="inputClasses"
|
||||||
type="text"
|
type="text"
|
||||||
:value="linkValue"
|
:value="linkValue"
|
||||||
:placeholder="placeholder"
|
:placeholder="inputPlaceholder"
|
||||||
:readonly="df.readOnly"
|
:readonly="df.readOnly"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
:class="inputClasses"
|
:class="inputClasses"
|
||||||
:type="inputType"
|
:type="inputType"
|
||||||
:value="value"
|
:value="value"
|
||||||
:placeholder="placeholder || df.placeholder"
|
:placeholder="inputPlaceholder"
|
||||||
:readonly="df.readOnly"
|
:readonly="df.readOnly"
|
||||||
@blur="e => triggerChange(e.target.value)"
|
@blur="e => triggerChange(e.target.value)"
|
||||||
/>
|
/>
|
||||||
@ -30,6 +30,9 @@ export default {
|
|||||||
},
|
},
|
||||||
'focus:outline-none focus:bg-gray-200 rounded-5px w-full text-gray-900'
|
'focus:outline-none focus:bg-gray-200 rounded-5px w-full text-gray-900'
|
||||||
];
|
];
|
||||||
|
},
|
||||||
|
inputPlaceholder() {
|
||||||
|
return this.placeholder || this.df.placeholder
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user