demarches-normaliennes/app/views/attachments/destroy.js.erb
Pierre de La Morinerie 1c61f2de58 views: refactor the attachment/edit view
Make it more reusable, by:

- Renaming `attachment/update` to `attachment/edit`
- Refactoring the CSS styles into their own stylesheet
- Allow to specify the 'accept' option
2019-10-31 10:27:19 +01:00

3 lines
162 B
Text

<%= render_flash(timeout: 5000, sticky: true) %>
<%= remove_element("#attachment_#{@attachment_id}") %>
<%= show_element("#attachment_file_#{@attachment_id}") %>