Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Added remember me option and enabled the resizing of login and signup page #373

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Home/static/home/assets/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body{
font-size:12px;
color:#787878;
-ms-overflow-style:scrollbar;
overflow-x:hidden;
overflow-x:auto;
}

img{
Expand Down
23 changes: 5 additions & 18 deletions registration/static/home/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ body {
background: url('../../registration/../home/img/abstract-wallpapers.jpg') transparent fixed;
background-repeat: no-repeat;
background-size: cover;
-ms-overflow-style:scrollbar;
}

*, *:before, *:after {
Expand All @@ -18,7 +19,8 @@ body {
position: fixed;
top: 0;
right: 0;
padding-left: 50px;
overflow: auto;
padding-left: 200px;
bottom: 0;
left: 0;
opacity: 1;
Expand All @@ -38,22 +40,7 @@ body {
max-width: 550px;
border-radius: 4px;
box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
margin: 90px auto auto 500px;
}

.logmod__close {
display: block;
position: absolute;
right: 50%;
background: url("http://imgh.us/close_white.svg") no-repeat scroll 0% 0% transparent;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
top: -72px;
margin-right: -24px;
width: 48px;
height: 48px;
margin: 90px auto auto auto;
}

.logmod__container {
Expand All @@ -74,7 +61,7 @@ body {
height: 0;
overflow: hidden;
opacity: 0;
visibility: hidden;
visibility: auto;
}

.logmod__tab-wrapper {
Expand Down
28 changes: 17 additions & 11 deletions registration/templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<!-- Template core CSS -->
<link href="{% static 'home/assets/css/template.css' %}" rel="stylesheet">
<link href="{% static 'home/css/login.css' %}" rel="stylesheet">
<link href="{% static 'home/css/style.css' %}" rel="stylesheet">
</head>

<body>
Expand All @@ -56,32 +57,31 @@
{#</div>#}
{#<!-- /PRELOADER -->#}

<!-- Incudes navigation bar. -->
<!-- Includes navigation bar. -->
{% include 'home/../../../Home/templates/base/side-nav.html' %}

<div class="notifications" style="padding-left: 80%;">
<div class="notifications" style="padding-left: 80%; padding-bottom: 25%">
{% if form.errors %}
{% for field in form %}
{% for error in field.errors %}
<div class="alert alert-danger alert-dismissable">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
{{ field.label }}: {{ error|escape }}
</div>
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{{ field.label }}: {{ error|escape }}
</div>
{% endfor %}
{% endfor %}
{% for error in form.non_field_errors %}
<div class="alert alert-danger alert-dismissable">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
{{ error|escape }}
</div>
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{{ error|escape }}
</div>
{% endfor %}
{% endif %}
</div>


<div class="logmod">
<div class="logmod__wrapper">
<span class="logmod__close">Close</span>
<div class="logmod__container">
<ul class="logmod__tabs">
<li data-tabtar="lgm-2"><a href="#">Login</a></li>
Expand Down Expand Up @@ -197,6 +197,12 @@
<span class="hide-password">Show</span>
</div>
</div>
<div class="form-check">
<label class="form-check-label" style=" padding-top: 11px; padding-left: 24px; padding-right: 24px; padding-bottom: 11px;" >
<input type="checkbox" value="True" class="form-check-input">
Remember me
</label>
</div>
<div class="simform__actions">
<input class="sumbit" name="commit" type="submit" value="Log In"/>
<span class="simform__actions-sidetext"><a class="special" role="link"
Expand Down
3 changes: 1 addition & 2 deletions registration/templates/registration/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{#</div>#}
{#<!-- /PRELOADER -->#}

<!-- Incudes navigation bar. -->
<!-- Includes navigation bar. -->
{% include 'home/../../../Home/templates/base/side-nav.html' %}

<div class="notifications" style="padding-left: 80%;">
Expand All @@ -81,7 +81,6 @@

<div class="logmod">
<div class="logmod__wrapper">
<span class="logmod__close">Close</span>
<div class="logmod__container">
<ul class="logmod__tabs">
<li data-tabtar="lgm-1"><a href="#">Sign Up</a></li>
Expand Down
5 changes: 5 additions & 0 deletions registration/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@
TemplateView.as_view(template_name='registration/error.html'),
name="error"
),
url(
r'^remember_me/$',
TemplateView.as_view(template_name='registration/login.html'),
name="remember_me"
),
]