summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/CalendarSlotHeaderSchedule
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-04-12 14:58:12 -0700
committerIvan Kohler <ivan@freeside.biz>2014-04-12 14:58:12 -0700
commite6341bb01533cc32252676ea40bb94bbd2613a37 (patch)
tree006613b64480390f3dd11ac6636af595b5f86b40 /rt/share/html/Elements/CalendarSlotHeaderSchedule
parentd1bfdbf97b2950f5f6ccb1255db387479d483955 (diff)
installers (calendaring), RT#16584
Diffstat (limited to 'rt/share/html/Elements/CalendarSlotHeaderSchedule')
-rw-r--r--rt/share/html/Elements/CalendarSlotHeaderSchedule17
1 files changed, 17 insertions, 0 deletions
diff --git a/rt/share/html/Elements/CalendarSlotHeaderSchedule b/rt/share/html/Elements/CalendarSlotHeaderSchedule
new file mode 100644
index 000000000..d7e1b76b9
--- /dev/null
+++ b/rt/share/html/Elements/CalendarSlotHeaderSchedule
@@ -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>