engine/app/helpers/admin/box_helper.rb

22 lines
561 B
Ruby
Raw Normal View History

module Admin::BoxHelper
def box_flash_message
2010-06-03 15:32:40 +00:00
if not flash.empty?
content_tag :div, flash.values.first,
:id => "flash-#{flash.keys.first}",
2010-06-03 15:32:40 +00:00
:class => 'application-message'
else
''
end
2010-06-03 15:32:40 +00:00
end
def box_button_tag(label)
2010-06-03 15:32:40 +00:00
content_tag(:button, content_tag(:span, label), :type => 'submit', :class => 'button')
end
def next_installation_step_link(step = 1, label = nil)
link_to(content_tag(:span, label || t('admin.installation.common.next')), admin_installation_step_url(step), :class => 'button')
end
end