<%= select_category(f, @module_app) %>
<%= select_tags(f, @module_app) %>
<% unless @site_server.new_record? %>
<%= f.check_box :active,:id=>"active_server" %>
<% end %>
<% 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.check_box :enable_redirect_default_domain,:id=>"enable_redirect_default_domain" %>
<%
@site_server.default_domain_names.each_with_index do |domain_name,i| %>
<%= '
'.html_safe if i !=0 %>
<%= text_field_tag "site_server[default_domain_names][]",domain_name,{:id=>nil,:class=>"domain_name"} %>
<%= delete_domain_button %>
<% end %>
<%= f.button "#{t('add')} domain", class: 'btn btn-info',
:onclick=> "add_default_domain(this)",
:type => 'button'
%>
<%= f.text_field :ip,{:id=>'ip'} %>
<%= f.text_field :account,{:id=>'account'} %>
<%= f.text_field :password,{:id=>'password'} %>