%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2011 %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="output_distribution_histories_focused"
baseParameters="{
results: 300,
job_history_id: '<%= params[:job_history_id] %>'
}"
includeTagFilter="false"
<% elsif (params[:job_id]) %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="output_distribution_histories_focused"
baseParameters="{
results: 300,
job_id: '<%= params[:job_id] %>'<%= ",
job_type: '" + params[:job_type] + "'" if !params[:job_type].nil? %>
}"
includeTagFilter="false"
<% elsif (params[:notification_list_id]) %>
title="<%= t("#{controller.controller_name}.page_title") + ' » ' + "#{@PAGE_TITLE_LIMIT}" %>"
stateId="output_distribution_histories_focused"
baseParameters="{
results: 300,
notification_list_id: '<%= params[:notification_list_id] %>'
}"
includeTagFilter="false"
<% else %>
advanceDateFilter="{dateField: 'copied_server_time_utc'}"
stateId="output_distribution_historiesGrid"
title = "<%= t("#{controller.controller_name}.page_title") %>"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
<% end %>
includeAutoRefresh="true"
<%#*TODO - this needs to change to output distribuiton%>
helpUrl="<%=help_link(HELP_URL_CONFIG['history']['output_distribution_history_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
dblClickText="<%= t('output_distribution.view_file_double_click') %>"
dataColumns="[{name: 'id'},
{name: 'job_history_id'},
{name: 'job_name'},
{name: 'job_id'},
{name: 'agent'},
{name: 'status'},
{name: 'distribution_type'},
{name: 'copied_server_time_utc'},
{name: 'file_name'}
]"
deletePath="<%= output_distribution_history_path(-1) %>"
editPath="<%= view_file_output_distribution_history_path(-1, :download => true) %>"
editInPopup="false"
itemType='<%= t('common.output_distribution_history_entry') %>'
gridColumns="[
{dataIndex: 'copied_server_time_utc', header: '<%=t "common.copied_to_server_time" %>', id: 'outputDistributionHistoriesGridCopiedToServerTime', locked: false, sortable: true, width: 150, filter: true, filterType: 'date'},
{dataIndex: 'file_name', header: '<%=t ".file_name" %>', id: 'outputDistributionHistoriesGridFileName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'distribution_type', header: '<%=t ".distribution_type" %>', id: 'outputDistributionHistoriesGridDistributionType', locked: false, sortable: true, width: 150, filter: true, filterType: 'list', filterList: <%= OutputDistributionHistory.DISTRIBUTION_TYPE_VALUES_TEXT %>},
{dataIndex: 'status', header: '<%=t ".status" %>', id: 'outputDistributionHistoriesGridHistoryStatus', locked: false, sortable: true, width: 150, filter: true, filterType: 'list', filterList: <%= OutputDistributionHistory.STATUS_VALUES_TEXT %>},
{dataIndex: 'job_history_id', header: '<%=t ".run_number" %>', id: 'outputDistributionHistoriesGridRunHistoryId', locked: false, sortable: true, width: 100, filter: true, filterType: 'numeric'},
{dataIndex: 'job_name', header: '<%=t "common.job" %>', id: 'outputDistributionHistoriesGridJobName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'},
{dataIndex: 'agent', header: '<%=t "common.agent" %>', id: 'outputDistributionHistoriesGridAgentName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}
]"
includeDelete="true"
includeEdit="true"
autoFill="false"
forceFit="false"
menuCfg="{items: [{
iconCls: 'icon_download',
text: '<%=t ".view_file" %>',
actsOn: 'one',
actionUrl: '<%= view_file_output_distribution_history_path(-1, :download => true) %>'
},{
iconCls: 'icon_search',
text: '<%=t ".focus_history" %>',
actsOn: 'one',
actionUrl: '<%= output_distribution_histories_path() + "?job_history_id=\#{job_history_id}" %>',
usePopup: false
},{
iconCls: 'icon_delete',
text: '<%=t ".delete_history" %>',
actsOn: 'many',
method: 'DELETE',
actionUrl: '<%= output_distribution_history_path(-1) %>',
ajaxRequest: true,
actionId: 'delete_history',
customAction: true,
confirmText: '<%=t ".delete_confirmation" %>'
}
]}"
sortField="{field: 'copied_server_time_utc', direction: 'DESC'}"
tbar="{items: []}"
url="<%= output_distribution_histories_path(:format => 'json') %>">