mirror of
https://github.com/frappe/books.git
synced 2024-11-08 23:00:56 +00:00
cleanup style
This commit is contained in:
parent
1d3ebe7930
commit
1ec185047f
@ -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>
|
||||
|
9
index.js
9
index.js
@ -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);
|
||||
|
215
js/bundle.js
215
js/bundle.js
File diff suppressed because one or more lines are too long
@ -24,6 +24,7 @@ html {
|
||||
|
||||
.sidebar {
|
||||
background-color: $gray-100;
|
||||
margin-left: -15px;
|
||||
}
|
||||
|
||||
.main, .sidebar {
|
||||
@ -34,9 +35,16 @@ html {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
form .alert {
|
||||
.form-body {
|
||||
.form-toolbar {
|
||||
height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
line-height: 1.5;
|
||||
|
Loading…
Reference in New Issue
Block a user