clarion/app/views/management/events/_form_participations.html.slim

21 lines
896 B
Plaintext
Raw Normal View History

#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
2016-10-09 02:45:20 +03:00
= ff.association :participant, collection: User.unscoped.order(email: :asc), label_method: :email
= ff.input :approved, default: true
.col-lg-6
.panel.panel-default
.panel-heading
.panel-title
2016-10-09 02:48:35 +03:00
= t 'actions.new.title_c', model: Participation.model_name.human.mb_chars.downcase
.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'