Sha256: ed5bc7bbe834323e547f8d9baed0ab1d386370f475f64480548a0cb70c93dae7
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
class SimpleForm::FormBuilder def commit_button_or_cancel template.content_tag :div, :class => 'buttons' do String.new.tap do |html| html << button(:submit) html << " or " html << template.link_to(template.t('simple_form.buttons.cancel'), :back, :class => 'cancel') end.html_safe end end end module SimpleForm::Components::Hints def hint_text @hint_text ||= (options[:hint] || translate(:hints)).html_safe end end
Version data entries
3 entries across 3 versions & 1 rubygems