Method: CoreLinkHelper#add_link_button

Defined in:
app/helpers/core_link_helper.rb

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 add_link_button(path, options)
  options[:title] ||= t('ui_form.actions.add')
  options[:icon] ||= 'add'
  (:a,
              href: path,
              class: 'btn-floating btn-large right',
              style: 'padding: 0;margin: 0px 15px',
              title: options[:title]) do
    concat((:i, class: 'material-icons') { options[:icon] })
  end
end