]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/StorageList.tpl
df410afb2b69d99ad681ded761417cef4492c2b7
[bacula/bacula] / gui / baculum / protected / Web / Portlets / StorageList.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="StorageElement" CssClass="slide-window-element">
7                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/server-storage-icon.png" alt="" /><%=@$this->DataItem->name%>
8                                         <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->storageid) ? $this->DataItem->storageid : ''%>" />
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="<%[ Storage 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['storageid']%>" />
28                                 </prop:ItemTemplate>
29                         </com:TActiveTemplateColumn>
30                         <com:TActiveTemplateColumn HeaderText="<%[ Autochanger ]%>" SortExpression="autochanger" ItemStyle.HorizontalAlign="Center">
31                                 <prop:ItemTemplate>
32                                         <%=$this->getParent()->Data['autochanger'] == 1 ? Prado::localize('Yes') : Prado::localize('No')%>
33                                 </prop:ItemTemplate>
34                         </com:TActiveTemplateColumn>
35                 </com:TActiveDataGrid>
36         </com:TActivePanel>
37         <com:TCallback ID="DataElementCall" OnCallback="Page.StorageWindow.configure">
38                 <prop:ClientSide.OnComplete>
39                         ConfigurationWindow.getObj('StorageWindow').show();
40                         ConfigurationWindow.getObj('StorageWindow').progress(false);
41                 </prop:ClientSide.OnComplete>
42         </com:TCallback>
43 </com:TContent>