Change some form styling

master
Nick Sergeant 2012-02-13 01:46:59 -05:00
parent 072df5b333
commit 67990247b6
7 changed files with 30 additions and 17 deletions

View File

@ -22,4 +22,4 @@ South
uuid
Werkzeug
hg+ssh://hg@bitbucket.org/ubernostrum/django-registration#egg=django-registration
hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration

View File

@ -893,7 +893,12 @@ body.static {
div.form-actions {
margin-bottom: 0;
padding-bottom: 0;
@include vertical-gradient(#F5F5F5, #FBFBFB);
a.pull-right {
margin-left: 5px;
}
}
div.alert {
ul {
@ -917,4 +922,12 @@ body.static {
div.alert-alone {
margin: 0;
}
form.form-horizontal {
legend + .control-group {
margin-top: 0;
}
div.form-actions {
margin-top: 27px;
}
}
}

View File

@ -5,7 +5,7 @@
{% block body-class %}{{ block.super }} static{% endblock %}
{% block content %}
<form class="static-box" method="post" action="{% url django.contrib.auth.views.login %}">
<form class="form-horizontal static-box" method="post" action="{% url django.contrib.auth.views.login %}">
<div class="alert alert-info">
<strong>Notice:</strong> OpenID is no longer supported. You can <a href="{% url auth_password_reset %}">reset your password here</a>.
</div>
@ -54,9 +54,9 @@
</div>
</div>
<div class="form-actions group">
<a class="btn" href="{% url auth_password_reset %}">Reset password</a>
<a class="btn" href="/signup/">Sign up</a>
<button class="btn btn-primary pull-right" type="submit">Log in</button>
<a class="btn pull-right" href="{% url auth_password_reset %}">Reset password</a>
<a class="btn pull-right" href="/signup/">Sign up</a>
<button class="btn btn-primary" type="submit">Log in</button>
</div>
</fieldset>
<input type="hidden" name="next" value="{{ next }}" />

View File

@ -24,7 +24,7 @@
<h2 class="title-account">Change Your Password</h2>
<p>If you change your password, make sure to remember it for the next time you login.</p>
</div>
<form method='post' action=''>
<form class="form-horizontal" method='post' action=''>
<div class="fields">
{% csrf_token %}
<div class="field">

View File

@ -6,7 +6,7 @@
{% block content %}
{% if form %}
<form class="static-box" method="post" action="">
<form class="form-horizontal static-box" method="post" action="">
{% if form.errors %}
{% if form.non_field_errors %}
<div class="alert alert-error">
@ -47,7 +47,7 @@
</div>
</div>
<div class="form-actions group">
<button class="btn btn-primary pull-right" type="submit">Set Password</button>
<button class="btn btn-primary" type="submit">Set Password</button>
</div>
{% csrf_token %}
</form>

View File

@ -5,7 +5,7 @@
{% block body-class %}{{ block.super }} static{% endblock %}
{% block content %}
<form class="static-box" method="post" action="">
<form class="form-horizontal static-box" method="post" action="">
{% if form.errors %}
{% if form.non_field_errors %}
<div class="alert alert-error">
@ -32,12 +32,12 @@
{% endif %}
</div>
</div>
<div class="form-actions group">
<a class="btn pull-right" href="/login/">Log in</a>
<a class="btn pull-right" href="/signup/">Sign up</a>
<button class="btn btn-primary" type="submit">Reset password</button>
</div>
</fieldset>
<div class="form-actions group">
<a class="btn" href="/login/">Log in</a>
<a class="btn" href="/signup/">Sign up</a>
<button class="btn btn-primary pull-right" type="submit">Reset password</button>
</div>
{% csrf_token %}
</form>
{% endblock %}

View File

@ -5,7 +5,7 @@
{% block body-class %}{{ block.super }} static{% endblock %}
{% block content %}
<form class="static-box" method="post" action="">
<form class="form-horizontal static-box" method="post" action="">
{% if form.errors %}
{% if form.non_field_errors %}
<div class="alert alert-error">
@ -72,8 +72,8 @@
</div>
</div>
<div class="form-actions group">
<a class="btn" href="/login/">Log in</a>
<button class="btn btn-primary pull-right" type="submit">Sign up</button>
<a class="btn pull-right" href="/login/">Log in</a>
<button class="btn btn-primary" type="submit">Sign up</button>
</div>
</fieldset>
{% csrf_token %}