Sha256: 02afca876e1b5b3192a718c5e69c19940fb7fbb9a5409fb83b17a6618076de16

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

= simple_form_for picture do |f|
  = hidden_field_tag :group_id, params[:group_id] if params[:group_id].present?
  = f.input :title, autofocus: true
  = f.input :description
  = f.input :image
  = f.submit t("save"), class: "button"

  = link_to t("delete"), picture, class: "button-danger", method: :delete, data: {confirm: t("are_you_sure")}  unless picture.new_record?

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/views/family_gallery/pictures/_form.html.haml
family_gallery-0.0.3 app/views/family_gallery/pictures/_form.html.haml
family_gallery-0.0.2 app/views/family_gallery/pictures/_form.html.haml
family_gallery-0.0.1 app/views/family_gallery/pictures/_form.html.haml