More standalone operation stuff.

Stop using `edbob.db.engine`, stop using all edbob templates, etc.
This commit is contained in:
Lance Edgar 2013-09-01 20:25:34 -07:00
parent 2a50e704ef
commit 7d19700c3c
22 changed files with 438 additions and 54 deletions

View file

@ -0,0 +1,34 @@
/******************************
* login.css
******************************/
#logo {
margin: auto;
}
div.form {
margin: auto;
float: none;
text-align: center;
}
div.field-wrapper {
margin: 10px auto;
width: 300px;
}
div.field-wrapper label {
margin: 0px;
padding-top: 3px;
text-align: right;
width: 100px;
}
div.field-wrapper input {
width: 150px;
}
div.buttons input {
margin: auto 5px;
}

View file

@ -0,0 +1,24 @@
$(function() {
$('form').submit(function() {
if (! $('#username').val()) {
with ($('#username').get(0)) {
select();
focus();
}
return false;
}
if (! $('#password').val()) {
with ($('#password').get(0)) {
select();
focus();
}
return false;
}
return true;
});
$('#username').focus();
});

View file

@ -105,6 +105,13 @@ $(function() {
autoExpand: true
});
/*
* Fix buttons.
*/
$('button').button();
$('input[type=submit]').button();
$('input[type=reset]').button();
/*
* When filter labels are clicked, (un)check the associated checkbox.
*/