<h1><%= @period.title %></h1>

<div>
  <section>
    <div class="o-question">
      <% if @period.isAvailable? %>
        <%= form_for :answer, :url => panel_survey_b_front_end_survey_b_index_path, :method => :get, :html => {:class => 'survey_b clear'} do |f| %>
          <%= f.hidden_field :standalone, :value => true, :name => :standalone %>
          <%= f.hidden_field :period_id, :value => @period.id, :name => :period %>
          <p>
            <%= p @setting.announcement.gsub("\n", '<br />').html_safe %>
          </p>
          <br />
          <p>
            <%= f.check_box :agree, :name => :agree %>
            <%= f.label :agree, t('survey_b.agree_check'), :style => "display:inline" %>
          </p>

          <div class="o-question-action">
            <%= f.submit t('submit'), :class => 'survey-submit' %>
          </div>
        <% end %>
      <% else %>
        <% status_type = t('survey_b.status_types') %>
        <p class="text-warning"><h4><%= t('survey_b.survey_b') + status_type[@period.get_status_type.to_sym] %></h4></p>
      <% end %>
    </div>
  </section>
</div>
<% content_for :page_stylesheets do %>
  <link href='/assets/questionnaire.css' rel='stylesheet' type='text/css' />
<% end %>