Sha256: 4dd855136752488b95226c8583c79c76e06fece7d6e28ab1d37eb736d15cff79

Contents?: true

Size: 534 Bytes

Versions: 2

Compression:

Stored size: 534 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
    = profile_image_tag @person, @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

2 entries across 2 versions & 1 rubygems

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