Sha256: 6e776b589729f869ef5f22705bd2bc67a11b2a2c393ade5eda81304537caef78

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

- content_for :head do
  = stylesheet_link_tag 'Jcrop/css/jquery.Jcrop.min'

%h1= @person.name

= simple_form_for @person, url: person_image_path(@person), method: :put do |f|
  .form-hint Move and resize the box to crop your profile image.
  .form-group
    = image_tag @person.image.croppable.url, id: 'croppable'

    -  [:crop_x, :crop_y, :crop_w, :crop_h].each do |x|
      = f.hidden_field x

  .form-group
    = f.button :submit, 'Update Image'

  .form-group
    %p= link_to 'Back', edit_person_path(@person)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peoplefinder-0.0.2 app/views/peoplefinder/person_image/edit.html.haml