Sha256: 79601d61d23358345c38f7a1fb1d91d103b6e351482fb36cfc907589244ec39b

Contents?: true

Size: 1.75 KB

Versions: 3

Compression:

Stored size: 1.75 KB

Contents

= form_for @person, :html => {:class => 'edit person'} do |f|
  .image
    - @person.build_image_upload unless @person.image_upload
    = render :partial => "cropper/uploads/pick", :locals => {:upload => @person.image_upload, :holder => @person, :multiplier => 4}

  - if Droom.use_forenames?
    %p.name
      = f.label :forename
      %br
      = f.text_field :forename, :required => true
    %p.name
      = f.label :name, "Surname"
      %br
      = f.text_field :name, :required => true

  - else
    %p.name
      = f.label :name
      %br
      = f.text_field :name, :required => true

  .contacts
    %p.email
      = f.label :email
      %br
      = f.text_field :email, :required => true
    
    %p.phone
      = f.label :phone, :class => "optional"
      %br
      = f.text_field :phone

    - if Droom.use_separate_mobile_number
      %p.secondary
        = f.label :mobile, :class => "optional"
        %br
        = f.text_field :mobile

  - if admin?
    - if Droom.use_organisations?
      %p.organisation
        = f.label :organisation_id
        %br
        = f.select :organisation_id, Droom::Organisation.for_selection, :class => 'preferences'

    - if @person.new_record?
      %p.admin
        = f.check_box :invite_on_creation, :class => 'invite'
        = f.label :invite_on_creation      
        = f.check_box :admin_user
        = f.label :admin_user

  - if Droom.use_biogs?
    - @person.description = "<p></p>" unless @person.description?
    .description.wysihtml
      .toolbar#t1
        = render 'droom/shared/toolbar'
      = f.text_area :description

  .buttons
    - if current_user.is_person?(@person)
      = f.submit t(:save_your_profile)
    - else
      = f.submit t(:save_person)
    = t :or
    = link_to t(:cancel), '#', :class => 'cancel'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/people/_form.html.haml
droom-0.4.2 app/views/droom/people/_form.html.haml
droom-0.4.1 app/views/droom/people/_form.html.haml