improves table layout on admin polls index
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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" %>
|
||||||
|
|||||||
@@ -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> </th>
|
<th><%= t("admin.actions.actions") %></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<%= render @polls %>
|
<%= render @polls %>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user