<%= semantic_form_for @fetprofile do |f| %> <%= f.inputs do %>
<%= f.input :vorname %>
<%= f.input :nachname %>
<%= f.input :short %>
<%= f.input :desc %>
<%= f.input :active %> <%= f.input :geschlecht,:as=>:select, :collection=>Fetprofile::GESCHLECHT.invert %>
<%= image_tag(@fetprofile.picture.thumb.url) unless @fetprofile.picture.nil? %> <%= f.file_field :picture %> <%= f.hidden_field :picture_cache %>
<%= f.input :fetmailalias %>
Adresse: <%=f.input :street %> <%=f.input :plz %> <%=f.input :city %> KOntakt: <%=f.input :instant %> <%=f.input :skype %> <%=f.input :telnr %> <%=f.input :hdynr %>
Geburtstag: <%=f.input :birth_day %> <%=f.input :birth_month %> <%=f.input :birth_year %>
<% @memberships.each do |m| %> <%= render partial:"membership_fields", object: m , locals: {:f=>f} %> <% end %>
<% end %>
<%= f.actions do %> <%= f.action :submit, :as => :input %> <% end %>
<% end %>