Always show the Update button for registrations
This commit is contained in:
parent
8accc47bcc
commit
c3330a846f
1 changed files with 7 additions and 5 deletions
|
|
@ -30,6 +30,8 @@
|
||||||
= f.inputs 'Your Travel Info' do
|
= f.inputs 'Your Travel Info' do
|
||||||
= f.input :arrival, as: :string, label: 'Your arrival time', input_html: { value: (f.object.arrival.to_formatted_s(:db_without_seconds) unless f.object.arrival.nil?), id: 'registration-arrival-datepicker', readonly: 'readonly' }
|
= f.input :arrival, as: :string, label: 'Your arrival time', input_html: { value: (f.object.arrival.to_formatted_s(:db_without_seconds) unless f.object.arrival.nil?), id: 'registration-arrival-datepicker', readonly: 'readonly' }
|
||||||
= f.input :departure, as: :string, label: 'Your departure time', input_html: { value: (f.object.departure.to_formatted_s(:db_without_seconds) unless f.object.departure.nil?), id: 'registration-departure-datepicker', readonly: 'readonly' }
|
= f.input :departure, as: :string, label: 'Your departure time', input_html: { value: (f.object.departure.to_formatted_s(:db_without_seconds) unless f.object.departure.nil?), id: 'registration-departure-datepicker', readonly: 'readonly' }
|
||||||
|
.row
|
||||||
|
.col-md-12
|
||||||
%p.pull-right
|
%p.pull-right
|
||||||
- if @conference.user_registered?(current_user)
|
- if @conference.user_registered?(current_user)
|
||||||
= f.action :submit, button_html: { value: 'Update Registration', class: 'btn btn-primary' }
|
= f.action :submit, button_html: { value: 'Update Registration', class: 'btn btn-primary' }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue