<%= semantic_form_for @fetprofile do |f| %>
<%= f.inputs do %>
<%= f.input :vorname %>
<%= f.input :nachname %>
<%= f.input :short %>
<%= f.input :desc , input_html: {style: "width:100%"}%>
<%= 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 %>
<%= I18n.t("fetprofile.adresse") %>:
<%=f.input :street %>
|
<%=f.input :plz, input_html: {style: "width:5em"} %> |
<%=f.input :city, input_html: {style: "width:5em"} %> |
<%=f.input :telnr %>
<%=f.input :hdynr %>
<%= I18n.t("fetprofile.geburtstag") %>:
| <%=f.input :birth_day, input_html: {style: "width:3em"}%> |
<%=f.input :birth_month, input_html: {style: "width:3em"} %> |
<%=f.input :birth_year, input_html: {style: "width:5em"} %> |
<%=f.input :instant %>
<%=f.input :skype %>
<% @memberships.each do |m| %>
<%= render partial:"membership_fields", object: m , locals: {:f=>f} %>
<% end %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :button, :label=>I18n.t("common.save") %>
<%= f.action :submit, :as => :button, :label=>I18n.t("common.savecont"), :button_html=>{value: "continue"} %>
<%= f.action :cancel, :as=> :link , :label=>I18n.t("common.cancel") %>
<% end %>
<% end %>