Update output for calendars
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Oct 2014 15:54:21 +0000 (11:54 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Oct 2014 15:54:21 +0000 (11:54 -0400)
have next five years of calendars to edit

Toolkit/Schedule/templates/scheduleCalendar.html

index d17afcb..5c166c8 100644 (file)
@@ -33,6 +33,20 @@ table.cals td {border:solid 1px black;width:5px;height:5px;text-align:center;}
 .selected {position:relative;top:0;left:0;padding:0;margin:0;background-color:lightgreen;width:10px;height:10px;}
 {style:h}
 </style>
-<ul class="medium-block-grid-3">
-{calendarsHtml:h}
-</ul>
+<div id="tabs">
+    <ul>
+        <?php foreach ($t->calendars as $year => $cal){
+        echo '<li><a href="#tabs-'.$year.'">'.$year.'</a></li>';
+        }?>
+    </ul>
+    <div id="tabs-{year:h}" flexy:foreach="calendars,year,cal">
+        <ul class="medium-block-grid-3">
+        {cal:h}
+        </ul>
+    </div>
+</div>
+ <script>
+$(function() {
+$( "#tabs" ).tabs();
+});
+</script>