Permalink
Browse files

Deleted redundant templates

  • Loading branch information...
1 parent f026d42 commit a8aa7fe129925161dc8a89f99f219d8c7f877c55 @bartekgorny bartekgorny committed Oct 13, 2009
Showing with 55 additions and 728 deletions.
  1. +0 −1 project_sample/templates/schedule/_create_event_options.html
  2. +0 −24 project_sample/templates/schedule/_daily_table.html
  3. +0 −39 project_sample/templates/schedule/_day_cell.html
  4. +0 −32 project_sample/templates/schedule/_detail.html
  5. +0 −42 project_sample/templates/schedule/_dialogs.html
  6. +0 −40 project_sample/templates/schedule/_event_options.html
  7. +0 −1 project_sample/templates/schedule/_event_title.html
  8. +0 −21 project_sample/templates/schedule/_month_table.html
  9. +0 −11 project_sample/templates/schedule/_prevnext.html
  10. +0 −8 project_sample/templates/schedule/base.html
  11. +0 −29 project_sample/templates/schedule/calendar.html
  12. +0 −6 project_sample/templates/schedule/calendar_compact_month.html
  13. +0 −38 project_sample/templates/schedule/calendar_day.html
  14. +0 −10 project_sample/templates/schedule/calendar_list.html
  15. +0 −24 project_sample/templates/schedule/calendar_month.html
  16. +0 −30 project_sample/templates/schedule/calendar_tri_month.html
  17. +0 −46 project_sample/templates/schedule/calendar_week.html
  18. +0 −39 project_sample/templates/schedule/calendar_year.html
  19. +0 −16 project_sample/templates/schedule/cancel_occurrence.html
  20. +0 −16 project_sample/templates/schedule/create_event.html
  21. +0 −15 project_sample/templates/schedule/delete_event.html
  22. +0 −16 project_sample/templates/schedule/edit_occurrence.html
  23. +0 −57 project_sample/templates/schedule/event.html
  24. +0 −40 project_sample/templates/schedule/event_form_base.html
  25. +0 −42 project_sample/templates/schedule/occurrence.html
  26. +1 −1 schedule/templates/schedule/_create_event_options.html
  27. +9 −9 schedule/templates/schedule/_event_options.html
  28. +4 −4 schedule/templates/schedule/_prevnext.html
  29. +4 −19 schedule/templates/schedule/base.html
  30. +25 −41 schedule/templates/schedule/calendar.html
  31. +3 −3 schedule/templates/schedule/event.html
  32. +6 −5 schedule/templates/schedule/event_form_base.html
  33. +3 −3 schedule/templates/schedule/occurrence.html
@@ -1 +0,0 @@
-<a href="{{ create_event_url }}&next={{here}}"><img border="0" src="{{ MEDIA_URL }}add.png" alt="Add Event"></a>
@@ -1,24 +0,0 @@
-{% load scheduletags %}
- <div class="slot_column" style="width:{{width_slot}}px;height:{{height}}px;">
- {% for slot in slots %}
- <div class="slot" style="top:{{slot.top}}px;height:{{slot.height}}px;width:{{width}}px;">
- <span class="time">{{ slot.start|time:"G:i" }}</span>
- {% if addable %}
- {% create_event_url calendar slot.start %}
- {% endif %}
- </div>
- {% endfor %}
- </div>
- <div class="occ_column" style="left:{{width_slot}}px;width:{{width_occ}}px;height:{{height}}px;">
- {% for occ in occurrences %}
- <div href="#{% hash_occurrence occ %}" class="occ type{{occ.cls}}{% if occ.cancelled %} cancelled{% endif %}"
- style="top:{{occ.top}}px;left:{{occ.left}}px;width:{{occ.width}}px;height:{{occ.height}}px;" onclick="openDetail(this);">
- {% options occ %}
- {% title occ %}
-
- </div>
- <div id="{% hash_occurrence occ %}" style="display:none;">
- {% detail occ %}
- </div>
- {% endfor %}
- </div>
@@ -1,39 +0,0 @@
-{% load scheduletags %}
-{% ifnotequal day.start.month month.start.month %}
- <td class="{{size}} daynumber noday"></td>
-{% else %}
- {% if day.has_occurrences %}
- <td class="{{size}} daynumber busy">
- {% else %}
- <td class="{{size}} daynumber free">
-{% endif %}
- <div class="header">
- <a href="{% url day_calendar calendar.slug %}{% querystring_for_date day.start 3 %}">
- <b>{{day.start.day}}</b>
- </a>
- </div>
- {% ifnotequal size "small" %}
- <div class="daycell">
- {% if day.has_occurrences %}
- {% for o in day.get_occurrence_partials %}
- <div class="eventcell eventcell{{o.class}}{% if o.occurrence.cancelled %} cancelled{% endif %}"
- href="#{% hash_occurrence o.occurrence %}" onclick="openDetail(this);">
- <div class="starttime">
- {% ifequal o.class 0 %}{{ o.occurrence.start|time:"G:i" }}{% endifequal %}
- {% ifequal o.class 1 %}{{ o.occurrence.start|time:"G:i" }}{% endifequal %}
- {% ifequal o.class 2 %}(All day){% endifequal %}
- {% ifequal o.class 3 %}Ends at {{ o.occurrence.end|time:"G:i" }}{% endifequal %}
- </div>
- <div class="eventdesc">
- {% title o.occurrence %}
- </div>
- </div>
- <div id="{% hash_occurrence o.occurrence %}" style="display:none;">
- {% detail o.occurrence %}
- </div>
- {% endfor %}
- {% endif %}
- </div>
- {% endifnotequal %}
-</td>
-{% endifnotequal %}
@@ -1,32 +0,0 @@
-{% load i18n %}
-<div class="detail">
-<h2 align="center">{{occurrence.title}}</h2>
-<table align="center">
- <tr>
- <td class="left">Starts</td>
- <td>{% blocktrans with occurrence.start|date:_("DATETIME_FORMAT") as start_date %}{{ start_date }}{% endblocktrans %}</td>
- </tr>
- <tr>
- <td class="left">Ends</td>
- <td>{% blocktrans with occurrence.end|date:_("DATETIME_FORMAT") as end_date %}{{ end_date }}{% endblocktrans %}</td>
- </tr>
- {% if occurrence.event.rule %}
- {% if not occurrence.id %}
- <tr>
- <td class="left">Reoccurs</td><td>{{occurrence.event.rule}}</td>
- </tr>
- {% if occurrence.event.end_recurring_period %}
- <tr>
- <td class="left">Until</td>
- <td>{% blocktrans with occurrence.event.end_recurring_period|date:_("DATETIME_FORMAT") as end_date %}{{ end_date }}{% endblocktrans %}</td>
- </tr>
- {% endif %}
- {% endif %}
- {% endif %}
-</table>
-{% if occurrence.description %}
-<h3>Description</h3>
-<p>{{occurrence.description}}</p>
-{% endif %}
-</div>
-
@@ -1,42 +0,0 @@
-{% block extra_head %}
-{{block.super}}
-<script>
-function openCancelDialog(node, cancel_url, delete_url, event){
- event.stopPropagation();
- var btns = {"This":function(){window.location=cancel_url;}, "All":function(){window.location=delete_url}, "Do nothing":function(){$(this).dialog("destroy");}};
- dia = $("#delete_dialog").dialog({'buttons':btns, 'modal':true});
- dia.dialog('open');
- return false;
-}
-
-function openEditDialog(node, occurrence_url, event_url, event){
- event.stopPropagation();
- var btns = {"This":function(){window.location=occurrence_url;}, "All":function(){window.location=event_url}, "Do nothing":function(){$(this).dialog("destroy");}};
- dia = $("#edit_dialog").dialog({'buttons':btns, 'modal':true});
- dia.dialog('open');
- return false;
-}
-
-function openDetail(node){
- var btns = { "Close":function(){$(this).dialog("destroy");}};
- dia = $($(node).attr("href")).dialog({'buttons':btns, 'modal':true, 'title':'Details'});
- dia.dialog('open');
- return false;
-}
-
-function openURL(url, event){
- event.stopPropagation();
- window.location=url;
-}
-</script>
-{% endblock %}
-
-
-<div style="display:none;" id="delete_dialog" title="Question">
- Do you want to cancel this occurrence or delete all occurrences of this event?
-</div>
-
-<div style="display:none;" id="edit_dialog" title="This is a recurring event">
- Do you want to edit this occurrence or all occurrences?
-</div>
-
@@ -1,40 +0,0 @@
-<span class="actions">
-{% if edit_event %}
-<span class="edit">
-{% if occurrence.event.rule %}
- {% if occurrence.id %}
- <a href="#" onclick="openURL('{{ edit_occurrence }}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}pencil.png" alt="Edit Event">
- </a>
- {% else %}
- <a href="#" onclick="openEditDialog(this, '{{ edit_occurrence }}?next={{here}}', '{{edit_event}}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}pencil.png" alt="Edit Event">
- </a>
- {% endif %}
-{% else %}
- <a href="#" onclick="openURL('{{ edit_event }}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}pencil.png" alt="Edit Event">
- </a>
-{% endif %}
-{% endif %}
-</span>
-{% if delete_event %}
-<span class="delete">
-{% if occurrence.event.rule %}
- {% if occurrence.id %}
- <a href="#" onclick="openURL('{{cancel_occurrence}}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}delete.png" alt="Delete Event">
- </a>
- {% else %}
- <a href="#" onclick="openCancelDialog(this, '{{ cancel_occurrence }}?next={{here}}', '{{delete_event}}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}delete.png" alt="Delete Event">
- </a>
- {% endif %}
-{% else %}
-<a href="#" onclick="openURL('{{delete_event}}?next={{here}}', event);">
- <img border="0" src="{{MEDIA_URL}}delete.png" alt="Delete Event">
-</a>
-{% endif %}
-{% endif %}
-</span>
-</span>
@@ -1 +0,0 @@
-<span class="title">{{occurrence.title}}</span>
@@ -1,21 +0,0 @@
-{% load scheduletags %}
-<table align="center" class="calendar">
-{% if day_names %}
-<tr class="daysofweek">
-<td>&nbsp;</td>
- {% for day_name in day_names %}<td{% ifnotequal size "small" %} width='120'{% endifnotequal %}>{{ day_name }}</td>
-{% endfor %}
-{% endif %}
-{% for week in month.get_weeks %}
- <tr>
- <td>
- <a href="{% url week_calendar calendar.slug %}{% querystring_for_date week.start %}">
- {{week.start|date:"W"}}
- </a>
- </td>
- {% for day in week.get_days %}
- {% day_cell calendar day month size %}
- {% endfor %}
- </tr>
-{% endfor %}
-</table>
@@ -1,11 +0,0 @@
-{% load scheduletags %}
-<div class="prevnext">
- <a href="{% prev_url target slug period %}">
- <img align="top" border="0" src="/site_media/left_mod.png"/>
- </a>
- &nbsp; <b>{{period_name}}</b> &nbsp;
- <a href="{% next_url target slug period %}">
- <img align="top" border="0" src="/site_media/right_mod.png"/>
- </a>
-</div>
-
@@ -1,8 +0,0 @@
-{% extends "site_base.html" %}
-{% block extra_head %}
-{{ block.super }}
-<link rel="stylesheet" href="{{ MEDIA_URL }}schedule.css" type="text/css" media="screen" />
-<link rel="stylesheet" href="{{ MEDIA_URL }}jquery-ui.css" type="text/css" media="screen" />
-<script type="text/javascript" src="{{ MEDIA_URL }}jquery.js"></script>
-<script type="text/javascript" src="{{ MEDIA_URL }}jquery-ui.js"></script>
-{% endblock %}
@@ -1,29 +0,0 @@
-{% extends "schedule/base.html" %}
-{% load i18n %}
-{% load scheduletags %}
-
-
-{% block body %}
-
-<h1>Calendar metadata</h1>
-
-<p>Name: {{calendar.name}}</p>
-<p>Slug: {{calendar.slug}}</p>
-<p>Event count: {{calendar.events.count}}</p>
-
-<div>
- <p>See as:</p>
- <ul>
- <li><a href="{% url compact_calendar calendar.slug %}">Small Month</a></li>
- <li><a href="{% url month_calendar calendar.slug %}">1 Month</a></li>
- <li><a href="{% url tri_month_calendar calendar.slug %}">3 Months</a></li>
- <li><a href="{% url year_calendar calendar.slug %}">This Year</a></li>
- <li><a href="{% url week_calendar calendar.slug %}">Weekly</a></li>
- <li><a href="{% url day_calendar calendar.slug %}">Daily</a></li>
- <li><a href="/schedule/feed/calendar/upcoming/{{ calendar.id }}/">Feed</a></li>
- </ul>
-</div>
-
-<div><i>Now see docstring for schedule.views.calendar</i></div>
-
-{% endblock %}
@@ -1,6 +0,0 @@
-{% extends "schedule/base.html" %}
-{% load scheduletags %}
-{% block body %}
-<p align="center"><b>{{ calendar.name }}</b></p>
-{% month_table calendar periods.month "small" %}
-{% endblock %}
@@ -1,38 +0,0 @@
-{% extends "schedule/base.html" %}
-{% load scheduletags %}
-
-
-{% block body %}
-
-{% include "schedule/_dialogs.html" %}
-<div class="navigation">
- <a href="{% url week_calendar calendar.slug %}{% querystring_for_date periods.day.start 3 %}">
- Week
- </a>
- <a href="{% url month_calendar calendar.slug %}{% querystring_for_date periods.day.start 2 %}">
- Month
- </a>
- <a href="{% url year_calendar calendar.slug %}{% querystring_for_date periods.day.start 1%}">
- Year
- </a>
-</div>
-<div class="tablewrapper">
- <div class="calendarname">{{ calendar.name }}</div>
- {% prevnext "day_calendar" calendar.slug periods.day "l, F d, Y" %}
- <div class="now">
- <a href="{% url day_calendar calendar.slug %}">
- Today
- </a>
- </div>
-</div>
-<div style="position:absolute;">
- <div style="position:absolute;left:100px;">
- {% daily_table periods.day 420 120 600 0 12 %}
- </div>
-
- <div style="position:absolute;left:600px;">
- {% daily_table periods.day 420 120 600 12 24 %}
- </div>
-</div>
-
-{% endblock %}
@@ -1,10 +0,0 @@
-{% extends "schedule/base.html" %}
-{% block head_title %}Available Calendars{% endblock %}
-{% block body %}
-<h2>Available Calendars</h2>
-<ul>
-{% for cal in object_list %}
-<li><b>{{ cal }}</b> : <a href="{% url compact_calendar cal.slug %}">Small Month</a> -- <a href="{% url month_calendar cal.slug %}">1 Month</a> -- <a href="{% url tri_month_calendar cal.slug %}">3 Months</a> -- <a href="{% url year_calendar cal.slug %}">This Year</a> -- <a href="{% url week_calendar cal.slug %}">Weekly</a> -- <a href="{% url day_calendar cal.slug %}">Daily</a> -- <a href="/schedule/feed/calendar/upcoming/{{ cal.id }}/">Feed</a></li><br/>
-{% endfor %}
-</ul>
-{% endblock %}
@@ -1,24 +0,0 @@
-{% extends "schedule/base.html" %}
-{% load scheduletags %}
-
- {% block body %}
-{% include "schedule/_dialogs.html" %}
-<div class="tablewrapper">
- <div class="calendarname">{{ calendar.name }}</div>
- {% prevnext "month_calendar" calendar.slug periods.month "F Y"%}
- <div class="now">
- <a href="{% url month_calendar calendar.slug %}">
- This month
- </a>
- </div>
- {% month_table calendar periods.month "regular" %}
-</div>
-<div class="navigation">
- <a href="{% url tri_month_calendar calendar.slug %}{% querystring_for_date periods.month.start 2 %}">
- Three Month Calendar
- </a>
- <a href="{% url year_calendar calendar.slug %}{% querystring_for_date periods.month.start 1%}">
- Full Year Calendar
- </a>
-</div>
-{% endblock %}
@@ -1,30 +0,0 @@
-{% extends "schedule/base.html" %}
-{% load scheduletags %}
-{% block body %}
-<div class="tablewrapper">
- <div class="calendarname">{{ calendar.name }}</div>
- {% prevnext "tri_month_calendar" calendar.slug periods.month "F Y"%}
- <div class="now">
- <a href="{% url tri_month_calendar calendar.slug %}">
- This month
- </a>
- </div>
-<table align="center">
- <tr>
- <td valign="top">{% month_table calendar periods.month "small" -1 %}</td>
- <td width="12">&nbsp;</td>
- <td valign="top">{% month_table calendar periods.month "small" %}</td>
- <td width="12">&nbsp;</td>
- <td valign="top">{% month_table calendar periods.month "small" +1 %}</td>
- </tr>
-</table>
-</div>
-<div class="navigation">
- <a href="{% url month_calendar calendar.slug %}{% querystring_for_date periods.month.start 2 %}">
- Monthly Calendar
- </a>
- <a href="{% url year_calendar calendar.slug %}{% querystring_for_date periods.month.start 1 %}">
- Full Year Calendar
- </a>
-</div>
-{% endblock %}
Oops, something went wrong.

0 comments on commit a8aa7fe

Please sign in to comment.