diff --git a/app/views/admin/poll/officers/_officer.html.erb b/app/views/admin/poll/officers/_officer.html.erb
index c9251548d..80434f385 100644
--- a/app/views/admin/poll/officers/_officer.html.erb
+++ b/app/views/admin/poll/officers/_officer.html.erb
@@ -1,26 +1,30 @@
-
-
-
-
- |
- <%= officer.name %>
- |
-
- <%= officer.email %>
- |
-
- <% if officer.persisted? %>
- <%= link_to t('admin.poll_officers.officer.delete'),
- admin_poll_officer_path(officer),
- method: :delete,
- class: "button hollow alert" %>
- <% else %>
- <%= link_to t('admin.poll_officers.officer.add'),{ controller: "admin/poll/officers", action: :create, user_id: officer.user_id },
- method: :post,
- class: "button success" %>
- <% end %>
- |
-
-
-
-
+
+
+
+ | <%= t('admin.poll_officers.officer.name') %> |
+ <%= t('admin.poll_officers.officer.email') %> |
+
+
+
+
+ |
+ <%= officer.name %>
+ |
+
+ <%= officer.email %>
+ |
+
+ <% if officer.persisted? %>
+ <%= link_to t('admin.poll_officers.officer.delete'),
+ admin_poll_officer_path(officer),
+ method: :delete,
+ class: "button hollow alert" %>
+ <% else %>
+ <%= link_to t('admin.poll_officers.officer.add'),{ controller: "admin/poll/officers", action: :create, user_id: officer.user_id },
+ method: :post,
+ class: "button success" %>
+ <% end %>
+ |
+
+
+
diff --git a/app/views/admin/poll/officers/_search.html.erb b/app/views/admin/poll/officers/_search.html.erb
new file mode 100644
index 000000000..dda22dee2
--- /dev/null
+++ b/app/views/admin/poll/officers/_search.html.erb
@@ -0,0 +1,9 @@
+<%= form_tag search_admin_officers_path, method: :get, remote: true do %>
+
+<% end %>
diff --git a/app/views/admin/poll/officers/index.html.erb b/app/views/admin/poll/officers/index.html.erb
index cc6393204..d6e11682b 100644
--- a/app/views/admin/poll/officers/index.html.erb
+++ b/app/views/admin/poll/officers/index.html.erb
@@ -1,21 +1,25 @@
<%= t("admin.poll_officers.index.title") %>
- <%= form_tag search_admin_officers_path, method: :get, remote: true do %>
-
- <%= text_field_tag :email, '', placeholder: t('admin.poll_officers.search.email_placeholder') %>
-
-
- <%= submit_tag t('admin.poll_officers.search.search'), class: 'button' %>
-
- <% end %>
+
+ <%= render 'search' %>
+
-
+
-<%= page_entries_info @officers %>
+
+ <%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
+
+
+
+ | <%= t('admin.poll_officers.officer.name') %> |
+ <%= t('admin.poll_officers.officer.email') %> |
+
+
+
<% @officers.each do |officer| %>
|
@@ -41,6 +45,7 @@
|
<% end %>
+
<%= paginate @officers %>
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml
index 09f5e16fb..fa5fb528f 100755
--- a/config/locales/admin.en.yml
+++ b/config/locales/admin.en.yml
@@ -154,6 +154,9 @@ en:
officer:
add: Add
delete: Delete
+ name: Name
+ email: Email
+ entry_name: officer
search:
email_placeholder: Search user by email
search: Search
diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml
index f96d2d815..11cfe8d2a 100644
--- a/config/locales/admin.es.yml
+++ b/config/locales/admin.es.yml
@@ -154,6 +154,9 @@ es:
officer:
add: AƱadir como Presidente de mesa
delete: Borrar
+ name: Nombre
+ email: Email
+ entry_name: presidente de mesa
search:
email_placeholder: Buscar usuario por email
search: Buscar