osem-fcy/app/views/admin/registrations/edit.html.haml

27 lines
966 B
Text
Raw Normal View History

.row
.col-md-12
.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
.row
2015-10-06 14:15:38 +03:00
.col-md-6
= form_for(@registration, url: admin_conference_registration_path(@conference.short_title, @registration)) do |f|
%h4
Personal Information
%hr
= fields_for :user do |u|
.form-group
= u.label :name
= u.text_field :name, class: 'form-control'
= u.label :nickname
= u.text_field :nickname, class: 'form-control'
= u.label :affiliation
= u.text_field :affiliation, placeholder: 'Company/User Group etc.', class: 'form-control'
%h4
Registration Information
%hr
2015-10-06 14:15:38 +03:00
= render partial: 'conference_registrations/registration_info', locals: { f: f }
= f.submit nil, class: 'btn btn-primary'