app/helpers/extface/application_helper.rb in extface-0.2.3 vs app/helpers/extface/application_helper.rb in extface-0.2.4
- old
+ new
@@ -34,7 +34,18 @@
render "extface/driver/#{driver.class.name.demodulize.underscore}/settings", form: form
end
end
end
+ def driver_control(driver)
+ content_tag(:div, class: 'panel panel-default') do
+ content_tag(:div, class: 'panel-heading') do
+ "#{driver.class::NAME} #{t('.control_panel')}".html_safe
+ end +
+ content_tag(:div, class: 'panel-body') do
+ render "extface/driver/#{driver.class.name.demodulize.underscore}/control"
+ end
+ end
+ end
+
end
end