From 1deed46d34b9c70eb782e30add967b4be4b88466 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 17 Jan 2015 14:04:10 +0100 Subject: [PATCH] add templates for anonymous user dashboard and login --- gnuviechadmin/templates/dashboard/index.html | 14 ++++++++++++++ gnuviechadmin/templates/registration/login.html | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gnuviechadmin/templates/dashboard/index.html create mode 100644 gnuviechadmin/templates/registration/login.html diff --git a/gnuviechadmin/templates/dashboard/index.html b/gnuviechadmin/templates/dashboard/index.html new file mode 100644 index 0000000..fb00db6 --- /dev/null +++ b/gnuviechadmin/templates/dashboard/index.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% load i18n %} +{% block title %}{{ block.super }} - {% trans "Welcome" %}{% endblock title %} +{% block page_title %}{% trans "Welcome to our customer self service" %}{% endblock page_title %} +{% block content %} +{% if user.is_authenticated %} +

{% url 'customer_dashboard' slug=user.username as dashboard_url %}{% blocktrans with full_name=user.get_full_name %}Hello {{ full_name }},
+You can visit your Dashboard to view and modify your hosting options. +{% endblocktrans %}

+{% else %} +

{% trans "This is your entry to our customer self service sytem." %}

+

{% url 'login' as login_url %}{% url 'dashboard' as dashboard_url %}{% blocktrans %}If you are already a customer you can Sign in to view and modify your hosting options.{% endblocktrans %}

+{% endif %} +{% endblock content %} diff --git a/gnuviechadmin/templates/registration/login.html b/gnuviechadmin/templates/registration/login.html new file mode 100644 index 0000000..6f21196 --- /dev/null +++ b/gnuviechadmin/templates/registration/login.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% load i18n crispy_forms_tags %} +{% block title %}{{ block.super }} - {% trans "Sign in" %}{% endblock title %} +{% block page_title %}{% trans "Sign In" %}{% endblock %} +{% block content %} +
+{% csrf_token %} + +{{ form|crispy }} + +
+{% endblock %}