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

  <fieldset>
    <legend>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>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>