Removed user dropdown - adding description field and delete button directly into details view

This commit is contained in:
Christoph Haas 2016-07-15 20:10:19 +02:00
parent 5a203415b0
commit e2c73511bc
2 changed files with 17 additions and 7 deletions

View file

@ -7,11 +7,5 @@
href=delete_screenshot_path(screenshot.id)
onclick="return confirm('Really delete the screenshot?');"
] Delete screenshot
p Write a description for this screenshot:
= form_tag(update_screenshot_description_path(screenshot.package.name, screenshot.id))
.input-group
= text_field_tag 'description', nil, class: 'input-group-field', maxlength: 40
.input-group-button
=submit_tag 'OK', class: 'button success'
p
i =screenshot.status