2014-08-09 18:59:11 +02:00
|
|
|
%h2
|
2018-02-11 18:06:32 +01:00
|
|
|
%em.fa.fa-trash-alt
|
2015-07-25 18:32:27 +02:00
|
|
|
= t '.title'
|
2014-05-25 23:59:03 +02:00
|
|
|
|
2014-08-09 18:59:11 +02:00
|
|
|
- if @event.moderated?
|
2015-07-25 18:32:27 +02:00
|
|
|
%h3.warning= t '.already_moderated'
|
2014-05-25 23:59:03 +02:00
|
|
|
|
2014-08-09 18:59:11 +02:00
|
|
|
%fieldset
|
2014-05-25 23:59:03 +02:00
|
|
|
= form_for @event, method: :delete do |f|
|
|
|
|
= hidden_field_tag :secret, params[:secret]
|
2015-07-25 18:32:27 +02:00
|
|
|
%h2= t '.confirm'
|
2014-05-25 23:59:03 +02:00
|
|
|
|
2016-09-17 19:41:29 +02:00
|
|
|
.field.reason
|
|
|
|
= f.label :reason
|
|
|
|
= f.text_area :reason, cols: 40, rows: 5
|
|
|
|
|
2018-02-11 18:06:32 +01:00
|
|
|
.actions
|
|
|
|
= link_to @event do
|
|
|
|
%em.fa.fa-arrow-left
|
|
|
|
= t '.ko'
|
|
|
|
= f.button do
|
|
|
|
%em.fa.fa-check
|
|
|
|
= t '.ok'
|
2014-05-25 23:59:03 +02:00
|
|
|
|
2014-08-09 18:59:11 +02:00
|
|
|
%fieldset
|
2015-07-25 18:32:27 +02:00
|
|
|
%legend= Event.model_name.human
|
2014-08-09 18:59:11 +02:00
|
|
|
= render file: '/events/show'
|