adds successful proposals list on admin questions index
This commit is contained in:
@@ -9,26 +9,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-4 large-3">
|
||||
<%= render 'filter' %>
|
||||
</div>
|
||||
<div class="tabs-content" data-tabs-content="questions-tabs">
|
||||
<%= render "filter_subnav" %>
|
||||
|
||||
<% if @questions.count == 0 %>
|
||||
<div class="callout primary margin-top">
|
||||
<%= t('admin.questions.index.no_questions') %>
|
||||
<div class="tabs-panel is-active" id="tab-questions">
|
||||
<%= render "questions" %>
|
||||
</div>
|
||||
<% else %>
|
||||
<table>
|
||||
<% @questions.each do |question| %>
|
||||
<tr id="<%= dom_id(question) %>">
|
||||
<td><%= link_to question.title, admin_question_path(question) %></td>
|
||||
<td class="text-right">
|
||||
<%= link_to t('shared.edit'), edit_admin_question_path(question), class: "button hollow" %>
|
||||
<%= link_to t('shared.delete'), admin_question_path(question), class: "button hollow alert", method: :delete %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<%= paginate @questions %>
|
||||
<% end %>
|
||||
<div class="tabs-panel" id="tab-successful-proposals">
|
||||
<%= render "successful_proposals" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user