mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
make attended a button
This commit is contained in:
parent
c7f326765c
commit
80fe0e234b
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,8 @@
|
||||||
- if field == "name"
|
- if field == "name"
|
||||||
#{registration.last_name} #{registration.first_name} (#{registration.public_name})
|
#{registration.last_name} #{registration.first_name} (#{registration.public_name})
|
||||||
|
|
||||||
|
-elsif field == 'attended'
|
||||||
|
= link_to "#{registration.send(field.to_sym)}", admin_conference_registrations_change_field_path(@conference.short_title, :id => registration.id, :view_field => "#{field}"), :method => :put, ":#{field}" => registration.send(field.to_sym), :class => "btn btn-primary"
|
||||||
-elsif (registration.send(field.to_sym).class == TrueClass || registration.send(field.to_sym).class == FalseClass)
|
-elsif (registration.send(field.to_sym).class == TrueClass || registration.send(field.to_sym).class == FalseClass)
|
||||||
= link_to "#{registration.send(field.to_sym)}", admin_conference_registrations_change_field_path(@conference.short_title, :id => registration.id, :view_field => "#{field}"), :method => :put, ":#{field}" => registration.send(field.to_sym)
|
= link_to "#{registration.send(field.to_sym)}", admin_conference_registrations_change_field_path(@conference.short_title, :id => registration.id, :view_field => "#{field}"), :method => :put, ":#{field}" => registration.send(field.to_sym)
|
||||||
- elsif field == 'arrival' || field == 'departure'
|
- elsif field == 'arrival' || field == 'departure'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue