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

33 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2018-01-03 08:36:00 +00:00
<span id="index_table">
<table class="table main-list">
<thead>
<tr class="sort-header">
2021-07-08 13:31:27 +00:00
<th><%= t('survey.section_title') %></th>
<th><%= t('survey.section_description') %></th>
2018-01-03 08:36:00 +00:00
</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">
2021-07-08 13:31:27 +00:00
<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>
2018-01-03 08:36:00 +00:00
</div>
</div>