summaryrefslogtreecommitdiff
path: root/app/frontend/controls/CalendarGrid.tpl
blob: 2b3ada8a0e7202ba41d06874389e0553ece4d712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<com:TRepeater ID="Weeks" OnItemDataBound="weekDataBind">
  <prop:ItemTemplate>
    <div class="gridWeek">
      <com:TRepeater ID="Days" OnItemDataBound="SourceTemplateControl.dayDataBind">
        <prop:ItemTemplate>
          <div class="gridDay">
            <%# $this->Data->Date %>
            <com:TRepeater ID="Events">
              <prop:ItemTemplate>
                <com:TConditional Condition="$this->Data">
                  <prop:TrueTemplate>
                    <com:THtmlElement TagName="div">
                      <prop:CssClass>gridEvent <%# $this->Parent->Parent->Data->Date == $this->Data->DateFrom ? 'beginDate' : '' %> <%# $this->Parent->Parent->Data->Date == $this->Data->DateTo ? 'endDate' : '' %></prop:CssClass>
                      <%# $this->Data->Name %>
                    </com:THtmlElement>
                  </prop:TrueTemplate>
                  <prop:FalseTemplate>
                    <div class="gridItem">&nbsp;</div>
                  </prop:FalseTemplate>
                </com:TConditional>
              </prop:ItemTemplate>
            </com:TRepeater>
          </div>
        </prop:ItemTemplate>
      </com:TRepeater>
    </div>
  </prop:ItemTemplate>
</com:TRepeater>