Skip to content

Commit

Permalink
#134 add missing template
Browse files Browse the repository at this point in the history
  • Loading branch information
llazzaro committed Sep 6, 2015
1 parent 56debe4 commit 6788625
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions schedule/templates/schedule/_day_cell_big.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% load scheduletags %}
<div>
{% if day.has_occurrences %}
{% for o in day.get_occurrence_partials %}
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#occurenceModal">

<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 class="modal fade" id="occurenceModal" tabindex="-1" role="dialog" aria-labelledby="occurence_detailsl">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">{{ occurrence.title }}</h4>
</div>
<div class="modal-body">
{% include 'schedule/_detail.html' with occurrence=o.occurrence %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>

0 comments on commit 6788625

Please sign in to comment.