<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %>
" <%#*advanceDateFilter="{dateField: 'sap_job_start'}"%> includeTagFilter="true" tagMatchAnyDefault="<%= match_any_default %>" baseParameters="{ tag: '<%= params[:tag] %>', results: 300 }" includeAutoRefresh="true" helpUrl="<%=help_link(HELP_URL_CONFIG['sap']['job']['view'])%>" region="center" lazyRender="true" dojoType="helpsys.ext.LiveGrid" authenticity_token="<%= form_authenticity_token %>" dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'sap_system_name'}, {name: 'sap_job_count'}, {name: 'sap_job_status'}, {name: 'sap_planned_start_utc'}, {name: 'sap_event_identifier'}, {name: 'sap_periodic'}, {name: 'sap_job_start_utc'}, {name: 'sap_job_end_utc'}, {name: 'duration'}, {name: 'delay'}, {name: 'sap_initiator'} ]" deletePath="<%= sap_job_path(-1) %>" editPath="<%= sap_job_path(-1) %>" editInPopup="false" itemType='<%= t('common.sap_job') %>' deleteConfirmation='<%=t "sap_jobs.delete_confirmation" %>' gridColumns="[ {dataIndex: 'name', header: '<%=t "common.name" %>', id: 'sap_jobsGridName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'sap_job_count', header: '<%=t ".sap_job_count" %>', id: 'sap_jobsGridJobCount', locked: false, sortable: true, width: 100, filter: true, filterType: 'string'}, {dataIndex: 'sap_system_name', header: '<%=t ".sap_system" %>', id: 'sap_jobsGridSapSystemName', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'sap_job_status', header: '<%=t ".sap_status" %>', id: 'sap_jobsGridJobStatus', locked: false, sortable: true, width: 100, filter: true, filterType: 'list', filterList: <%= SapJob.FILTER_STATUS_ALL %>}, {dataIndex: 'sap_planned_start_utc', header: '<%=t ".planned_start" %>', id: 'sap_jobsGridPlannedStart', locked: false, sortable: true, width: 150, filter: true, filterType: 'dateTime'}, {dataIndex: 'sap_event_identifier', header: '<%=t ".event_identifier" %>', id: 'sap_jobsGridEventIdentifier', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'}, {dataIndex: 'sap_periodic', header: '<%=t ".periodic" %>', id: 'sap_jobsGridPeriodic', locked: false, sortable: true, width: 100, filter: true, filterType: 'boolean', yesText: '<%=t "common.key_yes" %>', noText: '<%=t "common.key_no" %>'}, {dataIndex: 'sap_job_start_utc', header: '<%=t ".start_date" %>', id: 'sap_jobsGridJobStart', locked: false, sortable: true, width: 150, filter: true, filterType: 'dateTime'}, {dataIndex: 'sap_job_end_utc', header: '<%=t ".end_date" %>', id: 'sap_jobsGridJobEnd', locked: false, sortable: true, width: 150, filter: true, filterType: 'dateTime'}, {dataIndex: 'duration', header: '<%=t ".duration" %>', id: 'sap_jobsGridDuration', locked: false, sortable: false, width: 150, filter: false}, {dataIndex: 'delay', header: '<%=t ".delay" %>', id: 'sap_jobsGridDelay', locked: false, sortable: false, width: 150, filter: false}, {dataIndex: 'sap_initiator', header: '<%=t ".initiator" %>', id: 'sap_jobsGridInitiator', locked: false, sortable: true, width: 150, filter: true, filterType: 'string'} ]" includeDelete="true" includeEdit="true" includeShow="true" autoFill="false" forceFit="false" menuCfg="{items: [{ iconCls: 'icon_page', text: '<%=t ".show_sap_job" %>', actsOn: 'one', actionUrl: '<%= sap_job_path(-1) %>' },{ iconCls: 'icon_copy', text: '<%=t ".copy_sap_job" %>', actsOn: 'one', actionId: 'copy_sap_job', actionUrl: '<%= copy_sap_job_path(-1) %>' },{ iconCls: 'icon_delete', text: '<%=t ".delete_sap_job" %>', actsOn: 'many', method: 'DELETE', actionUrl: '<%= sap_job_path(-1) %>', ajaxRequest: true, actionId: 'delete_sap_job', customAction: true, confirmText: '<%=t "sap_jobs.delete_confirmation" %>' },{ iconCls: 'icon_delete', text: '<%=t ".cancel_sap_job" %>', actsOn: 'one', method: 'POST', actionUrl: '<%= cancel_sap_job_path(-1) %>', ajaxRequest: true, confirmText: '<%=t ".cancel_confirmation" %>' },'-',{ iconCls: 'icon_page', text: '<%=t ".show_sap_joblog" %>', actsOn: 'one', actionUrl: '<%= sap_joblog_path(-1) %>' },'-',{ iconCls: 'icon_create', text: '<%=t ".create_sap_job_definition" %>', actsOn: 'one', actionId: 'create_sap_job_definition', actionUrl: '<%= create_job_definition_sap_job_path(-1) %>' },'-',{ iconCls: 'icon_do_job_now', text: '<%=t ".run_job_now" %>', actsOn: 'one', actionUrl: '<%= prompt_run_job_sap_job_path(-1) %>', usePopup: true } ]}" sortField="{field: 'sap_job_start_utc', direction: 'DESC'}" tbar="{items: []}" url="<%= sap_jobs_path(:format => 'json') %>">