changed for register form embed

This commit is contained in:
Sanj 2011-12-20 15:42:47 +05:30
parent ee03732fc3
commit 91474a3272
2 changed files with 13 additions and 1 deletions

View File

@ -33,6 +33,7 @@ class CommentCaptcha(models.Model):
class Meeting(ItfModel): class Meeting(ItfModel):
title = models.CharField(max_length=255) title = models.CharField(max_length=255)
register_form_embed = models.TextField(blank=True, null=True)
intro = models.TextField(blank=True, null=True) intro = models.TextField(blank=True, null=True)
slug = models.SlugField() slug = models.SlugField()
fts_fields = ['title', 'intro'] fts_fields = ['title', 'intro']
@ -204,6 +205,7 @@ class Document(ItfModel):
talk = models.ForeignKey('Talk', blank=True, null=True) talk = models.ForeignKey('Talk', blank=True, null=True)
is_resource = models.BooleanField() is_resource = models.BooleanField()
subject = models.ForeignKey('DocumentSubject', blank=True, null=True) subject = models.ForeignKey('DocumentSubject', blank=True, null=True)
link = models.URLField(verify_exists=False, blank=True)
fts_fields = ['title', 'intro'] fts_fields = ['title', 'intro']
fk_filters = [] fk_filters = []

View File

@ -23,6 +23,9 @@
{% ifnotequal participants|length 0 %} {% ifnotequal participants|length 0 %}
<li><a href="#participants">Participants</a></li> <li><a href="#participants">Participants</a></li>
{% endifnotequal %} {% endifnotequal %}
{% if meeting.register_form_embed %}
<li><a href="#register">Register</a></li>
{% endif %}
<!-- <li><a href="#comments">Comments</a></li> --> <!-- <li><a href="#comments">Comments</a></li> -->
</ul> </ul>
@ -30,7 +33,9 @@
<div class="tab_container"> <div class="tab_container">
<div id="synopsis" class="tab_content"> <div id="synopsis" class="tab_content">
{{ meeting.intro|markdown }} {{ meeting.intro|markdown }}
<!--
<iframe src="https://docs.google.com/spreadsheet/embeddedform?formkey=dFJqM3hGQWktT0tUbnVPZWhoY1g4N3c6MQ" width="600" height="1969" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe> <iframe src="https://docs.google.com/spreadsheet/embeddedform?formkey=dFJqM3hGQWktT0tUbnVPZWhoY1g4N3c6MQ" width="600" height="1969" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
-->
<!--Content--> <!--Content-->
</div> </div>
@ -144,6 +149,11 @@
</div> </div>
{% endifnotequal %} {% endifnotequal %}
{% if meeting.register_form_embed %}
<div id="register" class="tab_content">
{{ register_form_embed|safe }}
</div>
{% endif %}
</div> </div>