From 4feb5de93af042a3a7e746e4b9edca78b199b775 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Wed, 21 Jul 2010 03:27:56 +0530 Subject: Added get_full_name to event and used in required templates. --- project/scipycon/base/models.py | 3 +++ project/templates/registration/registrations.html | 17 ++++++++++++----- project/templates/user/_usermenu.html | 6 +++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/project/scipycon/base/models.py b/project/scipycon/base/models.py index 9041e77..0e8d7c4 100644 --- a/project/scipycon/base/models.py +++ b/project/scipycon/base/models.py @@ -26,6 +26,9 @@ class Event(models.Model): def __unicode__(self): return '%s %s' % (self.name, self.turn) + def get_full_name(self): + return self.__unicode__() + class Timeline(models.Model): """Timeline of the program diff --git a/project/templates/registration/registrations.html b/project/templates/registration/registrations.html index da8b38a..e15a4a1 100644 --- a/project/templates/registration/registrations.html +++ b/project/templates/registration/registrations.html @@ -6,7 +6,7 @@ Registrations {% block content %} -

Submit Registration

+

Registration Statistics

{% if over_reg %}
@@ -18,9 +18,16 @@ Registrations
{% endif %} -

Currently {{ registrations }} persons have registered to attend SciPy.in 2009.

- -

To attend SciPy.in 2009 please register

- +

+ Currently {{ registrations }} people have registered + to attend {{ event.get_full_name }}. +

+ +{% if not registration %} +

+ To attend {{ event.get_full_name }} please register +

+{% endif %} {% endblock %} diff --git a/project/templates/user/_usermenu.html b/project/templates/user/_usermenu.html index 0360393..46b02a8 100644 --- a/project/templates/user/_usermenu.html +++ b/project/templates/user/_usermenu.html @@ -1,11 +1,15 @@