2014-10-14 18:27:28 +03:00
|
|
|
div#tracks
|
|
|
|
= form.simple_fields_for :tracks do |ff|
|
|
|
|
.col-lg-6
|
|
|
|
.panel.panel-default
|
2014-10-14 23:07:50 +03:00
|
|
|
.panel-heading
|
|
|
|
.panel-title
|
|
|
|
= Track.model_name.human.mb_chars.capitalize
|
2015-04-09 00:10:04 +03:00
|
|
|
= ff.link_to_remove icon(:remove), class: ['btn', 'btn-danger', 'btn-xs', 'pull-right', ff.object.events.any? ? 'disabled' : nil]
|
2014-10-14 23:07:50 +03:00
|
|
|
|
2014-10-14 18:27:28 +03:00
|
|
|
.panel-body
|
|
|
|
= ff.input :name
|
|
|
|
= ff.input :color, as: :color
|
2015-10-18 14:00:03 +03:00
|
|
|
= ff.input :foreground_color, as: :color
|
2015-10-18 13:54:14 +03:00
|
|
|
= ff.input :css_class
|
2015-10-18 13:58:44 +03:00
|
|
|
= ff.input :css_style
|
2014-10-14 18:27:28 +03:00
|
|
|
= ff.input :description
|
|
|
|
.col-lg-6
|
|
|
|
.panel.panel-default
|
2014-10-14 23:07:50 +03:00
|
|
|
.panel-heading
|
|
|
|
.panel-title
|
|
|
|
= t 'actions.new.title_m', model: Track.model_name.human
|
|
|
|
.panel-body.text-center
|
2014-10-14 20:34:33 +03:00
|
|
|
= form.link_to_add t('actions.create.button', model: Track.model_name.human), :tracks, data: {target: '#tracks'}, class: 'btn btn-success'
|