From c3330a846f9b09fa5ac09dd74e546046f7193e56 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 22 Apr 2015 15:35:46 +0200 Subject: [PATCH] Always show the Update button for registrations --- app/views/conference_registrations/_form.html.haml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/conference_registrations/_form.html.haml b/app/views/conference_registrations/_form.html.haml index ef619583..073eae1d 100644 --- a/app/views/conference_registrations/_form.html.haml +++ b/app/views/conference_registrations/_form.html.haml @@ -30,11 +30,13 @@ = 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 :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' } - %p.pull-right - - if @conference.user_registered?(current_user) - = f.action :submit, button_html: { value: 'Update Registration', class: 'btn btn-primary' } - - else - = f.action :submit, button_html: { value: 'Register', class: 'btn btn-primary', id: 'register' } + .row + .col-md-12 + %p.pull-right + - if @conference.user_registered?(current_user) + = f.action :submit, button_html: { value: 'Update Registration', class: 'btn btn-primary' } + - else + =f.action :submit, button_html: { value: 'Register', class: 'btn btn-primary', id: 'register' } .tab-pane{role: 'tabpanel', id: 'signin'} - if !CONFIG['authentication']['ichain']['enabled'] = form_tag(new_user_session_path, class: 'form-horizontal') do