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

	<%= fields_for "server[default_user_abilities]", @server.default_user_abilities do |a| %>
		<fieldset>
			<legend>Default permissions for new users</legend>
			<ul>
				<% @server.default_user_abilities.keys.each do |ability| %>
					<li><label><%= a.check_box(ability) %> <%= ability.to_s.humanize %></label></li>
				<% end %>
			</ul>
		</fieldset>
	<% end %>

	<%= f.submit %>
<% end %>