From 91474a3272f4e2c48414cd1223d4b2fe525d4691 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 20 Dec 2011 15:42:47 +0530 Subject: [PATCH] changed for register form embed --- itf/festival/models.py | 2 ++ itf/templates/modules/festival/meeting.html | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/itf/festival/models.py b/itf/festival/models.py index 04ee628..72144a3 100755 --- a/itf/festival/models.py +++ b/itf/festival/models.py @@ -33,6 +33,7 @@ class CommentCaptcha(models.Model): class Meeting(ItfModel): title = models.CharField(max_length=255) + register_form_embed = models.TextField(blank=True, null=True) intro = models.TextField(blank=True, null=True) slug = models.SlugField() fts_fields = ['title', 'intro'] @@ -204,6 +205,7 @@ class Document(ItfModel): talk = models.ForeignKey('Talk', blank=True, null=True) is_resource = models.BooleanField() subject = models.ForeignKey('DocumentSubject', blank=True, null=True) + link = models.URLField(verify_exists=False, blank=True) fts_fields = ['title', 'intro'] fk_filters = [] diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index 226c9ba..a4da9a5 100755 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -23,6 +23,9 @@ {% ifnotequal participants|length 0 %}
  • Participants
  • {% endifnotequal %} + {% if meeting.register_form_embed %} +
  • Register
  • + {% endif %} @@ -30,7 +33,9 @@
    {{ meeting.intro|markdown }} - +
    @@ -144,6 +149,11 @@
    {% endifnotequal %} + {% if meeting.register_form_embed %} +
    + {{ register_form_embed|safe }} +
    + {% endif %}