From 036fdc60f622df662cf367d34978e356af97eff1 Mon Sep 17 00:00:00 2001 From: Karen Date: Thu, 13 Oct 2011 16:35:32 +0530 Subject: [PATCH] css styling for contact.html --- itf/frontpage/views.py | 78 ++++----- itf/static/css/noel/inner-details.css | 6 - itf/static/css/noel/inner.css | 6 +- itf/static/css/noel/main.css | 6 + itf/static/css/register.css | 153 ++++++++++++------ itf/templates/registration/contact.html | 12 +- itf/templates/registration/register_base.html | 32 ++-- .../registration/registration_form.html | 33 ++-- itf/templates/search/search.html | 104 ++++++------ 9 files changed, 251 insertions(+), 179 deletions(-) diff --git a/itf/frontpage/views.py b/itf/frontpage/views.py index 728670b..4416273 100755 --- a/itf/frontpage/views.py +++ b/itf/frontpage/views.py @@ -1,39 +1,39 @@ -# Create your views here. -from django.shortcuts import render_to_response -from models import * -from settings import TWITTER_ID -import twitter -from django.template import RequestContext -from django import forms -from django.forms.widgets import Textarea - -class ContactForm(forms.Form): - email = forms.EmailField() - name = forms.CharField(max_length=255) - message = forms.CharField(widget=Textarea(attrs={'cols': 80, 'rows': 20})) - - ''' - class Meta: - widgets = { - 'message': Textarea(attrs={'cols': 80, 'rows': 20}) - } - ''' - -def index(request): - try: - tApi = twitter.Api() - statuses = tApi.GetUserTimeline(TWITTER_ID) - except: - statuses = [] - boxes = SliderBox.objects.all() - return render_to_response("noel/index.html", RequestContext(request, { - 'tweets': statuses[0:5], - 'boxes': boxes - })) - -def contact(request): -# form = ContactForm() - return render_to_response("registration/contact.html", RequestContext(request, { - 'form': ContactForm() - })) - +# Create your views here. +from django.shortcuts import render_to_response +from models import * +from settings import TWITTER_ID +import twitter +from django.template import RequestContext +from django import forms +from django.forms.widgets import Textarea + +class ContactForm(forms.Form): + email = forms.EmailField() + name = forms.CharField(max_length=255) + message = forms.CharField(widget=Textarea(attrs={'cols': 10, 'rows': 6})) + + ''' + class Meta: + widgets = { + 'message': Textarea(attrs={'cols': 80, 'rows': 20}) + } + ''' + +def index(request): + try: + tApi = twitter.Api() + statuses = tApi.GetUserTimeline(TWITTER_ID) + except: + statuses = [] + boxes = SliderBox.objects.all() + return render_to_response("noel/index.html", RequestContext(request, { + 'tweets': statuses[0:5], + 'boxes': boxes + })) + +def contact(request): +# form = ContactForm() + return render_to_response("registration/contact.html", RequestContext(request, { + 'form': ContactForm() + })) + diff --git a/itf/static/css/noel/inner-details.css b/itf/static/css/noel/inner-details.css index ce8db18..def5c91 100755 --- a/itf/static/css/noel/inner-details.css +++ b/itf/static/css/noel/inner-details.css @@ -36,12 +36,6 @@ margin:10px;} {background-color:#f7d76c; padding:0px 2px 1px 1px;} -.orange -{color:#f7bd00; -font-weight:bold; -margin-bottom:8px; -} - .noListTitle a {color:#f7bd00; font-weight:bold; diff --git a/itf/static/css/noel/inner.css b/itf/static/css/noel/inner.css index 0cecbc8..9bf63a0 100755 --- a/itf/static/css/noel/inner.css +++ b/itf/static/css/noel/inner.css @@ -11,7 +11,6 @@ position:relative; #leftColumn {width:296px; -height:620px; /*SANJ to change height in JS according to screen*/ background-color:#FFF; margin-top:-8px; /*had to give this because of shadow*/ margin-bottom:20px; @@ -417,11 +416,16 @@ z-index:1001;} /*must have the highest z-index, just more than the lightbox*/ width:960px; min-height:500px; background-color:#FFF; +-moz-border-radius:12px; +-webkit-border-radius:12px; border-radius:12px; margin-top:-8px; margin-bottom:20px; +margin:0 auto; border-top:1px solid #d3d3d3; border-bottom:1px solid #d3d3d3; +-moz-box-shadow:2px 3px 20px #252425; +-webkit-box-shadow:2px 3px 20px #252425; box-shadow:2px 3px 20px #252425;} diff --git a/itf/static/css/noel/main.css b/itf/static/css/noel/main.css index 8b60ac6..ecac815 100755 --- a/itf/static/css/noel/main.css +++ b/itf/static/css/noel/main.css @@ -29,6 +29,12 @@ color:#8a8a8a;} {font-weight:bold; color:#f7bd00;} +.orange +{color:#f7bd00; +font-weight:bold; +margin-bottom:8px; +} + #search {width:114px; position:absolute; diff --git a/itf/static/css/register.css b/itf/static/css/register.css index 8d1f87e..0be3e42 100755 --- a/itf/static/css/register.css +++ b/itf/static/css/register.css @@ -1,50 +1,103 @@ - - -#wooden -{width:100%; -height:680px; -background:url(/static/images/noel/wooden1.jpg) repeat; -display:table; -overflow:hidden; -position:relative;} - - -#regContent -{width:450px; -background-color:#FFF; -position:absolute; -right:0px; -left:0px; -display: table-cell; vertical-align: middle;margin:0 auto; -padding:30px; --moz-border-radius:20px; --webkit-border-radius:20px; -border-radius:20px; --moz-box-shadow:2px 3px 20px #252425; --webkit-box-shadow:2px 3px 20px #252425; -box-shadow: 2px 3px 20px #252425; -margin-top:100px;} - -table -{margin:0 auto; -margin-bottom:8px;} - -th -{color:#8A8A8A; -font-weight:bold;} - - -.registerLink:link, .registerLink:visited, .registerLink:active - -{text-decoration:none; -font-size:12px; -color:#8A8A8A; -font-weight:bold; -display:block; -padding-left:92px; -padding-bottom:12px;} - -.registerLink:hover -{color:#F7BD00; -font-weight:bold;} - + + +#wooden +{width:100%; +height:680px; +background:url(/static/images/noel/wooden1.jpg) repeat; +display:table; +overflow:hidden; +position:relative; +border-top:1px solid #d3d3d3; +border-bottom:1px solid #d3d3d3; +-moz-box-shadow:2px 3px 20px #252425; +-webkit-box-shadow:2px 3px 20px #252425; +box-shadow:2px 3px 20px #252425;} + + +#regContent +{width:450px; +background-color:#FFF; +position:absolute; +right:0px; +left:0px; +display: table-cell; vertical-align: middle;margin:0 auto; +padding:30px; +-moz-border-radius:20px; +-webkit-border-radius:20px; +border-radius:20px; +-moz-box-shadow:2px 3px 20px #252425; +-webkit-box-shadow:2px 3px 20px #252425; +box-shadow: 2px 3px 20px #252425; +margin-top:100px; +font-family:'Century Gothic', Arial, Helvetica, 'DejaVu Sans', sans-serif; +font-size:15px; +color:#737373;} + +#notMember +{font-size:24px; +padding-bottom:18px; +text-align:center;} + +.orangeForm +{color:#f7bd00;} + +table +{margin:0 auto; +margin-bottom:8px; +font-weight:600; +} + +.registerLink:link, .registerLink:visited, .registerLink:active + +{text-decoration:none; +font-size:12px; +color:#8A8A8A; +font-weight:bold; +display:block; +padding-left:92px; +padding-bottom:12px;} + +.registerLink:hover +{color:#F7BD00; +font-weight:bold;} + +.errorlist +{font-size:12px; +color:#FF8400;} + +#formItf input[type=text], #formItf input[type=password], #formItf textarea { +border:1px solid #e3e3e3; +padding:2px 2px 2px 4px; +width:200px; +-moz-border-radius:6px; +-webkit-border-radius:6px; +border-radius:6px; +-moz-box-shadow:inset 2px 2px 6px #d7d7d7; +-webkit-box-shadow:inset 2px 2px 6px #d7d7d7; +box-shadow:inset 2px 2px 6px #d7d7d7; +margin-bottom:10px;} + +#formItf textarea{ +vertical-align:text-top; + +} + +#formItf input:focus +{outline:none; +border:1px solid #999;} + +#formItf input[type=submit] +{background-color:#f7bd00; +color:#FFF; +font-size:14px; +-moz-border-radius:6px; +-webkit-border-radius:6px; +border-radius:6px; +padding:3px 24px; +border:1px solid transparent; +margin-top:10px;} + +#alreadyUser +{font-size:12px; +margin-left:70px; +} \ No newline at end of file diff --git a/itf/templates/registration/contact.html b/itf/templates/registration/contact.html index 5819a18..45c361f 100644 --- a/itf/templates/registration/contact.html +++ b/itf/templates/registration/contact.html @@ -1 +1,11 @@ -boo +{% extends 'registration/register_base.html' %} + +{% block reg_content %} +
+ + {{ form.as_table }} +
+
+{% endblock %} + + diff --git a/itf/templates/registration/register_base.html b/itf/templates/registration/register_base.html index 306c9e1..31db500 100755 --- a/itf/templates/registration/register_base.html +++ b/itf/templates/registration/register_base.html @@ -1,16 +1,16 @@ -{% extends "noel/base.html" %} -{% block extra_head %} - -{% endblock %} -{% block content %} - -
- -
- - {% block reg_content %} - - {% endblock %} -
-
-{% endblock %} +{% extends "noel/base.html" %} +{% block extra_head %} + +{% endblock %} +{% block content %} + +
+ +
+ + {% block reg_content %} + + {% endblock %} +
+
+{% endblock %} diff --git a/itf/templates/registration/registration_form.html b/itf/templates/registration/registration_form.html index 4c90b98..a7e477a 100755 --- a/itf/templates/registration/registration_form.html +++ b/itf/templates/registration/registration_form.html @@ -1,15 +1,18 @@ -{% extends 'registration/register_base.html' %} - - - -{% block reg_content %} -
- - {{ form.as_table }} - {% csrf_token %} - - - -
-
-{% endblock %} +{% extends 'registration/register_base.html' %} + + + +{% block reg_content %} +

Not a member? Register here.

+
+ + {{ form.as_table }} + {% csrf_token %} + + + +
Already a user? Click here.
+
+ + +{% endblock %} diff --git a/itf/templates/search/search.html b/itf/templates/search/search.html index 625e1f9..2749b88 100755 --- a/itf/templates/search/search.html +++ b/itf/templates/search/search.html @@ -1,51 +1,53 @@ -{% extends 'noel/base.html' %} - -{% block extra_head %} - - -{% endblock %} - - - -{% block content %} -
-
-

Search

- -
- - {{ form.as_table }} - - - - -
  - -
- - {% if query %} -

Results

- - {% for result in page.object_list %} -

- {{ result.object.title }} -

- {% empty %} -

No results found.

- {% endfor %} - - {% if page.has_previous or page.has_next %} -
- {% if page.has_previous %}{% endif %}« Previous{% if page.has_previous %}{% endif %} - | - {% if page.has_next %}{% endif %}Next »{% if page.has_next %}{% endif %} -
- {% endif %} - {% else %} - {# Show some example queries to run, maybe query syntax, something else? #} - {% endif %} -
-
-
-{% endblock %} - +{% extends 'noel/base.html' %} + +{% block extra_head %} + + +{% endblock %} + + + +{% block content %} +
+
+
+

Search

+ +
+ + {{ form.as_table }} + + + + +
  + +
+ + {% if query %} +

Results

+ + {% for result in page.object_list %} +

+ {{ result.object.title }} +

+ {% empty %} +

No results found.

+ {% endfor %} + + {% if page.has_previous or page.has_next %} +
+ {% if page.has_previous %}{% endif %}« Previous{% if page.has_previous %}{% endif %} + | + {% if page.has_next %}{% endif %}Next »{% if page.has_next %}{% endif %} +
+ {% endif %} + {% else %} + {# Show some example queries to run, maybe query syntax, something else? #} + {% endif %} +
+
+
+
+{% endblock %} +