2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +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>
</head>
<body>
<div class='container wrapper'>
<div class='container-fluid wrapper'>
</div>
<script src="js/bundle.js"></script>
</body>

View File

@ -18,15 +18,20 @@ window.app = {
this.todo_list = new Page('ToDo List');
this.todo_list.list = new ListView({
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
client.start({
server: 'localhost:8000',
container: document.querySelector('.container'),
container: document.querySelector('.wrapper'),
}).then(() => {
const todo = require('frappe-core/frappe/models/doctype/todo/todo.js');
frappe.init_controller('todo', todo);

File diff suppressed because one or more lines are too long

View File

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

View File

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