Remove unwanted code / refactor code
This commit is contained in:
parent
c571cf5c1d
commit
dab31aa853
3 changed files with 35 additions and 71 deletions
|
@ -1,41 +1,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<style>
|
|
||||||
.col-lg-12 {
|
|
||||||
background-color: grey;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
.list-inline {
|
|
||||||
background-color: grey;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
<li class="col-lg-12">
|
|
||||||
<a href="#">Home</a>
|
|
||||||
</li>
|
|
||||||
<li class="footer-menu-divider">⋅</li>
|
|
||||||
<li>
|
|
||||||
<a href="#about">How it works</a></li>
|
|
||||||
<li class="footer-menu-divider">⋅</li>
|
|
||||||
<li>
|
|
||||||
<a href="#about">Your infrastructure</a></li>
|
|
||||||
<li>⋅</li>
|
|
||||||
<li>
|
|
||||||
<a href="#about">Our infrastructure</a></li>
|
|
||||||
<li class="footer-menu-divider">⋅</li>
|
|
||||||
<li>
|
|
||||||
<a href="#services">Pricing</a>
|
|
||||||
</li>
|
|
||||||
<li class="footer-menu-divider">⋅</li>
|
|
||||||
<li>
|
|
||||||
<a href="#contact">Contact</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p class="copyright text-muted small">Copyright © ungleich glarus ag {% now "Y" %}. {% trans "All Rights Reserved" %}</p>
|
<p class="copyright text-muted small">Copyright © ungleich glarus ag {% now "Y" %}. {% trans "All Rights Reserved" %}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.container {
|
.container {
|
||||||
background-color: lightgrey;
|
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,43 +1,40 @@
|
||||||
{% extends "base_short.html" %}
|
{% extends "base_short.html" %}
|
||||||
{% load staticfiles %}
|
{% load i18n staticfiles bootstrap3 %}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="auth-container">
|
||||||
<style>
|
<div class="auth-bg"></div>
|
||||||
.auth-footer {
|
<div class="auth-center">
|
||||||
color: black;
|
<div class="auth-content">
|
||||||
}
|
<div class="auth-box">
|
||||||
a:link { color: #000000 }
|
<h1 class="section-heading allcaps">{% trans "Log in" %}</h1>
|
||||||
</style>
|
{% include 'includes/_messages.html' %}
|
||||||
<div class="auth_container">
|
<form action="{% url 'index' %}" method="post" class="form" novalidated>
|
||||||
<div class="auth_bg"></div>
|
{% csrf_token %}
|
||||||
<div class="auth_center">
|
{% for field in form %}
|
||||||
<div class="auth_content">
|
{% bootstrap_field field show_label=False type='fields'%}
|
||||||
<div class="auth-box">
|
{% endfor %}
|
||||||
<h2 class="section-heading allcaps"> Login </h2>
|
<p class="red">{{form.non_field_errors|striptags}}</p>
|
||||||
{% include 'includes/_messages.html' %}
|
<div class="text-center">
|
||||||
<form action={% url 'index' %} method="post" class="form" nonvalidated>
|
<button type="submit" class="btn choice-btn">
|
||||||
{% csrf_token %}
|
{% trans "Log in" %}
|
||||||
<div class="text-center">
|
</button>
|
||||||
<div class="form-group"><label class="sr-only control-label" for="username">Username</label><input class="form-control" type="text" name="username" id="username" placeholder="Username"></div>
|
</div>
|
||||||
<div class="form-group"><label class="sr-only control-label" for="password">Password</label><input class="form-control" type="password" name="password" id="password" placeholder="Password"></div>
|
<input type='hidden' name='next' value='{{request.GET.next}}'/>
|
||||||
<br><br>
|
</form>
|
||||||
<button type="submit" class="btn choice-btn"> Log in </button>
|
<div class="auth-footer">
|
||||||
</div>
|
<div>
|
||||||
</form>
|
{% trans "Don't have an account yet ?" %}
|
||||||
<div class="auth-footer">
|
{# <a href="{% url 'signup' %}">{% trans "Sign up" %}</a>#}
|
||||||
<div>
|
</div>
|
||||||
Don't have an account yet?
|
<div>
|
||||||
<a href={% url 'register' %}> Sign up </a>
|
or <a href="{% url 'reset_password' %}">{% trans "Forgot your password ?" %}</a><br>
|
||||||
</div>
|
{# or <a href="{% url 'resend_activation_link' %}">{% trans "Resend activation link" %}</a>#}
|
||||||
<div>
|
</div>
|
||||||
or <a href={% url 'reset_password' %}> Reset your password </a>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue