mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
24 lines
1.6 KiB
Text
24 lines
1.6 KiB
Text
.container
|
|
.row-fluid
|
|
= semantic_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f|
|
|
= f.inputs :name => "Profile" do
|
|
= f.fields_for :person do |p|
|
|
= p.input :first_name, :as => :string
|
|
= p.input :last_name, :as => :string
|
|
= p.input :public_name, :as => :string
|
|
= p.input :irc_nickname, :label => "IRC nick:", :as => :string
|
|
= p.input :company, :label => "Affiliation", :as => :string, :hint => "This could be a company, a user group, or nothing at all."
|
|
= image_tag current_user.person.avatar(:small)
|
|
= p.input :avatar, :label => "Picture", :hint => "Upload a new picture."
|
|
= p.input :biography, :input_html => {:rows => 5, "onkeyup" => "word_count(this, 'biography-count', 150)"}, :for => :person
|
|
You have used
|
|
%span#biography-count #{current_user.person.biography_word_count}
|
|
words. Biographies are limited to 150 words.
|
|
%br
|
|
%br
|
|
= f.inputs :name => "Account" do
|
|
= f.input :email, :required => false
|
|
= f.input :password, :hint => "(Leave blank if you don't want to change it)", :input_html => {:autocomplete => "off"}
|
|
= f.input :password_confirmation, :input_html => {:autocomplete => "off"}
|
|
= f.input :current_password, :input_html => {:autocomplete => "off"}, :hint => "(we need your current password to confirm password or email changes)"
|
|
= f.action :submit, :as => :button, :label => "Update", :button_html => {:class => "btn btn-primary"}
|