<%= form_with(model: site) do |form| %>
<%= form.text_field :name , { class: "input"} %>
<%= form.text_field :domain , { class: "input"} %>
<%= form.text_field :gateway , { class: "input"} %>
<%= form.text_field :nameserver , { class: "input"} %>
<%= form.text_field :network , { class: "input"} %>
<%= form.text_field :netmask , { class: "input"} %>
<%= form.label :apiurl, class: "label" %>
<%= form.text_field :apiurl , { class: "input"} %>
<%= form.label :nfsserver_path, class: "label" %>
<%= form.text_field :nfsserver_path , { class: "input"} %>
<%= form.text_field :server_ip , { class: "input"} %>
<%= form.text_field :server_port , { class: "input"} %>
<%= form.text_field :fileserver_ip , { class: "input"} %>
<%= form.text_field :fileserver_port , { class: "input"} %>
<%= form.text_field :fileserver_basepath , { class: "input"} %>
<%= form.label :cfenginehub, class: "label" %>
<%= form.text_field :cfenginehub , { class: "input"} %>
<% if not @site.cfenginehub.empty? -%> <%= link_to "Goto cfengine hub", "http://#{@site.cfenginehub}", class: "button is-info", :target => "_blank" %> <% end -%>
<%= form.label :timezone, class: "label" %>
<%= form.text_field :timezone , { class: "input"} %>
<%= link_to "Return to Site index", "/sites", class: "button is-success" %>
<% end %>