1 <%@ MasterClass="Application.Portlets.SlideWindow" %>
2 <com:TContent ID="SlideWindowContent">
3 <com:TActivePanel ID="RepeaterShow">
4 <com:TActiveRepeater ID="Repeater">
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 : ''%>" />
11 </com:TActiveRepeater>
13 <com:TActivePanel ID="DataGridShow">
16 AutoGenerateColumns="false"
18 OnSortCommand="sortDataGrid"
20 CssClass="window-section-detail"
21 ItemStyle.CssClass="slide-window-element"
22 AlternatingItemStyle.CssClass="slide-window-element-alternating"
24 <com:TActiveTemplateColumn HeaderText="<input type='checkbox' name='actions_checkbox' onclick=SlideWindow.getObj('JobWindow').markAllChecked(this.checked)>">
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);" />
28 </com:TActiveTemplateColumn>
29 <com:TActiveBoundColumn
30 SortExpression="jobid"
33 ItemStyle.HorizontalAlign="Center"
35 <com:TActiveTemplateColumn HeaderText="<%[ Job name ]%>" SortExpression="name">
37 <div><%=$this->getParent()->Data['name']%></div>
38 <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['jobid']%>" />
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">
43 <span title="<%=Prado::localize('Type')%>" style="cursor: help">T</span>
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">
48 <span title="<%=Prado::localize('Level')%>" style="cursor: help">L</span>
50 </com:TActiveTemplateColumn>
51 <com:TActiveTemplateColumn HeaderText="<%[ Job status ]%>" SortExpression="jobstatus">
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>
55 </com:TActiveTemplateColumn>
56 <com:TActiveBoundColumn
57 SortExpression="endtime"
58 HeaderText="<%[ End time ]%>"
61 </com:TActiveDataGrid>
62 <com:TActiveHiddenField ID="CheckedValues" />
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>