<% button_id = "button_close_#{@tmp.uuid}" form_id = "edit_interface_#{@tmp.uuid}" url = interface_templates_path(@tmp.interface_id) @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 = h @tmpl['name'] @help_link_anchor = '' %> <% form_for @tmpl, :url => interface_template_path(@tmp.interface_id, @tmp.uuid), :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", :value => @tmpl['name'] %>

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

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

<%= h @tmp.uuid %>

<% end %> <% render(:layout => 'shared/edit_section', :locals => { :section_id => "interface-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 %>