<% set_default_index do 
  objects @answers
  quick_edit_link type: 'delete',
                  link: 'panel_survey_b_back_end_survey_b_path',
                  link_option: ":period=>params[:period],:page=>params[:page]"
            
  field db_field: 'contact_name',
        translation: 'survey_b.contact_name_label',
        quick_edit: true,
        sort: 'contact_name',
        header_class: 'span3'
  field db_field: 'contact_phone',
        translation: 'survey_b.contact_phone_label',
        sort: 'contact_phone',
        header_class: 'span3'
  field db_field: 'contact_e_mail',
        translation: 'survey_b.contact_e_mail_label',
        sort: 'contact_e_mail',
        header_class: 'span5'
  field db_field: 'comment_question',
        translation: 'survey_b.comment_question_label',
        sort: 'comment_question',
        header_class: 'span5'
  field db_field: 'created_at',
        translation: 'survey_b.created_at',
        display_option: 'display_date_time(value)',
        hide: 'phone',
        sort: 'created_at'
  footer  link: 'panel_survey_b_back_end_periods_path',
          link_name: t(:back) + t('survey_b.survey_b')
end %>

<%= render 'admin/default_index/index' %>