Method: CoreLinkHelper#add_link_button
- Defined in:
- app/helpers/core_link_helper.rb
#add_link_button(path, options) ⇒ Object
Add the ‘Add` button
358 359 360 361 362 363 364 365 366 367 368 |
# File 'app/helpers/core_link_helper.rb', line 358 def (path, ) [:title] ||= t('ui_form.actions.add') [:icon] ||= 'add' content_tag(:a, href: path, class: 'btn-floating btn-large right', style: 'padding: 0;margin: 0px 15px', title: [:title]) do concat(content_tag(:i, class: 'material-icons') { [:icon] }) end end |