2014-08-09 18:59:11 +02:00
|
|
|
%h2
|
2014-10-04 18:12:03 +02:00
|
|
|
%em.fa.fa-exclamation-triangle
|
2016-05-21 12:02:19 +02:00
|
|
|
= t '.title'
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2016-05-21 12:02:19 +02:00
|
|
|
= form_for @moderation, url: { action: :destroy },
|
|
|
|
html: { method: :delete } do |f|
|
|
|
|
.field.closer{ title: t('.reason_r_1_long') }
|
2014-10-04 18:12:03 +02:00
|
|
|
= radio_button_tag :reason, :r_1, params[:event] == 'reason_r_1'
|
|
|
|
= label_tag :reason_r_1, t('.reason_r_1')
|
2014-07-07 13:14:17 +02:00
|
|
|
|
2016-05-21 12:02:19 +02:00
|
|
|
.field.closer{ title: t('.reason_r_2_long') }
|
2014-10-04 18:12:03 +02:00
|
|
|
= radio_button_tag :reason, :r_2, params[:event] == 'reason_r_2'
|
|
|
|
= label_tag :reason_r_2, t('.reason_r_2')
|
2014-07-07 13:14:17 +02:00
|
|
|
|
2016-05-21 12:02:19 +02:00
|
|
|
.field.closer{ title: t('.reason_r_3_long') }
|
2014-10-04 18:12:03 +02:00
|
|
|
= radio_button_tag :reason, :r_3, params[:event] == 'reason_r_3'
|
|
|
|
= label_tag :reason_r_3, t('.reason_r_3')
|
2014-07-07 13:14:17 +02:00
|
|
|
|
2016-05-21 12:02:19 +02:00
|
|
|
.field.opener{ title: t('.reason_r_4_long') }
|
|
|
|
= radio_button_tag :reason, :r_4,
|
|
|
|
params[:event] == 'reason_r_4' || !params[:event]
|
2014-10-04 18:12:03 +02:00
|
|
|
= label_tag :reason_r_4, t('.reason_r_4')
|
2014-07-07 13:14:17 +02:00
|
|
|
|
2014-10-04 18:12:03 +02:00
|
|
|
.field
|
2016-05-21 12:02:19 +02:00
|
|
|
= label_tag :reason
|
|
|
|
= f.text_area :reason, cols: 40, rows: 5
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to moderations_path do
|
2014-10-04 18:12:03 +02:00
|
|
|
%em.fa.fa-arrow-left
|
2016-05-21 12:02:19 +02:00
|
|
|
= t '.ko'
|
2014-09-03 18:49:17 +02:00
|
|
|
|
2014-10-04 18:12:03 +02:00
|
|
|
= button_tag do
|
|
|
|
%em.fa.fa-thumbs-down
|
2016-05-21 12:02:19 +02:00
|
|
|
= t '.ok'
|
2014-07-01 15:50:39 +02:00
|
|
|
|
2014-08-09 18:59:11 +02:00
|
|
|
%fieldset
|
2014-10-04 18:12:03 +02:00
|
|
|
%legend
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Event.model_name.human
|
2014-08-09 18:59:11 +02:00
|
|
|
= render file: '/events/show'
|