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

@@ -3,7 +3,7 @@
<%= f.input :gremium, :as=>:radio %>
<%= f.input :start %>
<%= f.input :stop %>
<%= f.input :typ ,:as=>:radio, :collection=>{"mitglied"=>1, "ersatzmitglied"=>2} %>
<%= f.input :typ ,:as=>:radio,:collection=>Membership::TYPEN.invert %>
<% end %>
<%= f.actions do %>

View File

@@ -0,0 +1,6 @@
<%= "seit" if membership.stop.nil? %>
<%=membership.start.to_s %>
<%= " bis "+membership.stop.to_s unless membership.stop.nil? %>
<%= Membership::TYPEN[membership.typ.to_i] %>
<%= membership.gremium.fall2 %>