New registration completed and tested

This commit is contained in:
Godwin
2017-06-03 12:55:13 -07:00
parent 6eddbe0a69
commit eed9bd8b40
21 changed files with 763 additions and 1009 deletions
+12 -9
View File
@@ -129,22 +129,25 @@ module RegistrationHelper
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
message.html_safe +
form_tag(register_path(conference.slug), class: @no_ajax ? nil : 'js-xhr') do
content.html_safe +
(hidden_field_tag :step, step).html_safe +
actions.html_safe
end.html_safe
end
def step_message
if @update_message.present? && @update_status.present?
return row do
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.html_safe
end.html_safe
end
return ''
end
end