-
- <%= f.text_field :name,
- placeholder: t('admin.booths.new.name'),
- label: t("admin.booths.new.name") %>
-
-
-
- <%= f.text_field :location,
- placeholder: t("admin.booths.new.location"),
- label: t("admin.booths.new.location") %>
-
+
+ <%= f.text_field :name,
+ placeholder: t('admin.booths.new.name'),
+ label: t("admin.booths.new.name") %>
-
-
- <%= f.submit t("admin.booths.#{admin_submit_action(@booth)}.submit_button"),
- class: "button success expanded" %>
-
-
\ No newline at end of file
+
+ <%= f.text_field :location,
+ placeholder: t("admin.booths.new.location"),
+ label: t("admin.booths.new.location") %>
+
+
+
+ <%= f.submit t("admin.booths.#{admin_submit_action(@booth)}.submit_button"),
+ class: "button success expanded" %>
+
diff --git a/app/views/admin/poll/booths/edit.html.erb b/app/views/admin/poll/booths/edit.html.erb
index 66bfa8355..7ed55dd21 100644
--- a/app/views/admin/poll/booths/edit.html.erb
+++ b/app/views/admin/poll/booths/edit.html.erb
@@ -1,6 +1,8 @@
<%= back_link_to admin_booths_path %>
-
<%= t("admin.booths.edit.title") %>
+
+
<%= t("admin.booths.edit.title") %>
+
<%= form_for @booth, url: admin_booth_path(@booth) do |f| %>
<%= render "form", f: f %>
diff --git a/app/views/admin/poll/booths/index.html.erb b/app/views/admin/poll/booths/index.html.erb
index 95b248b3f..f1a21d06e 100644
--- a/app/views/admin/poll/booths/index.html.erb
+++ b/app/views/admin/poll/booths/index.html.erb
@@ -1,7 +1,7 @@
<%= t("admin.booths.index.title") %>
<% if controller_name == "booths" && action_name != "available" %>
- <%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button success float-right" %>
+ <%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %>
<% end %>
<% if @booths.empty? %>
diff --git a/app/views/admin/poll/booths/new.html.erb b/app/views/admin/poll/booths/new.html.erb
index cf9581fa3..54e64c907 100644
--- a/app/views/admin/poll/booths/new.html.erb
+++ b/app/views/admin/poll/booths/new.html.erb
@@ -1,6 +1,8 @@
<%= back_link_to admin_booths_path %>
-
<%= t("admin.booths.new.title") %>
+
+
<%= t("admin.booths.new.title") %>
+
<%= form_for @booth, url: admin_booths_path(@booth) do |f| %>
<%= render "form", f: f %>
diff --git a/app/views/admin/poll/officers/_officer.html.erb b/app/views/admin/poll/officers/_officer.html.erb
index 3562b4a90..21a5bbdbc 100644
--- a/app/views/admin/poll/officers/_officer.html.erb
+++ b/app/views/admin/poll/officers/_officer.html.erb
@@ -1,8 +1,9 @@
- | <%= t('admin.poll_officers.officer.name') %> |
- <%= t('admin.poll_officers.officer.email') %> |
+ <%= t("admin.poll_officers.officer.name") %> |
+ <%= t("admin.poll_officers.officer.email") %> |
+ <%= t("admin.actions.actions") %> |
@@ -13,16 +14,16 @@
<%= officer.email %>
|
-
+ |
<% if officer.persisted? %>
- <%= link_to t('admin.poll_officers.officer.delete'),
+ <%= link_to t("admin.poll_officers.officer.delete"),
admin_officer_path(officer),
method: :delete,
- class: "button hollow alert" %>
+ class: "button hollow alert expanded" %>
<% else %>
- <%= link_to t('admin.poll_officers.officer.add'),{ controller: "admin/poll/officers", action: :create, user_id: officer.user_id },
+ <%= link_to t("admin.poll_officers.officer.add"),{ controller: "admin/poll/officers", action: :create, user_id: officer.user_id },
method: :post,
- class: "button success" %>
+ class: "button success expanded" %>
<% end %>
|
diff --git a/app/views/admin/poll/officers/index.html.erb b/app/views/admin/poll/officers/index.html.erb
index fd9619167..433d0fdbf 100644
--- a/app/views/admin/poll/officers/index.html.erb
+++ b/app/views/admin/poll/officers/index.html.erb
@@ -1,23 +1,22 @@
<%= t("admin.poll_officers.index.title") %>
-
-
- <%= render 'search' %>
-
+
+ <%= render 'search' %>
- <%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
+ <%= page_entries_info @officers, entry_name: t("admin.poll_officers.officer.entry_name") %>
<% if @officers.any? %>
- | <%= t('admin.poll_officers.officer.name') %> |
- <%= t('admin.poll_officers.officer.email') %> |
+ <%= t("admin.poll_officers.officer.name") %> |
+ <%= t("admin.poll_officers.officer.email") %> |
+ <%= t("admin.actions.actions") %> |
@@ -29,19 +28,19 @@
<%= officer.email %>
|
-
+ |
<% if officer.persisted? %>
- <%= link_to t('admin.poll_officers.officer.delete'),
+ <%= link_to t("admin.poll_officers.officer.delete"),
admin_officer_path(officer),
method: :delete,
- class: "button hollow alert"
+ class: "button hollow alert expanded"
%>
<% else %>
- <%= link_to t('admin.poll_officers.officer.add'),
+ <%= link_to t("admin.poll_officers.officer.add"),
{ controller: "admin/poll/officers", action: :create,
user_id: officer.user_id },
method: :post,
- class: "button success" %>
+ class: "button success expanded" %>
<% end %>
|
diff --git a/app/views/admin/poll/shifts/_search_officers.html.erb b/app/views/admin/poll/shifts/_search_officers.html.erb
index e63d09d41..e95090f9c 100644
--- a/app/views/admin/poll/shifts/_search_officers.html.erb
+++ b/app/views/admin/poll/shifts/_search_officers.html.erb
@@ -1,19 +1,17 @@
-
-
- <%= form_tag search_officers_admin_booth_shifts_path,
- method: :get, remote: true do |f| %>
-
diff --git a/app/views/admin/poll/shifts/_shifts.html.erb b/app/views/admin/poll/shifts/_shifts.html.erb
index 63cbe0690..66d64ed22 100644
--- a/app/views/admin/poll/shifts/_shifts.html.erb
+++ b/app/views/admin/poll/shifts/_shifts.html.erb
@@ -5,7 +5,7 @@
<%= t("admin.poll_shifts.new.date") %> |
<%= t("admin.poll_shifts.new.officer") %> |
<%= t("admin.poll_shifts.new.task") %> |
-
<%= t("admin.poll_shifts.new.shift") %> |
+
<%= t("admin.poll_shifts.new.shift") %> |
@@ -14,11 +14,11 @@
<%= l(shift.date.to_date, format: :long) %> |
<%= shift.officer_name %> |
<%= t("admin.poll_shifts.#{shift.task}") %> |
-
+ |
<%= link_to t("admin.poll_shifts.new.remove_shift"),
admin_booth_shift_path(@booth, shift),
method: :delete,
- class: "button hollow alert" %>
+ class: "button hollow alert expanded" %>
|
<% end %>