Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2b450c1f
authored
Sep 08, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'login-fix' into 'master'
Login Fix Closes #276
parents
a09339a2
1c9517e6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
63 deletions
+65
-63
circle/templates/registration/base.html
+12
-5
circle/templates/registration/login.html
+4
-5
circle/templates/registration/password_reset_complete.html
+9
-11
circle/templates/registration/password_reset_confirm.html
+18
-18
circle/templates/registration/password_reset_done.html
+8
-10
circle/templates/registration/password_reset_form.html
+14
-14
No files found.
circle/templates/registration/base.html
View file @
2b450c1f
...
...
@@ -11,10 +11,6 @@
body
{
margin-top
:
40px
;
}
.container
{
width
:
600px
;
}
ul
,
li
{
list-style
:
none
;
margin
:
0
;
...
...
@@ -22,6 +18,8 @@
}
.container
>
.content
{
max-width
:
570px
;
margin
:
auto
;
background-color
:
#fff
;
padding
:
20px
;
-webkit-border-radius
:
10px
10px
10px
10px
;
...
...
@@ -38,8 +36,10 @@
}
.login-form
{
margin
-top
:
40px
;
margin
:
20px
auto
0
auto
;
padding
:
0
10px
;
max-width
:
250px
;
}
.login-form
form
{
...
...
@@ -79,3 +79,10 @@
<img
src=
"{{ STATIC_URL}}dashboard/img/logo.png"
style=
"height: 25px;"
/>
</a>
{% endblock %}
{% block content %}
<div
class=
"content"
>
{% block content_box %}{% endblock %}
</div>
{% endblock %}
circle/templates/registration/login.html
View file @
2b450c1f
...
...
@@ -11,15 +11,14 @@
</a>
{% endblock %}
{% block content %}
<div
class=
"content"
>
{% block content_box %}
<div
class=
"row"
>
{% if form.password.errors or form.username.errors %}
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
{% endif %}
<div
class=
"col-
sm
-{% if saml2 %}6{% else %}12{% endif %}"
>
<div
class=
"col-
xs
-{% if saml2 %}6{% else %}12{% endif %}"
>
<div
class=
"login-form"
>
<form
action=
""
method=
"POST"
>
{% csrf_token %}
...
...
@@ -28,8 +27,8 @@
</div>
</div>
{% if saml2 %}
<div
class=
"col-
sm
-6"
>
<h4
style=
"padding-top: 0; margin-top:
0
;"
>
{% trans "Login with SSO" %}
</h4>
<div
class=
"col-
xs
-6"
>
<h4
style=
"padding-top: 0; margin-top:
20px
;"
>
{% trans "Login with SSO" %}
</h4>
<a
href=
"{% url "
saml2_login
"
%}"
>
{% trans "Click here!" %}
</a>
</div>
{% endif %}
...
...
circle/templates/registration/password_reset_complete.html
View file @
2b450c1f
...
...
@@ -5,17 +5,15 @@
{% block title-page %}{% trans "Password reset complete" %}{% endblock %}
{% block content %}
<div
class=
"content"
>
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div
class=
"alert alert-success"
>
{% trans "Password change successful!" %}
<a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Click here to login" %}
</a>
</div>
{% block content_box %}
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div
class=
"alert alert-success"
>
{% trans "Password change successful!" %}
<a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Click here to login" %}
</a>
</div>
</div>
</div>
...
...
circle/templates/registration/password_reset_confirm.html
View file @
2b450c1f
...
...
@@ -5,26 +5,26 @@
{% block title-page %}{% trans "Password reset confirm" %}{% endblock %}
{% block content %}
<div>
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
{% block content_box %}
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div>
{% blocktrans %}
Please enter your new password twice so we can verify you typed it in correctly.
{% endblocktrans %}
</div>
<div
class=
"col-sm-12"
>
<div
style=
"margin: 0 0 25px 0;"
>
{% blocktrans %}Please enter your new password twice so we can verify you typed it in correctly!{% endblocktrans %}
</div>
{% if form %}
{% crispy form %}
{% else %}
<div
class=
"alert alert-warning"
>
{% url "accounts.password-reset" as url %}
{% blocktrans with url=url %}This token is expired, please
<a
href=
"{{ url }}"
>
request
</a>
a new password reset link again!{% endblocktrans %}
</div>
{% endif %}
</div>
{% if form %}
{% crispy form %}
{% else %}
<div
class=
"alert alert-warning"
>
{% url "accounts.password-reset" as url %}
{% blocktrans with url=url %}This token is expired, please
<a
href=
"{{ url }}"
>
request
</a>
a new password reset link again.{% endblocktrans %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
circle/templates/registration/password_reset_done.html
View file @
2b450c1f
...
...
@@ -5,16 +5,14 @@
{% block title-page %}{% trans "Password reset done" %}{% endblock %}
{% block content %}
<div
class=
"content"
>
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div
class=
"pull-right"
><a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Back to login" %}
</a></div>
{% trans "We have sent you an email about your next steps!" %}
</div>
{% block content_box %}
<div
class=
"row"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div
class=
"pull-right"
><a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Back to login" %}
</a></div>
{% trans "We have sent you an email about your next steps." %}
</div>
</div>
{% endblock %}
circle/templates/registration/password_reset_form.html
View file @
2b450c1f
...
...
@@ -5,20 +5,20 @@
{% block title-page %}{% trans "Password reset" %}{% endblock %}
{% block content %}
<div
class=
"
content
"
>
<div
class=
"
row
"
>
<div
class=
"login-form-errors"
>
{% include "display-form-errors.html" %}
</div
>
<div
class=
"
col-sm-12"
>
<div
class=
"pull-right"
><a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Back to login" %}
</a></div
>
<h4
style=
"margin: 0 0 25px 0;"
>
{% blocktrans %}Enter your email address to reset your password!{% endblocktrans %}
</h4>
<form
action=
""
method=
"POST"
>
{% csrf_token %}
{% crispy form
%}
</form>
</
div
>
{% block content
_box
%}
<div
class=
"
row
"
>
<div
class=
"
login-form-errors
"
>
{% include "display-form-errors.html" %}
</div>
<div
class=
"col-sm-12"
>
<div
class=
"
pull-right"
><a
href=
"{% url "
accounts
.
login
"
%}"
>
{% trans "Back to login" %}
</a></div
>
<h4
style=
"margin: 0 0 25px 0;"
>
{% blocktrans %}Enter your email address to reset your password.{% endblocktrans %}
</h4
>
<form
action=
""
method=
"POST"
>
{% csrf_token
%}
{% crispy form %}
</
form
>
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment