Mercurial > public > sg101
comparison gpp/templates/gcalendar/edit.html @ 6:b6263ac72052
Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 22:50:56 +0000 |
parents | dbd703f7d63a |
children | f408971657b9 |
comparison
equal
deleted
inserted
replaced
5:63696b279e35 | 6:b6263ac72052 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load script_tags %} | |
2 {% block title %}Edit Calendar Events{% endblock %} | 3 {% block title %}Edit Calendar Events{% endblock %} |
3 {% block custom_js %} | 4 {% block custom_js %} |
4 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | 5 {% script_tags "jquery" %} |
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script> | 6 <script type="text/javascript" src="{{ MEDIA_URL }}js/gcalendar_edit.js"></script> |
6 {% endblock %} | 7 {% endblock %} |
7 {% block content %} | 8 {% block content %} |
8 <div class="breadcrumbs"><a href="{% url gcalendar-index %}">Calendar</a> » Edit Events</div> | 9 <div class="breadcrumbs"><a href="{% url gcalendar-index %}">Calendar</a> » Edit Events</div> |
9 <h2>Edit Calendar Events</h2> | 10 <h2>Edit Calendar Events</h2> |