mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-02 22:47:45 -05:00
11 lines
423 B
Plaintext
11 lines
423 B
Plaintext
- if can? :edit, model
|
|
%small.edit-link
|
|
%a.editable-date#description{"data-field" => "#date--#{model.id}-#{field.to_s}",
|
|
"data-display": display_field, href: "#"}
|
|
= edit_icon
|
|
.hide{id: "date--#{model.id}-#{field.to_s}"}
|
|
= bootstrap_form_for(model) do |f|
|
|
= f.date_field field,
|
|
value: model.send(field) ? model.send(field).to_fs(:ymd) : '', label: 'When?'
|
|
= f.submit :save
|