.row
  .col-md-12
    .page-header
      %h1
        Registration for #{@user.username} (#{@user.email})

        = link_to 'Edit User', edit_admin_user_path(@user), class: 'btn btn-primary pull-right' if can? :edit, @user
.row
  .col-md-6
    = semantic_form_for(@registration, url: admin_conference_registration_path(@conference.short_title, @registration)) do |f|
      = f.inputs 'Personal Information' do
        = semantic_fields_for  :user do |u|
          = u.input :name, as: :string
          = u.input :nickname, as: :string
          = u.input :affiliation, placeholder: 'Company/User Group/nothing', as: :string
      = f.inputs 'Registration Information' do
        = render partial: 'conference_registrations/registration_info', locals: { f: f }
      = f.action :submit, button_html: { class: 'btn btn-primary' }
