summaryrefslogtreecommitdiff
path: root/app/php/controls/CalendarScaffold.tpl
blob: a92c3e6c7ebc7a549e9e83417562553b13688c25 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<com:TPanel
    CssClass="calendarScaffold">
  <com:TActiveDataGrid ID="Calendars"
                       DataKeyField="UID"
                       AutoGenerateColumns="false"
                       OnEditCommand="editRow"
                       OnCancelCommand="cancelRowEdit"
                       OnUpdateCommand="saveRow">
    <com:TActiveBoundColumn ID="Name"
                            ReadOnly="true"
                            HeaderText="Calendar"
                            DataField="Name" />
    <com:TActiveHyperLinkColumn ID="Website"
                                HeaderText="WWW"
                                Text="[www]"
                                Target="_blank"
                                DataNavigateUrlField="Website" />
    <com:TActiveHyperLinkColumn ID="Url"
                                HeaderText="ICS"
                                Text="[ics]"
                                Target="_blank"
                                DataNavigateUrlField="Url" />
    <com:TActiveDropDownListColumn ID="Category"
                                   HeaderText="Category"
                                   DataTextField="Category.Name"
                                   DataValueField="CategoryID"
                                   ListValueField="ID"
                                   ListTextField="Name" />
    <com:TActiveCheckBoxColumn ID="Visible"
                               HeaderText="Default"
                               DataField="Visible" />
    <com:TActiveBoundColumn ID="CustomName"
                            HeaderText="Custom name"
                            DataField="CustomName" />
    <com:TActiveBoundColumn ID="CustomUrl"
                            HeaderText="URL"
                            DataField="CustomUrl" />
    <com:TActiveTemplateColumn ID="CustomImage"
                               HeaderText="Image">
      <prop:ItemTemplate>
        <com:TImage>
          <prop:ImageUrl><%# $this->Parent->Data->CustomImageUrl %></prop:ImageUrl>
        </com:TImage>
      </prop:ItemTemplate>
      <prop:EditItemTemplate>
        <com:TActiveTextBox ID="Value">
          <prop:Text><%# $this->Parent->Data->CustomImage %></prop:Text>
        </com:TActiveTextBox><br />
        <com:SafeActiveFileUpload
            OnFileUpload="SourceTemplateControl.uploadRowFile">
          <prop:CustomData><%# $this->Parent->Data->UID %></prop:CustomData>
        </com:SafeActiveFileUpload>
      </prop:EditItemTemplate>
    </com:TActiveTemplateColumn>
    <com:TActiveEditCommandColumn
        HeaderText=""
        EditText="Edit"
        UpdateText="Save"
        CancelText="Cancel" />
  </com:TActiveDataGrid>
</com:TPanel>