Gremien, Memberships Update

This commit is contained in:
Andreas Stephanides
2013-08-25 16:37:59 +02:00
parent ad6e387635
commit 3bd04f9101
9 changed files with 33 additions and 9 deletions

View File

@@ -2,7 +2,9 @@
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :typ %>
<%= f.input :typ, :as => :select, :collection => Gremium::TYPEN.invert %>
<%= f.input :geschlecht, :as => :select, :collection => Gremium::GESCHLECHT.invert %>
<%= f.input :thema, :as=> :select, :collection => Thema.all %>
<% end %>
<%= f.actions do %>

View File

@@ -12,9 +12,9 @@
<p>
<b>Typ:</b>
<%= @gremium.typ %>
<%= Gremium::TYPEN[@gremium.typ.to_i].to_s %>
</p>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
<%= link_to 'Back', gremien_path %>
<%= link_to 'Back', gremien_path %>