From 1db87e053348dbdfbd1040f35053964e69bb4d34 Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Sun, 20 Jan 2013 15:08:50 -0500 Subject: [PATCH] drupal integration - added sass files to architecture and plumbed HTML for login and register views --- lms/static/sass/application.scss | 2 + lms/static/sass/multicourse/_login.scss | 0 lms/static/sass/multicourse/_register.scss | 0 lms/templates/login.html | 123 ++++++++++++- lms/templates/register.html | 199 ++++++++++++++++++++- 5 files changed, 320 insertions(+), 4 deletions(-) create mode 100644 lms/static/sass/multicourse/_login.scss create mode 100644 lms/static/sass/multicourse/_register.scss diff --git a/lms/static/sass/application.scss b/lms/static/sass/application.scss index d1dd3d1d4e..273299f6f9 100644 --- a/lms/static/sass/application.scss +++ b/lms/static/sass/application.scss @@ -29,6 +29,8 @@ @import 'multicourse/password_reset'; @import 'multicourse/error-pages'; @import 'multicourse/help'; +@import 'multicourse/login'; +@import 'multicourse/register'; @import 'discussion'; @import 'news'; diff --git a/lms/static/sass/multicourse/_login.scss b/lms/static/sass/multicourse/_login.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lms/static/sass/multicourse/_register.scss b/lms/static/sass/multicourse/_register.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lms/templates/login.html b/lms/templates/login.html index 3fa28b9f72..fe46f54cb4 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -1,6 +1,125 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> -<%block name="title">login +<%block name="title">Log into your edX Account -Hello world +<%block name="js_extra"> + + + +
+
+
+

Log Into Your edX Account

+
+
+ +
+
+ +
+ +
+ + + + + + + + +
+ + +
    +
  1. + + +
  2. +
  3. + + + Forgot password? +
  4. +
+
+ +
+ + +
    +
  1. + + +
  2. +
+
+ +
+ + % if has_extauth_info is UNDEFINED: + Not enrolled? Register + % endif +
+
+
+ + +
diff --git a/lms/templates/register.html b/lms/templates/register.html index 82be5db85d..6bfe92b67e 100644 --- a/lms/templates/register.html +++ b/lms/templates/register.html @@ -1,7 +1,202 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> -<%block name="title">register +<%! from django.core.urlresolvers import reverse %> +<%! from django_countries.countries import COUNTRIES %> +<%! from student.models import UserProfile %> +<%! from datetime import date %> +<%! import calendar %> -Hello world +<%block name="title">Register for edX +<%block name="js_extra"> + + + +
+
+
+

Register for edX

+
+
+ +
+
+ +
+ +
+ + + + + + +

+ Please complete the following fields to register for an edX account. Required fields are noted by bold text and an asterisk (*). +

+ +
+ + + % if has_extauth_info is UNDEFINED: + +
    +
  1. + + +
  2. +
  3. + + +
  4. +
  5. + + + Will be shown in any discussions or forums you participate in +
  6. +
  7. + + + Needed for any certificates you earn +
  8. +
+ + % else: + +
+

Welcome ${extauth_email}

+

Enter a public username:

+
+ +
    +
  1. + + + Will be shown in any discussions or forums you participate in +
  2. +
+ + % endif +
+ +
+ + +
    +
  1. + + +
  2. + +
  3. + + +
  4. + +
  5. + + +
  6. +
+
+ +
+ + +
    +
  1. + + +
  2. + +
  3. + + +
  4. +
+
+ +
+ + +
    +
  1. + + +
  2. + +
  3. + + +
  4. +
+
+ +
+ + % if has_extauth_info is UNDEFINED: + + % endif +
+
+
+ + +
\ No newline at end of file