Skip to content

Instantly share code, notes, and snippets.

@osiro
Created June 22, 2015 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osiro/72e6a6a1be81f06791d1 to your computer and use it in GitHub Desktop.
Save osiro/72e6a6a1be81f06791d1 to your computer and use it in GitHub Desktop.
- 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment