<% button_id = "button_close_#{@interface.id}" form_id = "new_template" @title_section = t('universal_connector_servers.interfaces.templates.template.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = t('common.new_caption') @help_link_anchor = '' %> <% form_for @interface, :url => interface_templates_path(@interface.id), :html => { :id => form_id, :class => "edit_template", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"} do |form| %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "template-general", :section_title => t('common.general_title'), :details_only => true}) do %>

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

<%= h @interface.name %>

<%= label :template, :name, t_label('common.name'), :class => "name-label item-label" %>
<%= text_field_tag "template[name]", "", :disabled => @view_only,:size => 150, :maxLength => 75, :class => "x-form-field name-field" %>

<%= t('universal_connector_servers.interfaces.templates.template.name_caption') %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "templates-input_parameters", :section_title => t('universal_connector_servers.interfaces.templates.template.input_parameters'), :details_only => true}) do %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "templates-actions", :section_title => t('universal_connector_servers.interfaces.templates.actions.action_title'), :details_only => true}) do %>

 <%= t('universal_connector_servers.interfaces.templates.actions.section_caption') %>

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