installers (calendaring), RT#16584
[freeside.git] / rt / share / html / Elements / CalendarSlotHeaderSchedule
diff --git a/rt/share/html/Elements/CalendarSlotHeaderSchedule b/rt/share/html/Elements/CalendarSlotHeaderSchedule
new file mode 100644 (file)
index 0000000..d7e1b76
--- /dev/null
@@ -0,0 +1,17 @@
+<%ARGS>
+$Date      => undef
+$Tickets   => undef
+$DateTypes => undef
+@username  => ()
+$slots     => $default_slots
+</%ARGS>
+% foreach my $username ( @username ) {
+    <td align="center"><% $username %></td>
+% }
+% if ( scalar(@username) < $slots ) {
+    <td colspan=<% $slots - scalar(@username) %>
+    </td>
+% }
+<%ONCE>
+my $default_slots = RT->Config->Get('CalendarWeeklySlots') || 5;
+</%ONCE>