]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/JobRunList.tpl
baculum: Lists loading optiomalization and replace server side sorting to client...
[bacula/bacula] / gui / baculum / protected / Portlets / JobRunList.tpl
1 <%@ MasterClass="Application.Portlets.SlideWindow" %>
2 <com:TContent ID="SlideWindowContent">
3         <script type="text/javascript">
4                 document.observe("dom:loaded", function() {
5                         jobRunConfigurationWindow = ConfigurationWindow<%=$this->getPage()->JobRunConfiguration->getMaster()->ClientID%>;
6                         jobRunSlideWindowObj = <%=$this->getPage()->JobRunWindow->ShowID%>SlideWindow;
7                         jobRunSlideWindowObj.setConfigurationObj(jobRunConfigurationWindow);
8                 });
9         </script>
10         <com:TActivePanel ID="RepeaterShow">
11         <com:TActiveRepeater ID="Repeater">
12                 <prop:ItemTemplate>
13                         <%=($this->getPage()->JobRunWindow->oldDirector != $this->DataItem['director']) ? '<div class="window-section"><span>Director: ' . $this->DataItem['director']  . '<span></div>': ''%>
14                         <com:TPanel ID="JobRunElement" CssClass="slide-window-element" >
15                                 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/job-icon.png" alt="" /> <%=@$this->DataItem['name']%>
16                                 <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem['name']) ? $this->DataItem['name'] : ''%>" />
17
18                         </com:TPanel>
19                         <%=!($this->getPage()->JobRunWindow->oldDirector = $this->DataItem['director'])%>
20                 </prop:ItemTemplate>
21         </com:TActiveRepeater>
22         </com:TActivePanel>
23         <com:TActivePanel ID="DataGridShow">
24         <com:TActiveDataGrid
25                 ID="DataGrid"
26                 AutoGenerateColumns="false"
27                 AllowSorting="false"
28                 OnSortCommand="sortDataGrid"
29                 CellPadding="5px"
30                 CssClass="window-section-detail"
31                 ItemStyle.CssClass="slide-window-element"
32                 AlternatingItemStyle.CssClass="slide-window-element-alternating"
33         >
34                 <com:TActiveTemplateColumn HeaderText="Job name" SortExpression="name">
35                         <prop:ItemTemplate>
36                                 <div><%=$this->getParent()->DataItem['name']%></div>
37                                 <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->DataItem['name']%>" />
38                         </prop:ItemTemplate>
39                 </com:TActiveTemplateColumn>
40                 <com:TActiveBoundColumn
41                                 SortExpression="director"
42                                 HeaderText="Director"
43                                 DataField="director"
44                                 ItemStyle.HorizontalAlign="Center"
45                         />
46         </com:TActiveDataGrid>
47         </com:TActivePanel>
48         <com:TCallback ID="DataElementCall" OnCallback="Page.JobRunWindow.configure">
49                 <prop:ClientSide OnComplete="jobRunConfigurationWindow.show();jobRunConfigurationWindow.progress(false);" />
50         </com:TCallback>
51 </com:TContent>