]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/ClientList.tpl
9c05a1db5892da80e66213301e468fb9fa86e1fe
[bacula/bacula] / gui / baculum / protected / Web / Portlets / ClientList.tpl
1 <%@ MasterClass="Application.Web.Portlets.SlideWindow"%>
2 <com:TContent ID="SlideWindowContent">
3         <com:TActivePanel ID="RepeaterShow">
4                 <com:TActiveRepeater ID="Repeater">
5                         <prop:ItemTemplate>
6                                 <com:TPanel ID="ClientElement" CssClass="slide-window-element" ToolTip="<%=@$this->DataItem->uname%>">
7                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/client-icon.png" alt="" /><%=@$this->DataItem->name%>
8                                         <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->clientid) ? $this->DataItem->clientid : ''%>" />
9                                 </com:TPanel>
10                         </prop:ItemTemplate>
11                 </com:TActiveRepeater>
12         </com:TActivePanel>
13         <com:TActivePanel ID="DataGridShow">
14                 <com:TActiveDataGrid
15                         ID="DataGrid"
16                         AutoGenerateColumns="false"
17                         AllowSorting="false"
18                         OnSortCommand="sortDataGrid"
19                         CellPadding="5px"
20                         CssClass="window-section-detail-smallrow"
21                         ItemStyle.CssClass="slide-window-element"
22                         AlternatingItemStyle.CssClass="slide-window-element-alternating"
23                 >
24                         <com:TActiveTemplateColumn HeaderText="<%[ Client name ]%>" SortExpression="name">
25                                 <prop:ItemTemplate>
26                                         <div><%=$this->getParent()->Data['name']%></div>
27                                         <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['clientid']%>" />
28                                 </prop:ItemTemplate>
29                         </com:TActiveTemplateColumn>
30                         <com:TActiveTemplateColumn ItemStyle.HorizontalAlign="Center" HeaderText="AutoPrune" SortExpression="autoprune">
31                                 <prop:ItemTemplate>
32                                         <%=$this->getParent()->Data['autoprune'] == 1 ? Prado::localize('Yes') : Prado::localize('No')%>
33                                 </prop:ItemTemplate>
34                         </com:TActiveTemplateColumn>
35                         <com:TActiveTemplateColumn HeaderText="<%[ File Retention ]%>" SortExpression="fileretention">
36                                 <prop:ItemTemplate>
37                                         <div rel="<%=$this->getParent()->Data['fileretention']%>"><%=(integer)($this->getParent()->Data['fileretention'] / 3600 / 24)%> <%=$this->getParent()->Data['fileretention'] < 172800 ? Prado::localize('day') : Prado::localize('days')%></div>
38                                 </prop:ItemTemplate>
39                         </com:TActiveTemplateColumn>
40                         <com:TActiveTemplateColumn HeaderText="<%[ Job Retention ]%>" SortExpression="jobretention">
41                                 <prop:ItemTemplate>
42                                         <%=(integer)($this->getParent()->Data['jobretention'] / 3600 / 24)%> <%=$this->getParent()->Data['jobretention'] < 172800 ? Prado::localize('day') : Prado::localize('days')%>
43                                 </prop:ItemTemplate>
44                         </com:TActiveTemplateColumn>
45                 </com:TActiveDataGrid>
46         </com:TActivePanel>
47         <com:TCallback ID="DataElementCall" OnCallback="Page.ClientWindow.configure">
48                 <prop:ClientSide.OnComplete>
49                         ConfigurationWindow.getObj('ClientWindow').show();
50                         Formatters.set_formatters();
51                         bind_jobs_for_client_action();
52                         ConfigurationWindow.getObj('ClientWindow').progress(false);
53                 </prop:ClientSide.OnComplete>
54         </com:TCallback>
55 </com:TContent>