% # encoding: utf-8 %> <% data = action_data @act = data["act"] @act_signup = data["act_signup"] @time_now = data["time_now"] %> <% if !@act.sign_up.blank? and @act.sign_start_date < @time_now and ( @act.sign_end_date > @time_now or @act.sign_end_date.nil? ) %> <%= stylesheet_link_tag "basic/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/module-area" %> <% flash.each do |key, msg| %> <%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %> <% end %> <%= form_for @act_signup, url: actives_path, html: {class: "content form-horizontal" , :id=>"new-act-signup"} do |f| %>
<% end %> <% elsif @act.sign_up.blank? %> <%= t('act.sign_up_not_yet') %> <% else %> <%= t('act.sign_up_overdue') %> <% end %>