improves table layout on admin poll questions
This commit is contained in:
@@ -77,6 +77,7 @@ body.admin {
|
||||
}
|
||||
|
||||
&.text-right {
|
||||
padding-right: $line-height;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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) %>">
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user