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 { &.text-right {
padding-right: $line-height;
text-align: right; text-align: right;
} }

View File

@@ -7,7 +7,14 @@
<%= t('admin.questions.index.no_questions') %> <%= t('admin.questions.index.no_questions') %>
</div> </div>
<% else %> <% 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| %> <% @questions.each do |question| %>
<tr id="<%= dom_id(question) %>"> <tr id="<%= dom_id(question) %>">
<td><%= link_to question.title, admin_question_path(question) %></td> <td><%= link_to question.title, admin_question_path(question) %></td>
@@ -17,6 +24,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= paginate @questions %> <%= 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> <tbody>
<% @proposals.each do |proposal| %> <% @proposals.each do |proposal| %>
<tr id="<%= dom_id(proposal) %>"> <tr id="<%= dom_id(proposal) %>">

View File

@@ -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:

View File

@@ -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: