Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 612 Bytes
<% @page_title = "Edit role " + @role.name %>
<div class="panel">
<h1>Editing role <%= link_to @role.name, @role %></h1>
<%= form_for(@role) do |f| %>
<p><%= f.label :name %><%= f.text_field :name %></p>
<p><%= f.label :abbreviation %><%= f.text_field :abbreviation %></p>
<p><%= f.label :slug %><%= f.text_field :slug %></p>
<p><%= f.label :wikipedia_stub %><%= f.text_field :wikipedia_stub %></p>
<p>This is a <%= f.collection_select :role_type, Role.types, :to_s, :to_s, :include_blank => true %> type role</p>
<p><%= f.submit "Update", :class => :button %></p>
<% end %>
</div>
Something went wrong with that request. Please try again.