mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 06:01:12 +00:00
User/Person models merge
This commit is contained in:
parent
66b84e3660
commit
23bf55b66c
80 changed files with 1064 additions and 1221 deletions
|
|
@ -2,19 +2,17 @@
|
|||
.col-md-12
|
||||
= 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."
|
||||
= p.input :biography, :input_html => {:rows => 5, "onkeyup" => "word_count(this, 'biography-count', 150)"}, :for => :person
|
||||
= f.fields_for :user do |u|
|
||||
= u.input :name, :as => :string
|
||||
= u.input :nickname, :as => :string
|
||||
= u.input :affiliation, :as => :string, :hint => "This could be a company, a user group, or nothing at all."
|
||||
= u.input :biography, :input_html => {:rows => 5, "onkeyup" => "word_count(this, 'biography-count', 150)"}
|
||||
You have used
|
||||
%span#biography-count #{current_user.person.biography_word_count}
|
||||
%span#biography-count #{current_user.biography_word_count}
|
||||
words. Biographies are limited to 150 words.
|
||||
%br
|
||||
%br
|
||||
= render :partial => 'devise/registrations/volunteerperson', :locals => {:p => p}
|
||||
= render :partial => 'devise/registrations/volunteeruser', :locals => {:u => u}
|
||||
= f.inputs :name => 'OpenID' do
|
||||
%h4
|
||||
Currently using the following openIDs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue