1 <%@ MasterClass="Application.Portlets.SlideWindow"%>
2 <com:TContent ID="SlideWindowContent">
3 <com:TActivePanel ID="RepeaterShow">
4 <com:TActiveRepeater ID="Repeater">
6 <com:TPanel ID="PoolElement" CssClass="slide-window-element">
7 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/pool.png" alt="" /><%=@$this->DataItem->name%>
9 <com:TCallback ID="PoolElementCall" OnCallback="Page.PoolWindow.configure" ActiveControl.CallbackParameter="<%=@$this->DataItem->poolid%>">
10 <prop:ClientSide.OnComplete>
11 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.show();
12 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.progress(false);
13 if(<%=$this->getPage()->PoolWindow->ShowID%>SlideWindow.isFullSize()) {
14 <%=$this->getPage()->PoolWindow->ShowID%>SlideWindow.resetSize();
16 </prop:ClientSide.OnComplete>
18 <script type="text/javascript">
19 $('<%=$this->PoolElement->ClientID%>').observe('click', function() {
20 var request = <%= $this->PoolElementCall->ActiveControl->Javascript %>;
21 if(ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.is_progress() == false) {
22 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.progress(true);
28 </com:TActiveRepeater>
31 <com:TActivePanel ID="DataGridShow">
34 AutoGenerateColumns="false"
36 OnSortCommand="sortDataGrid"
38 CssClass="window-section-detail"
39 ItemStyle.CssClass="slide-window-element"
40 AlternatingItemStyle.CssClass="slide-window-element-alternating"
42 <com:TActiveTemplateColumn HeaderText="Pool name" SortExpression="name">
44 <com:TPanel ID="PoolTableElement"><%=$this->getParent()->Data['name']%></com:TPanel>
45 <com:TCallback ID="PoolTableElementCall" OnCallback="Page.PoolWindow.configure" ActiveControl.CallbackParameter="<%=$this->getParent()->Data['poolid']%>">
46 <prop:ClientSide.OnComplete>
47 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.show();
48 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.progress(false);
49 if(<%=$this->getPage()->PoolWindow->ShowID%>SlideWindow.isFullSize()) {
50 <%=$this->getPage()->PoolWindow->ShowID%>SlideWindow.resetSize();
52 </prop:ClientSide.OnComplete>
54 <script type="text/javascript">
55 $('<%=$this->PoolTableElement->ClientID%>').up('tr').observe('click', function() {
56 var request = <%= $this->PoolTableElementCall->ActiveControl->Javascript %>;
57 if(ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.is_progress() == false) {
58 ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>.progress(true);
64 </com:TActiveTemplateColumn>
65 <com:TActiveBoundColumn
66 SortExpression="numvols"
67 HeaderText="Vol. number"
69 ItemStyle.HorizontalAlign="Center"
71 <com:TActiveTemplateColumn HeaderText="Vol. retention" SortExpression="volretention">
73 <%=(integer)($this->getParent()->Data['volretention'] / 3600 / 24)%> <%=$this->getParent()->Data['volretention'] < 172800 ? 'day' : 'days'%>
75 </com:TActiveTemplateColumn>
76 <com:TActiveTemplateColumn HeaderText="AutoPrune" SortExpression="autoprune" ItemStyle.HorizontalAlign="Center">
78 <%=$this->getParent()->Data['autoprune'] == 1 ? 'Yes' : 'No'%>
80 </com:TActiveTemplateColumn>
81 <com:TActiveTemplateColumn HeaderText="Recycle" SortExpression="recycle" ItemStyle.HorizontalAlign="Center">
83 <%=$this->getParent()->Data['recycle'] == 1 ? 'Yes' : 'No'%>
85 </com:TActiveTemplateColumn>
86 </com:TActiveDataGrid>