2
0
mirror of https://github.com/frappe/books.git synced 2025-01-05 16:12:21 +00:00

fix: SetupWizard

- White background
- Placeholders for inputs
This commit is contained in:
Faris Ansari 2019-10-24 10:47:01 +05:30
parent b771d4112e
commit c5fef9442a
6 changed files with 545 additions and 106 deletions

View File

@ -14,6 +14,7 @@ module.exports = {
fieldname: 'country', fieldname: 'country',
label: 'Country', label: 'Country',
fieldtype: 'AutoComplete', fieldtype: 'AutoComplete',
placeholder: 'India',
required: 1, required: 1,
getList: () => Object.keys(countryList).sort() getList: () => Object.keys(countryList).sort()
}, },
@ -22,6 +23,7 @@ module.exports = {
fieldname: 'fullname', fieldname: 'fullname',
label: 'Name', label: 'Name',
fieldtype: 'Data', fieldtype: 'Data',
placeholder: 'John Doe',
required: 1 required: 1
}, },
@ -29,6 +31,7 @@ module.exports = {
fieldname: 'email', fieldname: 'email',
label: 'Email', label: 'Email',
fieldtype: 'Data', fieldtype: 'Data',
placeholder: 'john@doe.com',
required: 1, required: 1,
inputType: 'email' inputType: 'email'
}, },
@ -36,6 +39,7 @@ module.exports = {
{ {
fieldname: 'companyName', fieldname: 'companyName',
label: 'Company Name', label: 'Company Name',
placeholder: 'Acme Inc',
fieldtype: 'Data', fieldtype: 'Data',
required: 1 required: 1
}, },
@ -84,6 +88,7 @@ module.exports = {
fieldname: 'currency', fieldname: 'currency',
label: 'Currency', label: 'Currency',
fieldtype: 'Data', fieldtype: 'Data',
placeholder: 'INR',
formula: doc => { formula: doc => {
if (!doc.country) return; if (!doc.country) return;
return countryList[doc.country].currency; return countryList[doc.country].currency;

View File

@ -61,10 +61,13 @@
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"frappe-charts": "^1.2.4", "frappe-charts": "^1.2.4",
"frappejs": "0.0.10", "frappejs": "https://github.com/frappe/frappejs",
"nodemailer": "^4.7.0", "nodemailer": "^4.7.0",
"popper.js": "^1.14.4", "popper.js": "^1.14.4",
"vue-color": "^2.7.0", "vue-color": "^2.7.0",
"vue-toasted": "^1.1.25" "vue-toasted": "^1.1.25"
},
"devDependencies": {
"electron-builder": "^21.2.0"
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div <div
class="pt-6 pb-2 px-2 h-full block window-drag flex justify-between flex-col" class="pt-6 pb-2 px-2 h-full block window-drag flex justify-between flex-col"
style="background-color: rgba(255, 255, 255, 0.2)" style="background-color: rgba(255, 255, 255, 0.6)"
> >
<div> <div>
<WindowControls class="px-3" /> <WindowControls class="px-3" />

View File

@ -1,9 +1,9 @@
<template> <template>
<div class="px-12 py-10"> <div class="px-12 py-10 flex-1 bg-white">
<h1 class="text-2xl font-semibold">{{ _('Welcome to Frappe Accounting') }}</h1> <h1 class="text-2xl font-semibold">{{ _('Welcome to Frappe Accounting') }}</h1>
<p <p
class="text-gray-600" class="text-gray-600"
>{{ _('Do you need to create a new database or join an existing one?') }}</p> >{{ _('Do you need to create a new database or load an existing one?') }}</p>
<div class="flex mt-10"> <div class="flex mt-10">
<div <div
@click="newDatabase" @click="newDatabase"

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="py-10"> <div class="py-10 flex-1 bg-white">
<div class="px-12"> <div class="px-12">
<h1 class="text-2xl font-semibold">{{ _('Setup your organization') }}</h1> <h1 class="text-2xl font-semibold">{{ _('Setup your organization') }}</h1>
<p class="text-gray-600">{{ _('These settings can be changed later') }}</p> <p class="text-gray-600">{{ _('These settings can be changed later') }}</p>

633
yarn.lock

File diff suppressed because it is too large Load Diff