improves table layout on admin poll questions
This commit is contained in:
@@ -77,6 +77,7 @@ body.admin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.text-right {
|
&.text-right {
|
||||||
|
padding-right: $line-height;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,16 +7,24 @@
|
|||||||
<%= t('admin.questions.index.no_questions') %>
|
<%= t('admin.questions.index.no_questions') %>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<table>
|
<table class="fixed">
|
||||||
<% @questions.each do |question| %>
|
<thead>
|
||||||
<tr id="<%= dom_id(question) %>">
|
<tr>
|
||||||
<td><%= link_to question.title, admin_question_path(question) %></td>
|
<th><%= t('admin.questions.index.table_question') %></th>
|
||||||
<td class="text-right">
|
<th class="text-right"><%= t("admin.actions.actions") %></th>
|
||||||
<%= link_to t('shared.edit'), edit_admin_question_path(question), class: "button hollow" %>
|
</tr>
|
||||||
<%= link_to t('shared.delete'), admin_question_path(question), class: "button hollow alert", method: :delete %>
|
</thead>
|
||||||
</td>
|
<tbody>
|
||||||
</tr>
|
<% @questions.each do |question| %>
|
||||||
<% end %>
|
<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 %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= paginate @questions %>
|
<%= paginate @questions %>
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
<table>
|
<table class="fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><%= t('admin.questions.index.table_proposal') %></th>
|
||||||
|
<th class="text-right"><%= t("admin.actions.actions") %></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @proposals.each do |proposal| %>
|
<% @proposals.each do |proposal| %>
|
||||||
<tr id="<%= dom_id(proposal) %>">
|
<tr id="<%= dom_id(proposal) %>">
|
||||||
|
|||||||
@@ -360,6 +360,8 @@ en:
|
|||||||
questions_tab: "Questions"
|
questions_tab: "Questions"
|
||||||
successful_proposals_tab: "Successful proposals"
|
successful_proposals_tab: "Successful proposals"
|
||||||
create_question: "Create question"
|
create_question: "Create question"
|
||||||
|
table_proposal: "Proposal"
|
||||||
|
table_question: "Question"
|
||||||
edit:
|
edit:
|
||||||
title: "Edit Question"
|
title: "Edit Question"
|
||||||
new:
|
new:
|
||||||
|
|||||||
@@ -360,6 +360,8 @@ es:
|
|||||||
questions_tab: "Preguntas ciudadanas"
|
questions_tab: "Preguntas ciudadanas"
|
||||||
successful_proposals_tab: "Propuestas que han superado el umbral"
|
successful_proposals_tab: "Propuestas que han superado el umbral"
|
||||||
create_question: "Crear pregunta para votación"
|
create_question: "Crear pregunta para votación"
|
||||||
|
table_proposal: "Propuesta"
|
||||||
|
table_question: "Pregunta"
|
||||||
edit:
|
edit:
|
||||||
title: "Editar pregunta ciudadana"
|
title: "Editar pregunta ciudadana"
|
||||||
new:
|
new:
|
||||||
|
|||||||
Reference in New Issue
Block a user