Change some form styling
parent
072df5b333
commit
67990247b6
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 }}" />
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue