%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %>
context_title) + " '" + context_name + "'"%>"
helpUrl="<%=help_link(HELP_URL_CONFIG['jobs']['job_special_instances']['job_special_instances_manager'])%>"
region="center"
lazyRender="true"
dojoType="helpsys.ext.LiveGrid"
authenticity_token="<%= form_authenticity_token %>"
autoExpandColumn="specialInstancesGridDescription"
<% if (params[:parent_id] && params[:parent_type]) %>
baseParameters="{
results: 300,
parent_id: <%= params[:parent_id] %>,
parent_type: '<%= params[:parent_type] %>'
}"
<% end %>
dataColumns="[{name: 'id'}, {name: 'name'}, {name: 'description'}, {name: 'fiscal'}]"
deletePath="<%= special_instance_path(-1) %>"
editPath="<%= edit_special_instance_path(-1) %>"
editInPopup="false"
itemType='<%= t('common.special_instance') %>'
gridColumns="[{dataIndex: 'name', header: '<%=t "common.name" %>', id: 'specialInstancesGridName', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'},
{dataIndex: 'description', header: '<%=t "common.description" %>', id: 'specialInstancesGridDescription', locked: false, sortable: true, width: 200, filter: true, filterType: 'string'}]"
includeDelete="true"
includeEdit="true"
includeShow="true"
includeTagFilter="true"
tagMatchAnyDefault="<%= match_any_default %>"
menuCfg="{items: [{
iconCls: 'icon_edit',
text: '<%= t('.edit_special_instance_object') %>',
actsOn: 'one',
actionUrl: '<%= edit_special_instance_path(-1) %>'
},{
iconCls: 'icon_copy',
text: '<%= t('.copy_special_instance_object') %>',
actsOn: 'one',
actionUrl: '<%= copy_special_instance_path(-1) %>'
},{
iconCls: 'icon_delete',
text: '<%= t('.delete_special_instance_object') %>',
actsOn: 'one',
method: 'DELETE',
actionUrl: '<%= special_instance_path(-1) %>',
ajaxRequest: true,
confirmText: '<%=t ".delete_confirmation" %>'
}, '-', {
iconCls: 'icon_audit',
text: '<%=t "common.show_audit_changes" %>',
actsOn: 'one',
actionUrl: '<%= audits_path(:auditable_id => -1, :auditable_type => 'SpecialInstance') %>'
}, {
iconCls: 'icon_whereused',
text: '<%= t('common.where_used') %>',
actsOn: 'one',
actionUrl: '<%= whereused_special_instance_path(-1) %>'
}
]}"
sortField="{field: 'name', direction: 'ASC'}"
tbar="{items: [{
iconCls: 'icon_create',
text: '<%= t('.create_special_instance_object') %>',
actsOn: 'none',
actionUrl: '<%= new_special_instance_path %>'
}]}"
url="<%= special_instances_path(:format => 'json') %>" style="height:100%;">