% # encoding: utf-8 %> <% data = action_data @seminar = data["seminar"] @seminar_signup = data["seminar_signup"] @time_now = data["time_now"] @form_index = 0 %> <% if !@seminar.registration_status.blank? and @seminar.signup_start_date < @time_now and ( @seminar.signup_end_date.nil? or @seminar.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 @seminar_signup, url: seminars_path, html: {class: "content form-horizontal" , :id=>"new-seminar-signup"} do |f| %>
<% end %> <% elsif @seminar.registration_status.blank? %> <%= t('seminar.sign_up_not_open') %> <% elsif @seminar.signup_start_date > @time_now %> <%= t('seminar.sign_up_not_yet') %> <% else %> <%= t('seminar.sign_up_overdue') %> <% end %>