openSUSE/osem

View on GitHub
app/views/admin/sponsorship_levels/_form.html.haml

Summary

Maintainability
Test Coverage
= form_for(@sponsorship_level, url: (@sponsorship_level.new_record? ? admin_conference_sponsorship_levels_path : admin_conference_sponsorship_level_path(@conference.short_title, @sponsorship_level))) do |f|
  .form-group
    = f.label :title
    %abbr{title: 'This field is required'} *
    = f.text_field :title, autofocus: true, required: true, class: 'form-control'
  %p.text-right
    = f.submit nil, class: 'btn btn-primary'