% if @_mxit_emulator %>
<%= stylesheet_link_tag "mxit_rails/included" %>
<% end %>
<%= yield %>
<% if mxit_validation_message %>
<%= mxit_validation_message %>
<% elsif flash[:notice] %>
<%= flash[:notice] %>
<% end %>
<% if @_mxit.input %>
<% unless @_mxit.input_label.blank? %>
<%= mxit_proceed @_mxit.input_label %>
<% end %>
<% elsif @_mxit.select %>
<% if @_mxit.multi_select %>
<% unless @_mxit.select_label.blank? %>
<%= @_mxit.select_label %>
<% end %>
<% @_mxit.select_options.each do |value, label| %>
<%= mxit_select_row label, value, @_mxit.selected.include?(value) %>
<% end %>
<%= mxit_proceed link_to(@_mxit.multi_select_next, "#{request.path}?_mxit_rails_submit=true&_mxit_rails_multi_select=#{@_mxit.select}") %>
<% else %>
<% unless @_mxit.select_label.blank? %>
<%= mxit_proceed @_mxit.select_label %>
<% end %>
<% @_mxit.select_options.each do |value, label| %>
<%= mxit_select_row label, value, @_mxit.selected.include?(value) %>
<% end %>
<% end %>
<% elsif @_mxit.proceed %>
<%= mxit_proceed link_to(@_mxit.proceed.to_s.capitalize, "#{request.path}?_mxit_rails_submit=true") %>
<% end %>
<% if @_mxit.has_table %>
<% end %>
<% if @_mxit.input %>
<% end %>