% data = action_data @venue_management = data["venue_management"] @venue_management_signup = data["venue_management_signup"] @time_now = data["time_now"] @form_index = 0 %> <% begin %> <% if !@venue_management.registration_status.blank? and @venue_management.signup_start_date < @time_now and ( @venue_management.signup_end_date.nil? or @venue_management.signup_end_date+1 > @time_now ) %> <%#= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "basic/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/date.time.picker.js" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <% flash.each do |key, msg| %> <%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %> <% end %> <%= form_for @venue_management_signup, url: venue_managements_path, html: {class: "content form-horizontal" , :id=>"new-venue_management-signup"} do |f| %>
<% end %> <% elsif @venue_management.registration_status.blank? %> <%= t('venue_management.sign_up_not_open') %> <% elsif @venue_management.signup_start_date > @time_now %> <%= t('venue_management.sign_up_not_yet') %> <% else %> <%= t('venue_management.sign_up_overdue') %> <% end %> <% rescue Exception => e %> <%= e.inspect %> <%= e.backtrace %> <%end %>