17 lines
776 B
Text
17 lines
776 B
Text
/ Ask the user to add a description if not yet done
|
|
- if screenshot.description.blank?
|
|
/ TODO: Allow the user to edit the screenshot's description again?
|
|
div
|
|
= form_for screenshot, url: update_screenshot_description_path(screenshot) do |f|
|
|
label for='description' Please add a short description of this screenshot:
|
|
.input-group
|
|
span.input-group-label = fa_icon 'edit wobble'
|
|
= f.text_field 'description', class: 'input-group-field', maxlength: 80
|
|
.input-group-button
|
|
= f.submit 'Save', class: 'button success'
|
|
|
|
/ Offer to delete the screenshot
|
|
a.button.small.alert[
|
|
href=delete_screenshot_path(screenshot.id)
|
|
onclick="return confirm('Really delete your screenshot again?');"
|
|
] Delete your screenshot
|