]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/PoolList.tpl
add1ca8b6180f5686d64294afc0532a1ec5d492a
[bacula/bacula] / gui / baculum / protected / Portlets / PoolList.tpl
1 <%@ MasterClass="Application.Portlets.SlideWindow"%>
2 <com:TContent ID="SlideWindowContent">
3         <com:TActivePanel ID="RepeaterShow">
4                 <com:TActiveRepeater ID="Repeater">
5                         <prop:ItemTemplate>
6                                 <com:TPanel ID="PoolElement" CssClass="slide-window-element">
7                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/pool.png" alt="" /><%=@$this->DataItem->name%>
8                                 </com:TPanel>
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();
15                                                 }
16                                         </prop:ClientSide.OnComplete>
17                                 </com:TCallback>
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);
23                                                         request.dispatch();
24                                                 }
25                                         });
26                                 </script>
27                         </prop:ItemTemplate>
28                 </com:TActiveRepeater>
29         </com:TActivePanel>
30         
31         <com:TActivePanel ID="DataGridShow">
32                 <com:TActiveDataGrid
33                         ID="DataGrid"
34                         AutoGenerateColumns="false"
35                         AllowSorting="true"
36                         OnSortCommand="sortDataGrid"
37                         CellPadding="5px"
38                         CssClass="window-section-detail"
39                         ItemStyle.CssClass="slide-window-element"
40                         AlternatingItemStyle.CssClass="slide-window-element-alternating"
41                 >
42                         <com:TActiveTemplateColumn HeaderText="Pool name" SortExpression="name">
43                                 <prop:ItemTemplate>
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();
51                                                         }
52                                                 </prop:ClientSide.OnComplete>
53                                         </com:TCallback>
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);
59                                                                 request.dispatch();
60                                                         }
61                                                 });
62                                         </script>
63                                 </prop:ItemTemplate>
64                         </com:TActiveTemplateColumn>
65                         <com:TActiveBoundColumn
66                                 SortExpression="numvols"
67                                 HeaderText="Vol. number"
68                                 DataField="numvols"
69                                 ItemStyle.HorizontalAlign="Center"
70                         />
71                         <com:TActiveTemplateColumn HeaderText="Vol. retention" SortExpression="volretention">
72                                 <prop:ItemTemplate>
73                                         <%=(integer)($this->getParent()->Data['volretention'] / 3600 / 24)%> <%=$this->getParent()->Data['volretention'] < 172800 ? 'day' : 'days'%>
74                                 </prop:ItemTemplate>
75                         </com:TActiveTemplateColumn>
76                         <com:TActiveTemplateColumn HeaderText="AutoPrune" SortExpression="autoprune" ItemStyle.HorizontalAlign="Center">
77                                 <prop:ItemTemplate>
78                                         <%=$this->getParent()->Data['autoprune'] == 1 ? 'Yes' : 'No'%>
79                                 </prop:ItemTemplate>
80                         </com:TActiveTemplateColumn>
81                         <com:TActiveTemplateColumn HeaderText="Recycle" SortExpression="recycle" ItemStyle.HorizontalAlign="Center">
82                                 <prop:ItemTemplate>
83                                         <%=$this->getParent()->Data['recycle'] == 1 ? 'Yes' : 'No'%>
84                                 </prop:ItemTemplate>
85                         </com:TActiveTemplateColumn>
86                 </com:TActiveDataGrid>
87         </com:TActivePanel>
88 </com:TContent>