<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@command_set.id}" form_id = "edit_job_#{@command_set.id}" @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @command_set.name @help_link_anchor = HELP_URL_CONFIG['scheduling_objects']['ibmi_command_sets']['ibmi_command_set_settings'] %> <% form_for(@command_set, :url => ibmi_command_set_path(@command_set.id), :html => { :id => form_id, :class => "edit-command-set", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"}) do |form| %> <%= form.hidden_field :command_set_type %> <% render( :layout => 'shared/edit_section', :locals => { :section_id => "command-set-general", :section_title => t('common.general_title')}) do %>

<%= t_label('common.name') %>

<%= h @command_set.name %>

<%= t_label('common.description') %>

<%= h @command_set.description %>

<%= t_label('common.tags') %>

<%= @command_set.tag_list %>

<% end %> <% render( :layout => 'shared/edit_section', :locals => { :section_id => "command-set-commands", :section_title => t('.commands_tab')}) do %>

<%= t_label('common.ibmi_command_set') %>

<% if @command_set.commands.count == 1 %>

<%= t('jobs.job.command', :count => @command_set.commands.count) %>

<% else %>

<%= t('jobs.job.commands', :count => @command_set.commands.count) %>

<% end %>
<% end %>
<%= standard_buttons(button_id) %>
<% end %>