mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Retire semantic_form_for
Also a buttload of form cleanups...
This commit is contained in:
parent
350b1ebbbe
commit
81853d1ef9
136 changed files with 1825 additions and 1441 deletions
|
|
@ -7,12 +7,20 @@
|
|||
= 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
|
||||
= 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
|
||||
= render partial: 'conference_registrations/registration_info', locals: { f: f }
|
||||
= f.action :submit, button_html: { class: 'btn btn-primary' }
|
||||
= f.submit nil, class: 'btn btn-primary'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue