New registration completed and tested
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user