Skip to content

Commit

Permalink
Add a URL field. Display it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luís Pedro Coelho committed Oct 19, 2009
1 parent 09ff166 commit 516ffeb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions gitcms/conferences/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Conference(models.Model):
start = models.DateField(u'Start')
end = models.DateField(u'End')
submission_deadline = models.DateField(u'Submission Deadline', blank=True, null=True)
url = models.URLField(u'URL', blank=True, null=True)
comment = models.TextField(u'Comment')
def __unicode__(self):
return self.name
16 changes: 10 additions & 6 deletions gitcms/conferences/templates/conferences/conference_detail.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<div class='conference'>
<p><strong>{{ conference.name }}</strong><br />
{{ conference.location }}<br />
{{ conference.start }} to {{ conference.end }}<br />
{% if conference.submission_deadline %}
<i>Submission deadline</i>: {{ conference.submission_deadline }}
{% endif %}
{% if conference.url %}
<p><a href="{{ conference.url }}"><strong>{{ conference.name }}</strong></a><br />
{% else %}
<p><strong>{{ conference.name }}</strong><br />
{% endif %}
<em>{{ conference.location }}</em><br />
{{ conference.start }} to {{ conference.end }}<br />
{% if conference.submission_deadline %}
<i>Submission deadline</i>: {{ conference.submission_deadline }}
{% endif %}
</p>
</div>

0 comments on commit 516ffeb

Please sign in to comment.