]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/StorageList.tpl
baculum: Stop using hidden fields to store item identifiers
[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                                 <div data-type="item_value" rel="<%#$this->DataItem->storageid%>" class="slide-window-element">
7                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/server-storage-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="<%[ Storage name ]%>" SortExpression="name">
24                                 <prop:ItemTemplate>
25                                         <div data-type="item_value" rel="<%=$this->getParent()->Data['storageid']%>"><%=$this->getParent()->Data['name']%></div>
26                                 </prop:ItemTemplate>
27                         </com:TActiveTemplateColumn>
28                         <com:TActiveTemplateColumn HeaderText="<%[ Autochanger ]%>" SortExpression="autochanger" ItemStyle.HorizontalAlign="Center">
29                                 <prop:ItemTemplate>
30                                         <%=$this->getParent()->Data['autochanger'] == 1 ? Prado::localize('Yes') : Prado::localize('No')%>
31                                 </prop:ItemTemplate>
32                         </com:TActiveTemplateColumn>
33                 </com:TActiveDataGrid>
34         </com:TActivePanel>
35         <com:TCallback ID="DataElementCall" OnCallback="Page.StorageWindow.configure">
36                 <prop:ClientSide.OnComplete>
37                         ConfigurationWindow.getObj('StorageWindow').show();
38                         ConfigurationWindow.getObj('StorageWindow').progress(false);
39                 </prop:ClientSide.OnComplete>
40         </com:TCallback>
41 </com:TContent>