1 <%@ MasterClass="Application.Portlets.SlideWindow"%>
2 <com:TContent ID="SlideWindowContent">
3 <script type="text/javascript">
4 document.observe("dom:loaded", function() {
5 poolConfigurationWindow = ConfigurationWindow<%=$this->getPage()->PoolConfiguration->getMaster()->ClientID%>;
6 poolSlideWindowObj = <%=$this->getPage()->PoolWindow->ShowID%>SlideWindow;
7 poolSlideWindowObj.setConfigurationObj(poolConfigurationWindow);
10 <com:TActivePanel ID="RepeaterShow">
11 <com:TActiveRepeater ID="Repeater">
13 <com:TPanel ID="PoolElement" CssClass="slide-window-element">
14 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/pool.png" alt="" /><%=@$this->DataItem->name%>
15 <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->poolid) ? $this->DataItem->poolid : ''%>" />
18 </com:TActiveRepeater>
21 <com:TActivePanel ID="DataGridShow">
24 AutoGenerateColumns="false"
26 OnSortCommand="sortDataGrid"
28 CssClass="window-section-detail"
29 ItemStyle.CssClass="slide-window-element"
30 AlternatingItemStyle.CssClass="slide-window-element-alternating"
32 <com:TActiveTemplateColumn HeaderText="Pool name" SortExpression="name">
34 <div><%=$this->getParent()->Data['name']%></div>
35 <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['poolid']%>" />
37 </com:TActiveTemplateColumn>
38 <com:TActiveBoundColumn
39 SortExpression="numvols"
40 HeaderText="Vol. number"
42 ItemStyle.HorizontalAlign="Center"
44 <com:TActiveTemplateColumn HeaderText="Vol. retention" SortExpression="volretention">
46 <%=(integer)($this->getParent()->Data['volretention'] / 3600 / 24)%> <%=$this->getParent()->Data['volretention'] < 172800 ? 'day' : 'days'%>
48 </com:TActiveTemplateColumn>
49 <com:TActiveTemplateColumn HeaderText="AutoPrune" SortExpression="autoprune" ItemStyle.HorizontalAlign="Center">
51 <%=$this->getParent()->Data['autoprune'] == 1 ? 'Yes' : 'No'%>
53 </com:TActiveTemplateColumn>
54 <com:TActiveTemplateColumn HeaderText="Recycle" SortExpression="recycle" ItemStyle.HorizontalAlign="Center">
56 <%=$this->getParent()->Data['recycle'] == 1 ? 'Yes' : 'No'%>
58 </com:TActiveTemplateColumn>
59 </com:TActiveDataGrid>
61 <com:TCallback ID="DataElementCall" OnCallback="Page.PoolWindow.configure">
62 <prop:ClientSide OnComplete="poolConfigurationWindow.show();poolConfigurationWindow.progress(false);" />