<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@interface['id']}" form_id = "edit_interface_#{@interface['id']}" dialog_id = "edit_#{@interface['id']}" @title_section = t('universal_connector_servers.interfaces.interface.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @interface['name'] @help_link_anchor = HELP_URL_CONFIG['uc']['interface_settings'] %> <% form_for @interface, :url => update_interface_path(@interface['id']), :html => { :id => form_id, :class => "edit_interface", :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 => "interface-general", :section_title => t('common.general_title')}) do %> <%= hidden_field_tag "interface[name]", @interface['name'] %> <%= hidden_field_tag "interface[description]", @interface['description'] %> <%= hidden_field_tag "interface[enabled]", (@interface['enabled'].nil? || @interface['enabled']) ? true : false %>

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

<%= h @interface['name'] %>

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

<%= h @interface['description'] %>

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

<%= h @interface['uuid'] %>

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

<%= (@interface['enabled'].nil? || @interface['enabled']) ? t('common.key_yes') : t('common.key_no') %>

<% end %> <%= render( :partial => 'edit_shared_variables', :layout => 'shared/edit_section', :locals => { :section_id => 'interface-shared-variables', :section_title => t('common.shared_variable'), :details_only => true}) %> <%= render( :partial => 'edit_templates', :layout => 'shared/edit_section', :locals => { :section_id => 'interface-templates', :section_title => t('common.templates'), :details_only => true}) %>
<%= standard_buttons(button_id) %>
<% end %>