<tr class="with_action">
  <td>
    <%= link_to period.title, panel_survey_b_front_end_survey_b_index_path(:period => period, :standalone => true), :target=>"_blank" %>
  </td>
  <td>
    <a href="<%= result_panel_survey_b_back_end_survey_b_index_path(:period => period.id)%>">
      <%= display_date_time period.start_date %>
      -
      <%= display_date_time period.end_date %>
    </a>
    <div class="quick-edit">
      <ul class="nav nav-pills hide">
        <li><%= link_to t('survey_b.result'), result_panel_survey_b_back_end_survey_b_index_path(:period => period, :page => params[:page]) %></li>
        <li><%= link_to t(:list_), panel_survey_b_back_end_survey_b_index_path(:period => period, :page => params[:page]) %></li>
        <li><%= link_to t('edit'), edit_panel_survey_b_back_end_period_path(period, :page => params[:page]) %></li>
        <li><%= link_to t(:delete_), panel_survey_b_back_end_period_path(period), :confirm => t('sure?'), :method => :delete %></li>
        <li><%= link_to t('survey_b.export'), export_panel_survey_b_back_end_survey_b_index_path(:period => period, :page => params[:page]) %></li>
      </ul>
    </div>
  </td>
  <td>
    <% status_type = t('survey_b.status_types') %>
    <% if period.start_date > Time.now %>
      <span class="label label-info"><%= status_type[:type2] %></span>
    <% end %>
    <% if period.start_date <= Time.now and period.end_date >= Time.now %>
      <span class="label label-success"><%= status_type[:type1] %></span>
    <% end %>
    <% if period.end_date < Time.now %>
      <span class="label"><%= status_type[:type3] %></span>
    <% end %>
  </td>
</tr>