Skip to content

Commit

Permalink
Adding details to users edit
Browse files Browse the repository at this point in the history
  • Loading branch information
hcarreras committed Jan 19, 2014
1 parent 7ae814b commit c71e006
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/views/users/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<%= simple_form_for @user, :html => {:multipart => true} do |f| %>
<p><%= f.input :resume, hint: (t :resume_hint) , as: :text, :input_html => { :cols => 255, :rows=> 10 }%></p>
<p><%= f.input :languages, hint: (t :languages_hint) %></p>
<p><%= f.input :resume, label: (t :resume_label), placeholder: (t :resume_hint) , as: :text, :input_html => { :cols => 255, :rows=> 10, :maxlength => 1000 }%></p>
<p><%= f.input :languages, label: (t :languages_label), placeholder: (t :languages_hint) %></p>
<p><%= f.input :education, label: (t :education_label) %></p>
<p><%= f.file_field :profile_picture %></p>
<p><%= f.file_field :profile_picture, label: (t :profile_picture_label) %></p>
<p><%= f.hidden_field :profile_picture_cache %></p>
<p><%= f.button :submit %></p>
<% end %>
5 changes: 4 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ en:
#form
resume_hint: "Here you can put what you consider important"
languages_hint: 'All the languages you speak'
education_label: 'Education'
education_label: 'Education'
resume_label: "Resume"
languages_label: "Languages"
profile_picture_label: "Profile picture"
5 changes: 4 additions & 1 deletion config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,4 +365,7 @@
#form
resume_hint: 'Aquí puedes poner todo lo que consideres relevante'
languages_hint: 'Todos los idiomas que hables'
education_label: 'Formación'
education_label: 'Formación'
resume_label: "Descripción"
languages_label: "Idiomas"
profile_picture_label: "Foto de perfil"

0 comments on commit c71e006

Please sign in to comment.