improves layout and tables for polls shifts

This commit is contained in:
decabeza
2017-09-08 16:50:53 +02:00
parent b1abb9dbb3
commit 3b4e80a34d
8 changed files with 25 additions and 23 deletions

View File

@@ -15,8 +15,7 @@
<thead>
<th><%= t("admin.booths.index.name") %></th>
<th><%= t("admin.booths.index.location") %></th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th class="text-right"><%= t("admin.actions.actions") %></th>
</thead>
<tbody>
<% @booths.each do |booth| %>

View File

@@ -6,8 +6,9 @@
<%= t("admin.poll_shifts.new.new_shift") %>
</legend>
<div class="small-12 medium-4 column">
Officer: <%= @officer.name %>
<div class="small-12 medium-4 column highlight padding">
<strong><%= t("admin.poll_shifts.new.officer") %></strong>
<br><%= @officer.name %>
<%= f.hidden_field :officer_id, value: @officer.id %>
</div>
@@ -23,7 +24,7 @@
<div class="small-12 medium-4 column">
<%= f.submit t("admin.poll_shifts.new.add_shift"),
class: "button expanded hollow margin-top" %>
class: "button expanded margin-top" %>
</div>
</fieldset>
<% end %>

View File

@@ -10,7 +10,7 @@
<tr>
<th><%= t("admin.poll_shifts.new.table_name") %></th>
<th><%= t("admin.poll_shifts.new.table_email") %></th>
<th class="text-center">
<th class="text-right">
<%= t("admin.poll_shifts.new.table_shift") %>
</th>
</tr>
@@ -24,10 +24,10 @@
<td>
<%= user.email %>
</td>
<td class="text-center">
<td class="text-right">
<%= link_to t("admin.poll_shifts.new.edit_shifts"),
new_admin_booth_shift_path(officer_id: user.poll_officer.id),
class: "button hollow alert" %>
class: "button hollow" %>
</td>
</tr>
<% end %>

View File

@@ -3,7 +3,9 @@
<h2><%= @booth.name %></h2>
<% if @officer.blank? %>
<%= t("admin.poll_shifts.new.search_officer_text") %>
<p>
<%= t("admin.poll_shifts.new.search_officer_text") %>
</p>
<%= render "search_officers" %>
<% else %>
<%= render "form" %>
@@ -11,7 +13,7 @@
<div id="shifts">
<% if @shifts.empty? %>
<div class="callout primary margin-top">
<div class="callout primary">
<%= t("admin.poll_shifts.new.no_shifts") %>
</div>
<% else %>

View File

@@ -509,7 +509,7 @@ en:
remove_shift: "Remove"
search_officer_button: Search
search_officer_placeholder: Search officer
search_officer_text: Please search for an officer to assign a new shift
search_officer_text: Search for an officer to assign a new shift
select_date: "Select day"
table_shift: "Shift"
table_email: "Email"

View File

@@ -509,7 +509,7 @@ es:
remove_shift: "Eliminar turno"
search_officer_button: Buscar
search_officer_placeholder: Buscar presidentes de mesa
search_officer_text: Por favor busca al presidente de mesa para asignar un turno
search_officer_text: Busca al presidente de mesa para asignar un turno
select_date: "Seleccionar día"
table_shift: "Turno"
table_email: "Email"