2014-03-17 16:36:32 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2014-11-25 10:47:18 +01:00
|
|
|
.page-header
|
|
|
|
|
%h1
|
2016-05-01 18:50:07 +03:00
|
|
|
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
|
2014-03-17 16:36:32 +01:00
|
|
|
.row
|
2015-10-06 14:15:38 +03:00
|
|
|
.col-md-6
|
|
|
|
|
= semantic_form_for(@registration, url: admin_conference_registration_path(@conference.short_title, @registration)) do |f|
|
2014-08-22 15:08:54 +02:00
|
|
|
= f.inputs 'Personal Information' do
|
2016-05-02 18:02:57 +03:00
|
|
|
= semantic_fields_for :user do |u|
|
2014-08-22 15:08:54 +02:00
|
|
|
= 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
|
2015-10-06 14:15:38 +03:00
|
|
|
= render partial: 'conference_registrations/registration_info', locals: { f: f }
|
|
|
|
|
= f.action :submit, button_html: { class: 'btn btn-primary' }
|