1 <%@ MasterClass="Application.Web.Portlets.SlideWindow" %>
2 <com:TContent ID="SlideWindowContent">
3 <com:TActivePanel ID="RepeaterShow">
4 <com:TActiveRepeater ID="Repeater">
6 <div data-type="item_value" rel="<%#$this->DataItem->mediaid%>" class="slide-window-element" title="<%#($this->DataItem->recycle == 1 && !empty($this->DataItem->lastwritten) && in_array($this->DataItem->volstatus, array('Full', 'Used'))) ? Prado::localize('When expire:') . date( ' Y-m-d H:i:s', (strtotime($this->DataItem->lastwritten) + $this->DataItem->volretention)) : ''%> <%=Prado::localize('Last written:')%> <%=!empty($this->DataItem->lastwritten) ? $this->DataItem->lastwritten : Prado::localize('never written')%>">
7 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/media-icon.png" alt="" /><%#$this->DataItem->volumename%>
8 <div id="<%#$this->DataItem->volumename%>_sizebar" class="status-bar-<%#strtolower($this->DataItem->volstatus)%>"><%#$this->DataItem->volstatus%></div>
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:TTemplateColumn HeaderText="<input type='checkbox' name='actions_checkbox' onclick=SlideWindow.getObj('VolumeWindow').markAllChecked(this.checked)>" ItemStyle.HorizontalAlign="Center">
26 <input type="checkbox" name="actions_checkbox" value="<%=$this->getParent()->Data['volumename']%>" id="<%=$this->getPage()->VolumeWindow->CheckedValues->ClientID%><%=$this->getParent()->Data['volumename']%>" rel="<%=$this->getPage()->VolumeWindow->CheckedValues->ClientID%>" onclick="SlideWindow.getObj('VolumeWindow').markChecked(this.getAttribute('rel'), this.checked, this.value, true);" />
28 </com:TTemplateColumn>
29 <com:TActiveTemplateColumn HeaderText="<%[ Volume name ]%>" SortExpression="volumename">
31 <div data-type="item_value" rel="<%=$this->getParent()->Data['mediaid']%>" title="<%=$this->getParent()->Data['volumename']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['volumename'])%></div>
33 </com:TActiveTemplateColumn>
34 <com:TActiveBoundColumn
36 HeaderText="<%[ Slot ]%>"
38 ItemStyle.HorizontalAlign="Center"
40 <com:TActiveTemplateColumn HeaderText="<%[ Pool ]%>" SortExpression="pool">
42 <div title="<%=$this->getParent()->Data['pool']['name']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['pool']['name'])%></div>
44 </com:TActiveTemplateColumn>
45 <com:TActiveTemplateColumn HeaderText="<%[ Status ]%>" SortExpression="volstatus">
47 <div id="<%=$this->getParent()->Data['volumename']%>_sizebar" class="status-bar-detail-<%=strtolower($this->getParent()->Data['volstatus'])%>"><%=$this->getParent()->Data['volstatus']%></div>
49 </com:TActiveTemplateColumn>
50 <com:TActiveTemplateColumn HeaderText="<%[ Size ]%>" SortExpression="volbytes">
52 <div class="size" rel="<%=$this->getParent()->Data['volbytes']%>"><%=$this->getParent()->Data['volbytes']%></div>
54 </com:TActiveTemplateColumn>
55 <com:TActiveTemplateColumn HeaderText="<%[ Media Type ]%>" SortExpression="mediatype">
57 <div title="<%=$this->getParent()->Data['mediatype']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['mediatype'])%></div>
59 </com:TActiveTemplateColumn>
60 <com:TActiveBoundColumn
61 SortExpression="whenexpire"
62 HeaderText="<%[ When expire ]%>"
63 DataField="whenexpire"
65 </com:TActiveDataGrid>
66 <com:TActiveHiddenField ID="CheckedValues" />
68 <com:TCallback ID="DataElementCall" OnCallback="Page.VolumeWindow.configure">
69 <prop:ClientSide.OnComplete>
70 ConfigurationWindow.getObj('VolumeWindow').show();
71 Formatters.set_formatters();
72 bind_jobs_on_volume_action();
73 ConfigurationWindow.getObj('VolumeWindow').progress(false);
74 </prop:ClientSide.OnComplete>