diff --git a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb index d7896446f..57cc8eaf0 100644 --- a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb +++ b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb @@ -6,27 +6,29 @@ <% if booth_assignment.present? %> - <%= t("admin.booth_assignments.manage.status.assigned") %> + + <%= t("admin.booth_assignments.manage.status.assigned") %> + - + <%= link_to t("admin.booth_assignments.manage.actions.unassign"), admin_poll_booth_assignment_path(@poll, booth_assignment, booth_id: booth.id), method: :delete, remote: true, title: t("admin.booth_assignments.manage.actions.unassign"), - class: "button hollow alert", + class: "button hollow alert expanded", data: (booth_assignment.shifts? ? {confirm: "#{t("admin.poll_booth_assignments.alert.shifts")}"} : nil) if !@poll.expired? %> <% else %> - <%= t("admin.booth_assignments.manage.status.unassigned") %> + <%= t("admin.booth_assignments.manage.status.unassigned") %> - + <%= link_to t("admin.booth_assignments.manage.actions.assign"), admin_poll_booth_assignments_path(@poll, booth_id: booth.id), method: :post, remote: true, title: t("admin.booth_assignments.manage.actions.assign"), - class: "button" if !@poll.expired? %> + class: "button hollow expanded" if !@poll.expired? %> <% end %> diff --git a/app/views/admin/poll/booth_assignments/manage.html.erb b/app/views/admin/poll/booth_assignments/manage.html.erb index b7d619c71..449037b9e 100644 --- a/app/views/admin/poll/booth_assignments/manage.html.erb +++ b/app/views/admin/poll/booth_assignments/manage.html.erb @@ -1,9 +1,6 @@ -<%= link_to booth_assignments_admin_polls_path do %> - <%= t("shared.back") %> -<% end %> -
+<%= back_link_to booth_assignments_admin_polls_path %> -

<%= t("admin.booth_assignments.manage.assignments_list", poll: @poll.name) %>

+

<%= t("admin.booth_assignments.manage.assignments_list", poll: @poll.name) %>

<% if @booths.empty? %>
@@ -15,7 +12,7 @@ <%= t("admin.booths.index.name") %> <%= t("admin.booths.index.location") %> <%= t("admin.booth_assignments.manage.status.assign_status") %> - <%= t("admin.actions.actions") %> + <%= t("admin.actions.actions") %> <% @booths.each do |booth| %> diff --git a/app/views/admin/poll/booths/_form.html.erb b/app/views/admin/poll/booths/_form.html.erb index 31d60c0f0..5445144af 100644 --- a/app/views/admin/poll/booths/_form.html.erb +++ b/app/views/admin/poll/booths/_form.html.erb @@ -1,20 +1,16 @@ -
-
- <%= 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 @@ - - + + + @@ -13,16 +14,16 @@ - 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") %>
<%= 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 %>
- - + + + @@ -29,19 +28,19 @@ - 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| %> -
- <%= text_field_tag :search, - @search, - placeholder: t("admin.poll_shifts.new.search_officer_placeholder"), - id: "search-officers" %> -
- <%= submit_tag t("admin.poll_shifts.new.search_officer_button"), - class: "button" %> -
+
+ <%= form_tag search_officers_admin_booth_shifts_path, + method: :get, remote: true do |f| %> +
+ <%= text_field_tag :search, + @search, + placeholder: t("admin.poll_shifts.new.search_officer_placeholder"), + id: "search-officers" %> +
+ <%= submit_tag t("admin.poll_shifts.new.search_officer_button"), + class: "button" %>
- <% end %> -
+
+ <% end %>
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 @@
- + @@ -14,11 +14,11 @@ - <% end %>
<%= 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") %>
<%= 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 %>
<%= 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") %>
<%= 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" %>