From 01460ca2fd4cadab61db4ecc35be0236d398f71d Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 9 Oct 2016 02:40:22 +0300 Subject: [PATCH] Add a file missed in the previous commit --- .../events/_form_participations.html.slim | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/views/management/events/_form_participations.html.slim diff --git a/app/views/management/events/_form_participations.html.slim b/app/views/management/events/_form_participations.html.slim new file mode 100644 index 0000000..be62abd --- /dev/null +++ b/app/views/management/events/_form_participations.html.slim @@ -0,0 +1,20 @@ +#participations + = form.simple_fields_for :participations do |ff| + .col-lg-6 + .panel.panel-default + .panel-heading + .panel-title + = Participation.model_name.human.mb_chars.capitalize + = ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right'] + span.clearfix + .panel-body + = ff.association :participant, label_method: :email + = ff.input :approved, default: true +.col-lg-6 + .panel.panel-default + .panel-heading + .panel-title + = t 'actions.new.title_f', model: Participation.model_name.human + .panel-body + .form-group.text-center + = form.link_to_add t('actions.create.button', model: Participation.model_name.human), :participations, data: {target: '#participations'}, class: 'btn btn-success'