improves table layout on admin polls index

This commit is contained in:
Alberto Garcia Cabeza
2017-02-09 18:38:56 +01:00
parent a6047c342c
commit b4660e162a
5 changed files with 18 additions and 5 deletions

View File

@@ -94,9 +94,20 @@ body.admin {
} }
} }
&.fixed {
table-layout: fixed;
}
input[type="submit"] ~ a, a ~ a { input[type="submit"] ~ a, a ~ a {
margin-left: $line-height/2; margin-left: 0;
margin-right: $line-height/2; margin-right: 0;
margin-top: $line-height/2;
@include breakpoint(medium) {
margin-left: $line-height/2;
margin-right: $line-height/2;
margin-top: 0;
}
} }
} }

View File

@@ -7,7 +7,7 @@
<td> <td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %> <%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</td> </td>
<td class="text-right"> <td>
<%= link_to t("admin.actions.edit"), <%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll), edit_admin_poll_path(poll),
class: "button hollow" %> class: "button hollow" %>

View File

@@ -5,11 +5,11 @@
class: "button success float-right" %> class: "button success float-right" %>
<% if @polls.any? %> <% if @polls.any? %>
<table> <table class="fixed">
<thead> <thead>
<th><%= t("admin.polls.index.name") %></th> <th><%= t("admin.polls.index.name") %></th>
<th><%= t("admin.polls.index.dates") %></th> <th><%= t("admin.polls.index.dates") %></th>
<th>&nbsp;</th> <th><%= t("admin.actions.actions") %></th>
</thead> </thead>
<tbody> <tbody>
<%= render @polls %> <%= render @polls %>

View File

@@ -2,6 +2,7 @@
en: en:
admin: admin:
actions: actions:
actions: Actions
confirm: Are you sure? confirm: Are you sure?
confirm_hide: Confirm confirm_hide: Confirm
hide: Hide hide: Hide

View File

@@ -2,6 +2,7 @@
es: es:
admin: admin:
actions: actions:
actions: Acciones
confirm: "¿Estás seguro?" confirm: "¿Estás seguro?"
confirm_hide: Confirmar confirm_hide: Confirmar
hide: Ocultar hide: Ocultar