summaryrefslogtreecommitdiff
path: root/app/views/servers/_form.html.erb
blob: 8853a80e173bed4bc363727f13acf13500f55fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<%= form_for(@server) do |f| %>
  <%= render "common/error_messages", :target => @server %>

  <fieldset style="color: rgb(221, 145, 37)">
    <legend style="color: rgb(221, 145, 37); border-color: rgb(221, 145, 37)">Default permissions for new users</legend>
    <ul >
      <%= fields_for "server[default_user_abilities]", @server.default_user_abilities do |a| %>
      <% @server.default_user_abilities.keys.each do |ability| %>
      <li ><label><%= a.check_box(ability) %> <%= ability.to_s.humanize %></label></li>
      <% end %>
    <% end %>
    </ul>
  </fieldset>
  <p>
    <div class="actions">
      <%= f.submit %>
    </div>
  </p>
<% end %>