clarion/app/views/management/conferences/_form_tracks.html.slim

22 lines
803 B
Plaintext

div#tracks
= form.simple_fields_for :tracks do |ff|
.col-lg-6
.panel.panel-default
.panel-heading
.panel-title
= Track.model_name.human.mb_chars.capitalize
= ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right', ff.object.events.any? ? 'disabled' : nil]
.panel-body
= ff.input :name
= ff.input :color, as: :color
= ff.input :css_class
= ff.input :description
.col-lg-6
.panel.panel-default
.panel-heading
.panel-title
= t 'actions.new.title_m', model: Track.model_name.human
.panel-body.text-center
= form.link_to_add t('actions.create.button', model: Track.model_name.human), :tracks, data: {target: '#tracks'}, class: 'btn btn-success'