Skip to content

Instantly share code, notes, and snippets.

@osiro
Created June 22, 2015 01:51

Revisions

  1. Vinicius Osiro created this gist Jun 22, 2015.
    7 changes: 7 additions & 0 deletions edit.html.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    - if policy(@entry).amend?
    = f.input :amendment_notes, hint: "Write an explanation of amendments here. This will be emailed to the timesheet's owner and submitter."

    = f.input :parking_allowance, as: :boolean, wrapper: :checkbox, input_html: { checked: @entry.parking_allowance_claim.present? }

    = link_to_back(user_timesheet_path(user, @entry.timesheet))
    = f.button :submit, "Update"