changed for register form embed
This commit is contained in:
parent
ee03732fc3
commit
91474a3272
|
@ -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 = []
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
{% ifnotequal participants|length 0 %}
|
||||
<li><a href="#participants">Participants</a></li>
|
||||
{% endifnotequal %}
|
||||
{% if meeting.register_form_embed %}
|
||||
<li><a href="#register">Register</a></li>
|
||||
{% endif %}
|
||||
|
||||
<!-- <li><a href="#comments">Comments</a></li> -->
|
||||
</ul>
|
||||
|
@ -30,7 +33,9 @@
|
|||
<div class="tab_container">
|
||||
<div id="synopsis" class="tab_content">
|
||||
{{ 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>
|
||||
-->
|
||||
<!--Content-->
|
||||
</div>
|
||||
|
||||
|
@ -144,6 +149,11 @@
|
|||
</div>
|
||||
{% endifnotequal %}
|
||||
|
||||
{% if meeting.register_form_embed %}
|
||||
<div id="register" class="tab_content">
|
||||
{{ register_form_embed|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user