<tr id="<%= dom_id survey %>" class="with_action">
  <td>
    <% if (survey.create_user_id ==  current_or_guest_user.id) || is_manager? %>
      <%= check_box_tag 'to_delete[]', survey.id, false, :class => "checkbox_in_list" %>
    <% end -%>
  </td>
  <td>
    <%= link_to survey.title, panel_survey_front_end_survey_path(survey) %>
    <div class="quick-edit">
      <ul class="nav nav-pills hide">
        <%if at_least_module_manager %>
          <li><%= link_to t('edit'), edit_panel_survey_back_end_survey_path(survey, :page => params[:page]) %></li>
          <li><%= link_to t('survey.duplicate_it'), duplicate_it_panel_survey_back_end_survey_path(survey, :page => params[:page]) %></li>
          <li><%= link_to t('survey.jump'), jump_panel_survey_back_end_survey_path(survey, :page => params[:page]) %></li>
          <li><%= link_to t('survey.set_answers'), set_answers_panel_survey_back_end_survey_path(survey, :page => params[:page]) %></li>
          <li><%= link_to t('survey.export_csv'), export_panel_survey_back_end_survey_path(survey, :format => :csv), :target => '_blank' %></li>
          <li><%= link_to t('survey.chart'), result_panel_survey_front_end_survey_path(survey, :force_chart => true, :standalone => true), :target => '_blank' %></li>
          <li><%= link_to t(:delete_), panel_survey_back_end_survey_path(survey), :confirm => t('sure?'), :method => :delete, :remote => true %></li>
        <% end -%>
      </ul>
    </div>
  </td>
  <td>
    <%= (survey.postdate) ? display_date_time(survey.postdate): t(:no_deadline) %>
  </td>
  <td>
    <%= (survey.deadline) ? display_date_time(survey.deadline): t(:no_deadline) %>
  </td>
  <td>
    <%= survey.survey_answers.count %>
  </td>
  <td><%= User.from_id(survey.update_user_id).name rescue ''%></td>
</tr>

