From: Emilie Date: Thu, 1 Dec 2016 18:42:29 +0000 (+0100) Subject: Designing login page X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a05fb1170cd8abd83eb063cfdf108f169d3cb593;p=mezzo.git Designing login page --- diff --git a/app/static/src/sass/global/_forms.scss b/app/static/src/sass/global/_forms.scss index 8a2c510d..17bc3789 100644 --- a/app/static/src/sass/global/_forms.scss +++ b/app/static/src/sass/global/_forms.scss @@ -44,7 +44,7 @@ $module: ".form"; } } - input[type="text"], input[type="email"], textarea { + input[type="text"], input[type="email"], input[type="password"], textarea { @include font-size(m); @include line-height(1); diff --git a/app/templates/accounts/account_form.html b/app/templates/accounts/account_form.html index 1f4d44f8..a2d8b05a 100644 --- a/app/templates/accounts/account_form.html +++ b/app/templates/accounts/account_form.html @@ -1,20 +1,7 @@ -{% extends "base.html" %} {% load i18n mezzanine_tags %} - -{% block meta_title %}{{ title }}{% endblock %} -{% block title %}{{ title }}{% endblock %} -{% block body_id %}account{% endblock %} - -{% block breadcrumb_menu %} -{{ block.super }} -
  • {{ title }}
  • -{% endblock %} - -{% block main %} - {% errors_for form %} -
    +
    {{ title }} {% fields_for form %} @@ -25,4 +12,3 @@
    -{% endblock %} diff --git a/app/templates/accounts/account_login.html b/app/templates/accounts/account_login.html index 5b10cb7b..9bd1a402 100644 --- a/app/templates/accounts/account_login.html +++ b/app/templates/accounts/account_login.html @@ -1,17 +1,28 @@ -{% extends "accounts/account_form.html" %} +{% extends "pages/page.html" %} + {% load i18n %} -{% block main %} +{% block meta_title %} + {% trans "Page not found" %} +{% endblock %} + +{% block page_class %} + custompage +{% endblock %} +{% block page_title %} +

    {% trans "Login" %}

    +{% endblock %} + +{% block page_content %} {% if request.user.is_authenticated %}

    {% trans "You're already logged in. If you'd like to log in as a different user, you'll need to log out first." %}

    {% else %} - {{ block.super }} + {% include 'accounts/account_form.html'%} {% url "signup" as signup_url %}

    {% blocktrans with request.GET.next as next %}If you don't have an account you can sign up for one now.{% endblocktrans %}

    {% url "mezzanine_password_reset" as password_reset_url %} {% url "profile_update" as profile_update_url %} {% blocktrans %}

    You can also reset your password if you've forgotten it.

    {% endblocktrans %}

    {% endif %} - {% endblock %} diff --git a/app/templates/includes/form_fields.html b/app/templates/includes/form_fields.html index f3d8697b..da26ee4c 100644 --- a/app/templates/includes/form_fields.html +++ b/app/templates/includes/form_fields.html @@ -11,8 +11,10 @@ {% else %}
    +

    {% if field.label %}{% endif %} {{ field }} +

    {% if field.errors %}

    {% for e in field.errors %}