1 <%@ MasterClass="Application.Web.Portlets.SlideWindow" %>
2 <com:TContent ID="SlideWindowContent">
3 <com:TActivePanel ID="RepeaterShow">
4 <com:TActiveRepeater ID="Repeater">
6 <%=(isset($this->DataItem->pool->name) && $this->getPage()->VolumeWindow->oldPool != $this->DataItem->pool->name) ? '<div class="window-section"><span>' . Prado::localize('Pool:') . ' ' . $this->DataItem->pool->name . '<span></div>': ''%>
7 <com:TPanel ID="VolumeElement" CssClass="slide-window-element" ToolTip="<%=(isset($this->DataItem->recycle) && $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')%>">
8 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/media-icon.png" alt="" /><%=@$this->DataItem->volumename%>
9 <div id="<%=isset($this->DataItem->volumename) ? $this->DataItem->volumename : ''%>_sizebar" class="status-bar-<%=isset($this->DataItem->volstatus) ? strtolower($this->DataItem->volstatus) : ''%>"><%=isset($this->DataItem->volstatus) ? $this->DataItem->volstatus : ''%></div>
10 <input type="hidden" name="<%=$this->ClientID%>" value="<%=isset($this->DataItem->mediaid) ? $this->DataItem->mediaid : ''%>" />
12 <%=!(isset($this->DataItem->pool->name) ? ($this->getPage()->VolumeWindow->oldPool = $this->DataItem->pool->name) : false)%>
14 </com:TActiveRepeater>
16 <com:TActivePanel ID="DataGridShow">
19 AutoGenerateColumns="false"
21 OnSortCommand="sortDataGrid"
23 CssClass="window-section-detail"
24 ItemStyle.CssClass="slide-window-element"
25 AlternatingItemStyle.CssClass="slide-window-element-alternating"
27 <com:TTemplateColumn HeaderText="<input type='checkbox' name='actions_checkbox' onclick=SlideWindow.getObj('VolumeWindow').markAllChecked(this.checked)>" ItemStyle.HorizontalAlign="Center">
29 <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);" />
31 </com:TTemplateColumn>
32 <com:TActiveTemplateColumn HeaderText="<%[ Volume name ]%>" SortExpression="volumename">
34 <div title="<%=$this->getParent()->Data['volumename']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['volumename'])%></div>
35 <input type="hidden" name="<%=$this->getParent()->ClientID%>" value="<%=$this->getParent()->Data['mediaid']%>" />
37 </com:TActiveTemplateColumn>
38 <com:TActiveBoundColumn
40 HeaderText="<%[ Slot ]%>"
42 ItemStyle.HorizontalAlign="Center"
44 <com:TActiveTemplateColumn HeaderText="<%[ Pool ]%>" SortExpression="pool">
46 <div title="<%=$this->getParent()->Data['pool']['name']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['pool']['name'])%></div>
48 </com:TActiveTemplateColumn>
49 <com:TActiveTemplateColumn HeaderText="<%[ Status ]%>" SortExpression="volstatus">
51 <div id="<%=$this->getParent()->Data['volumename']%>_sizebar" class="status-bar-detail-<%=strtolower($this->getParent()->Data['volstatus'])%>"><%=$this->getParent()->Data['volstatus']%></div>
53 </com:TActiveTemplateColumn>
54 <com:TActiveTemplateColumn HeaderText="<%[ Size ]%>" SortExpression="volbytes">
56 <div class="size" rel="<%=$this->getParent()->Data['volbytes']%>"><%=$this->getParent()->Data['volbytes']%></div>
58 </com:TActiveTemplateColumn>
59 <com:TActiveTemplateColumn HeaderText="<%[ Media Type ]%>" SortExpression="mediatype">
61 <div title="<%=$this->getParent()->Data['mediatype']%>"><%=$this->getPage()->VolumeWindow->formatVolumeField($this->getParent()->Data['mediatype'])%></div>
63 </com:TActiveTemplateColumn>
64 <com:TActiveBoundColumn
65 SortExpression="whenexpire"
66 HeaderText="<%[ When expire ]%>"
67 DataField="whenexpire"
69 </com:TActiveDataGrid>
70 <com:TActiveHiddenField ID="CheckedValues" />
72 <com:TCallback ID="DataElementCall" OnCallback="Page.VolumeWindow.configure">
73 <prop:ClientSide.OnComplete>
74 ConfigurationWindow.getObj('VolumeWindow').show();
75 Formatters.set_formatters();
76 bind_jobs_on_volume_action();
77 ConfigurationWindow.getObj('VolumeWindow').progress(false);
78 </prop:ClientSide.OnComplete>