Created
April 29, 2010 20:38
-
-
Save andresgutgon/384206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% form.inputs :name => "Datos de acceso" do %> | |
<%= form.input :email %> | |
<%= form.input :password %> | |
<%= form.input :password_confirmation %> | |
<% end %> | |
<% @user.build_profile(:contact_email => @user.email) unless @user.profile %> | |
<% form.semantic_fields_for :profile do |profile| %> | |
<% profile.semantic_fields_for :address do |address| %> | |
<%= address.input :address, :as => :select, :label_method => :name %> | |
<% end %> | |
<%#= profile.collection_select :address_id, Address.all, :id, :name %> | |
<% form.inputs :name => "Tu perfil" do %> | |
<%= profile.input :name %> | |
<%= profile.input :family_name %> | |
<%= profile.input :second_family_name %> | |
<%= profile.input :job_category,:as => :select, :collection => job_categories, :prompt => I18n.t("prompt_job_categories") %> | |
<%= profile.input :contact_email %> | |
<%= profile.input :phone %> | |
<%= profile.input :fax %> | |
<%= profile.input :floor %> | |
<%= profile.input :room %> | |
<%= profile.input :avatar %> | |
<% end %> | |
<% form.inputs :name => "Interés científico" do %> | |
<%= profile.input :research_interest %> | |
<% end %> | |
<% end %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment