survey/app/views/admin/surveys/set_sections.html.erb

33 lines
1.2 KiB
Plaintext

<span id="index_table">
<table class="table main-list">
<thead>
<tr class="sort-header">
<th><%= t('survey.section_title') %></th>
<th><%= t('survey.section_description') %></th>
</tr>
</thead>
<tbody>
<% @sections.each do |section| %>
<tr>
<td>
<%= section.section_title %>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a href="<%= edit_section_admin_survey_path(section) %>"><%= t(:edit) %></a></li>
<li><a class="delete text-error" data-method="delete" data-confirm="Are you sure?" href="<%= delete_section_admin_survey_path(section) %>"><%= t(:delete_) %></a></li>
</ul>
</div>
</td>
<td><%= section.section_description %></td>
</tr>
<% end %>
</tbody>
</table>
</span>
<div class="bottomnav clearfix">
<div class="pull-right">
<a href="<%= pagination_setting_admin_survey_path %>" class="btn btn-primary"><%= t('survey.pagination_setting') %></a>
<a href="<%= add_section_admin_survey_path %>" class="btn btn-primary"><%= t('survey.add_section') %></a>
</div>
</div>