<% form_for @automate_command,
:html => {
:id => form_id,
:autocomplete => "off",
:onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %>
<%= form.label :automate_system_definition_id, t_label('automate_commands.automate_system'), :class => "name-label item-label" %>
<%= form.label :must_be_enabled, t_label('automate_commands.must_be_enabled'), :class => "name-label item-label" %>
<% end %>
<%= form.check_box :must_be_enabled, :disabled => @view_only %>