mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
<%= form_for @server, html: { class: 'server square' } do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :dns %>
|
|
<%= f.text_field :dns %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :ip, "IP:Port" %>
|
|
<div class="inputs">
|
|
<div class="ip">
|
|
<%= f.text_field :ip %>
|
|
</div>
|
|
<div class="port">
|
|
<%= f.text_field :port %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :password %>
|
|
<%= f.text_field :password %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :description %>
|
|
<%= f.text_field :description %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :irc %>
|
|
<%= f.text_field :irc %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :domain %>
|
|
<%= f.select :domain, @server.domains.invert %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :official, "Available for officials?" %>
|
|
<%= f.check_box :official %>
|
|
<%= f.label :official, class: 'checkbox' %>
|
|
</div>
|
|
|
|
<div class="controls">
|
|
<%= f.submit 'Save' %>
|
|
</div>
|
|
<% end %>
|