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 {
margin-left: 0;
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>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</td>
<td class="text-right">
<td>
<%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll),
class: "button hollow" %>

View File

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

View File

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

View File

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