2
0
mirror of https://github.com/frappe/books.git synced 2024-11-12 16:36:27 +00:00

cleanup style

This commit is contained in:
Rushabh Mehta 2018-01-11 15:30:13 +05:30
parent 1d3ebe7930
commit 1ec185047f
5 changed files with 217 additions and 31 deletions

View File

@ -6,7 +6,7 @@
<title>Document</title> <title>Document</title>
</head> </head>
<body> <body>
<div class='container wrapper'> <div class='container-fluid wrapper'>
</div> </div>
<script src="js/bundle.js"></script> <script src="js/bundle.js"></script>
</body> </body>

View File

@ -18,15 +18,20 @@ window.app = {
this.todo_list = new Page('ToDo List'); this.todo_list = new Page('ToDo List');
this.todo_list.list = new ListView({ this.todo_list.list = new ListView({
doctype: 'ToDo', doctype: 'ToDo',
parent: this.todo_list.body parent: this.todo_list.body,
fields: ['name', 'subject', 'status']
}); });
this.todo_list.list.meta.get_row_html = (data) => {
const sign = data.status === 'Open' ? '✔' : '✘';
return `<p><a href="#edit/todo/${data.name}">${sign} ${data.subject}</a></p>`;
}
} }
}; };
// start server // start server
client.start({ client.start({
server: 'localhost:8000', server: 'localhost:8000',
container: document.querySelector('.container'), container: document.querySelector('.wrapper'),
}).then(() => { }).then(() => {
const todo = require('frappe-core/frappe/models/doctype/todo/todo.js'); const todo = require('frappe-core/frappe/models/doctype/todo/todo.js');
frappe.init_controller('todo', todo); frappe.init_controller('todo', todo);

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,7 @@ html {
.sidebar { .sidebar {
background-color: $gray-100; background-color: $gray-100;
margin-left: -15px;
} }
.main, .sidebar { .main, .sidebar {
@ -34,8 +35,15 @@ html {
display: none !important; display: none !important;
} }
form .alert { .form-body {
margin-top: 1rem; .form-toolbar {
height: 2rem;
margin-bottom: 1rem;
}
.alert {
margin-top: 1rem;
}
} }
textarea.form-control { textarea.form-control {

View File

@ -1,7 +1,7 @@
const server = require('frappe-core/frappe/server'); const server = require('frappe-core/frappe/server');
server.start({ server.start({
backend: 'sqllite', backend: 'sqlite',
connection_params: {db_path: 'test.db'}, connection_params: {db_path: 'test.db'},
static: './' static: './'
}); });