]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/JobList.tpl
baculum: Enable support for Verify jobs
[bacula/bacula] / gui / baculum / protected / Portlets / JobList.tpl
1 <%@ MasterClass="Application.Portlets.SlideWindow" %>
2 <com:TContent ID="SlideWindowContent">
3         <com:TActivePanel ID="RepeaterShow">
4         <com:TActiveRepeater ID="Repeater">
5                 <prop:ItemTemplate>
6                         <com:TPanel ID="JobElement" CssClass="slide-window-element">
7                                 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/job-icon.png" alt="" /> [<%=@$this->DataItem->jobid%>] <%=@$this->DataItem->name%>
8                                 <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->jobid) ? $this->DataItem->jobid : ''%>" />
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"
21                 ItemStyle.CssClass="slide-window-element"
22                 AlternatingItemStyle.CssClass="slide-window-element-alternating"
23         >
24                 <com:TActiveTemplateColumn HeaderText="<input type='checkbox' name='actions_checkbox' onclick=SlideWindow.getObj('JobWindow').markAllChecked(this.checked)>">
25                         <prop:ItemTemplate>
26                                 <input type="checkbox" name="actions_checkbox" value="<%=$this->getParent()->Data['jobid']%>" id="<%=$this->getPage()->JobWindow->CheckedValues->ClientID%><%=$this->getParent()->Data['jobid']%>" rel="<%=$this->getPage()->JobWindow->CheckedValues->ClientID%>" onclick="SlideWindow.getObj('JobWindow').markChecked(this.getAttribute('rel'), this.checked, this.value, true);" />
27                         </prop:ItemTemplate>
28                 </com:TActiveTemplateColumn>
29                 <com:TActiveBoundColumn
30                         SortExpression="jobid"
31                         HeaderText="ID"
32                         DataField="jobid"
33                         ItemStyle.HorizontalAlign="Center"
34                 />
35                 <com:TActiveTemplateColumn HeaderText="<%[ Job name ]%>" SortExpression="name">
36                         <prop:ItemTemplate>
37                                 <div><%=$this->getParent()->Data['name']%></div>
38                                 <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['jobid']%>" />
39                         </prop:ItemTemplate>
40                 </com:TActiveTemplateColumn>
41                 <com:TActiveTemplateColumn ItemTemplate="<%=isset($this->getPage()->JobWindow->jobTypes[$this->getParent()->Data['type']]) ? $this->getPage()->JobWindow->jobTypes[$this->getParent()->Data['type']] : ''%>" SortExpression="type">
42                         <prop:HeaderText>
43                                 <span title="<%=Prado::localize('Type')%>" style="cursor: help">T</span>
44                         </prop:HeaderText>
45                 </com:TActiveTemplateColumn>
46                 <com:TActiveTemplateColumn ItemTemplate="<%=array_key_exists($this->getParent()->Data['level'], $this->getPage()->JobWindow->jobLevels) ? $this->getPage()->JobWindow->jobLevels[$this->getParent()->Data['level']] : ''%>" SortExpression="level">
47                         <prop:HeaderText>
48                                 <span title="<%=Prado::localize('Level')%>" style="cursor: help">L</span>
49                         </prop:HeaderText>
50                 </com:TActiveTemplateColumn>
51                 <com:TActiveTemplateColumn HeaderText="<%[ Job status ]%>" SortExpression="jobstatus">
52                         <prop:ItemTemplate>
53                                 <div class="job-status-<%=isset($this->getParent()->Data['jobstatus']) ? $this->getParent()->Data['jobstatus'] : ''%>" title="<%=isset($this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['description']) ? $this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['description'] : ''%>"><%=isset($this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value']) ? $this->getPage()->JobWindow->jobStates[$this->getParent()->Data['jobstatus']]['value'] : ''%></div>
54                         </prop:ItemTemplate>
55                 </com:TActiveTemplateColumn>
56                 <com:TActiveBoundColumn
57                         SortExpression="endtime"
58                         HeaderText="<%[ End time ]%>"
59                         DataField="endtime"
60                 />
61         </com:TActiveDataGrid>
62         <com:TActiveHiddenField ID="CheckedValues" />
63         </com:TActivePanel>
64         <com:TCallback ID="DataElementCall" OnCallback="Page.JobWindow.configure">
65                 <prop:ClientSide.OnComplete>
66                         ConfigurationWindow.getObj('JobWindow').show();
67                         ConfigurationWindow.getObj('JobWindow').progress(false);
68                 </prop:ClientSide.OnComplete>
69         </com:TCallback>
70 </com:TContent>