2014-08-09 18:59:11 +02:00
|
|
|
%h2
|
|
|
|
%em.fa.fa-trash-o
|
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
|
|
|
|
|
2014-05-25 23:59:03 +02:00
|
|
|
= f.submit t('.ok'), name: :yes
|
|
|
|
= link_to t('.ko'), @event, class: :button
|
|
|
|
|
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'
|