Merge remote branch 'origin/trunk_safe' into trunk_safe

This commit is contained in:
Anthony Young 2011-06-22 17:10:59 -07:00
commit 8f613022f0
5 changed files with 25 additions and 7 deletions

View File

@ -50,7 +50,7 @@ def login(request):
if handled: if handled:
return handled return handled
return shortcuts.render_to_response('login_required.html', { return shortcuts.render_to_response('splash.html', {
'form': form, 'form': form,
}, context_instance=template.RequestContext(request)) }, context_instance=template.RequestContext(request))

View File

@ -39,7 +39,7 @@ class UserDeleteForm(forms.SelfHandlingForm):
def handle(self, request, data): def handle(self, request, data):
user_id = data['user'] user_id = data['user']
api.user_delete(request, user_id) api.user_delete(request, user_id)
messages.success(request, messages.info(request,
'%s was successfully deleted.' '%s was successfully deleted.'
% user_id) % user_id)
return redirect(request.build_absolute_uri()) return redirect(request.build_absolute_uri())

View File

@ -6,5 +6,5 @@
{{ field.errors }} {{ field.errors }}
{{ field }} {{ field }}
{% endfor %} {% endfor %}
<input type="submit" value="Submit" class="large-rounded" /> <input type="submit" value="Create User" class="large-rounded" />
</form> </form>

View File

@ -1,3 +1,5 @@
/* @override http://looce.com:8080/media/dashboard/css/style.css */
@import url("reset.css"); @import url("reset.css");
@font-face { @font-face {
@ -216,6 +218,17 @@ border: 1px solid #cbe0e8;
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2); -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2);
} }
#standalone #login_wrapper .status_box {
width: 335px;
margin: 0;
margin-bottom: 25px;
}
#standalone #login_wrapper h2 {
min-width: 65px;
}
#standalone #login_wrapper p {
width: 183px;
}
.clear { .clear {
clear: both; clear: both;
} }
@ -370,7 +383,7 @@ input[readonly="readonly"] {
padding-right: 21px; padding-right: 21px;
} }
.search input[type="text"], .dash_block form input[type="text"], .dash_block form textarea{ .search input[type="text"], .dash_block form input[type="text"], .dash_block form input[type="password"], .dash_block form textarea{
margin-left: -1px; margin-left: -1px;
border: 1px solid #ccc; border: 1px solid #ccc;
height: 31px; height: 31px;
@ -385,7 +398,7 @@ input[readonly="readonly"] {
margin-bottom: 15px; margin-bottom: 15px;
} }
.search input[type="text"]:focus, .modal_window input:focus, .modal_window textarea:focus, .dash_block form input[type="text"]:focus { .search input[type="text"]:focus, .modal_window input:focus, .modal_window textarea:focus, .dash_block form input[type="text"]:focus, .dash_block form input[type="password"]:focus {
outline: none; outline: none;
box-shadow:0 0 3px #41bad4; box-shadow:0 0 3px #41bad4;
-moz-box-shadow:0 0 3px #41bad4; -moz-box-shadow:0 0 3px #41bad4;
@ -1029,8 +1042,8 @@ ol li.first a {
margin-bottom: 5px; margin-bottom: 5px;
} }
.dash_block form input[type="text"] { .dash_block form input[type="text"],.dash_block form input[type="password"] {
width: 284px; width: 309px;
} }
.modal_window .continue_link, .dash_block form input[type="submit"], .dash_block a.more { .modal_window .continue_link, .dash_block form input[type="submit"], .dash_block a.more {

View File

@ -25,6 +25,11 @@ $(function(){
$("#tenant_form input#id__id").example("YetAnotherTenant"); $("#tenant_form input#id__id").example("YetAnotherTenant");
$("#tenant_form textarea#id_description").example("One or two sentence description."); $("#tenant_form textarea#id_description").example("One or two sentence description.");
// update/create tenant
$("#user_form input#id_id").example("username");
$("#user_form input#id_email").example("email@example.com");
$("#user_form input#id_password").example("password");
// table search box // table search box
$("input#table_search").example("Search...") $("input#table_search").example("Search...")
}) })