<%= select_category(f, @module_app) %>
<%= select_tags(f, @module_app) %>
<% if @site_server.new_record? %>
<%= f.text_field :server_name,{:id=>'server_name'} %>
<% else %>
<%= @site_server.server_name %>
<% f.hidden_field :server_name,{:id=>'server_name'} %>
<% end%>
<%
tp = @site_server.domain_names
tp << '' if tp.length == 0
tp.each_with_index do |domain_name,i| %>
<%= '
'.html_safe if i !=0 %>
<%= text_field_tag "site_server[domain_names][]",domain_name,{:id=>nil,:class=>"domain_name"} %>
<% delete_domain_button if i !=0 %>
<% end %>
<%= f.button "#{t('add')} domain", class: 'btn btn-info',
:onclick=> "add_domain(this)",
:type => 'button'
%>
<%= f.text_field :ip,{:id=>'ip'} %>
<%= f.text_field :account,{:id=>'account'} %>
<%= f.text_field :password,{:id=>'password'} %>