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