Fix for registration issue in prod

This commit is contained in:
Godwin 2017-05-30 19:48:08 -07:00
parent c871b1ab3d
commit 7ed35f5696
2 changed files with 15 additions and 6 deletions

View File

@ -129,15 +129,22 @@ module RegistrationHelper
end end
end end
message = if @update_message.present? && @update_status.present?
columns(medium: 12, class: @update_status, id: 'action-message') do
content_tag(:div, (_"articles.conference_registration.#{@update_status}.#{@update_message}", :s), class: :message).html_safe
end
else
''
end
actions = columns(medium: 12, class: [:actions, :center]) do
content_tag(:div, actions.html_safe, class: :buttons).html_safe
end
form_tag(register_path(conference.slug), class: 'js-xhr') do form_tag(register_path(conference.slug), class: 'js-xhr') do
(@update_message.present? && @update_status.present? ? columns(medium: 12, class: @update_status, id: 'action-message') do message.html_safe +
content_tag(:div, (_"articles.conference_registration.#{@update_status}.#{@update_message}", :s), class: :message).html_safe
end : '').html_safe +
content.html_safe + content.html_safe +
(hidden_field_tag :step, step).html_safe + (hidden_field_tag :step, step).html_safe +
columns(medium: 12, class: [:actions, :center]) do actions.html_safe
content_tag(:div, actions.html_safe, class: :buttons).html_safe
end.html_safe
end.html_safe end.html_safe
end end
end end

View File

@ -1,3 +1,5 @@
- checkboxes ||= false
- less_info ||= false
.policy-agreement .policy-agreement
- if @is_policy_page - if @is_policy_page
%h2=_'articles.policy.headings.The_Agreement' %h2=_'articles.policy.headings.The_Agreement'