]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/PoolList.tpl
baculum: Lists loading optiomalization and replace server side sorting to client...
[bacula/bacula] / gui / baculum / protected / Portlets / PoolList.tpl
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);
8                 });
9         </script>
10         <com:TActivePanel ID="RepeaterShow">
11                 <com:TActiveRepeater ID="Repeater">
12                         <prop:ItemTemplate>
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 : ''%>" />
16                                 </com:TPanel>
17                         </prop:ItemTemplate>
18                 </com:TActiveRepeater>
19         </com:TActivePanel>
20         
21         <com:TActivePanel ID="DataGridShow">
22                 <com:TActiveDataGrid
23                         ID="DataGrid"
24                         AutoGenerateColumns="false"
25                         AllowSorting="false"
26                         OnSortCommand="sortDataGrid"
27                         CellPadding="5px"
28                         CssClass="window-section-detail"
29                         ItemStyle.CssClass="slide-window-element"
30                         AlternatingItemStyle.CssClass="slide-window-element-alternating"
31                 >
32                         <com:TActiveTemplateColumn HeaderText="Pool name" SortExpression="name">
33                                 <prop:ItemTemplate>
34                                         <div><%=$this->getParent()->Data['name']%></div>
35                                         <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['poolid']%>" />
36                                 </prop:ItemTemplate>
37                         </com:TActiveTemplateColumn>
38                         <com:TActiveBoundColumn
39                                 SortExpression="numvols"
40                                 HeaderText="Vol. number"
41                                 DataField="numvols"
42                                 ItemStyle.HorizontalAlign="Center"
43                         />
44                         <com:TActiveTemplateColumn HeaderText="Vol. retention" SortExpression="volretention">
45                                 <prop:ItemTemplate>
46                                         <%=(integer)($this->getParent()->Data['volretention'] / 3600 / 24)%> <%=$this->getParent()->Data['volretention'] < 172800 ? 'day' : 'days'%>
47                                 </prop:ItemTemplate>
48                         </com:TActiveTemplateColumn>
49                         <com:TActiveTemplateColumn HeaderText="AutoPrune" SortExpression="autoprune" ItemStyle.HorizontalAlign="Center">
50                                 <prop:ItemTemplate>
51                                         <%=$this->getParent()->Data['autoprune'] == 1 ? 'Yes' : 'No'%>
52                                 </prop:ItemTemplate>
53                         </com:TActiveTemplateColumn>
54                         <com:TActiveTemplateColumn HeaderText="Recycle" SortExpression="recycle" ItemStyle.HorizontalAlign="Center">
55                                 <prop:ItemTemplate>
56                                         <%=$this->getParent()->Data['recycle'] == 1 ? 'Yes' : 'No'%>
57                                 </prop:ItemTemplate>
58                         </com:TActiveTemplateColumn>
59                 </com:TActiveDataGrid>
60         </com:TActivePanel>
61         <com:TCallback ID="DataElementCall" OnCallback="Page.PoolWindow.configure">
62                 <prop:ClientSide OnComplete="poolConfigurationWindow.show();poolConfigurationWindow.progress(false);" />
63         </com:TCallback>
64 </com:TContent>