improves table layout on admin poll questions

This commit is contained in:
Alberto Garcia Cabeza
2017-02-09 18:48:06 +01:00
parent b4660e162a
commit ff0013e60c
5 changed files with 30 additions and 11 deletions

View File

@@ -77,6 +77,7 @@ body.admin {
}
&.text-right {
padding-right: $line-height;
text-align: right;
}

View File

@@ -7,7 +7,14 @@
<%= t('admin.questions.index.no_questions') %>
</div>
<% else %>
<table>
<table class="fixed">
<thead>
<tr>
<th><%= t('admin.questions.index.table_question') %></th>
<th class="text-right"><%= t("admin.actions.actions") %></th>
</tr>
</thead>
<tbody>
<% @questions.each do |question| %>
<tr id="<%= dom_id(question) %>">
<td><%= link_to question.title, admin_question_path(question) %></td>
@@ -17,6 +24,7 @@
</td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate @questions %>

View File

@@ -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>
<% @proposals.each do |proposal| %>
<tr id="<%= dom_id(proposal) %>">

View File

@@ -360,6 +360,8 @@ en:
questions_tab: "Questions"
successful_proposals_tab: "Successful proposals"
create_question: "Create question"
table_proposal: "Proposal"
table_question: "Question"
edit:
title: "Edit Question"
new:

View File

@@ -360,6 +360,8 @@ es:
questions_tab: "Preguntas ciudadanas"
successful_proposals_tab: "Propuestas que han superado el umbral"
create_question: "Crear pregunta para votación"
table_proposal: "Propuesta"
table_question: "Pregunta"
edit:
title: "Editar pregunta ciudadana"
new: