diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 89bed6d21..8403568a9 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -44,11 +44,22 @@ body.admin { .button { margin-top: 0; + + &.margin-top { + margin-top: $line-height; + } } input[type="text"], textarea { width: 100%; } + + .fieldset { + + select { + height: $line-height*2; + } + } } table { @@ -59,6 +70,10 @@ body.admin { &.text-center { text-align: center; } + + &.text-right { + text-align: right; + } } tr { diff --git a/app/views/admin/poll/officer_assignments/index.html.erb b/app/views/admin/poll/officer_assignments/index.html.erb index 55e879858..81ac5aa61 100644 --- a/app/views/admin/poll/officer_assignments/index.html.erb +++ b/app/views/admin/poll/officer_assignments/index.html.erb @@ -1,4 +1,8 @@ -<%= link_to @poll.name, admin_poll_path(@poll, anchor: 'tab-officers') %> +<%= link_to admin_poll_path(@poll, anchor: 'tab-officers') do %> + + <%= @poll.name %> +<% end %> +
| <%= t("admin.polls.show.name") %> | -<%= t("admin.polls.show.location") %> | -+ | <%= t("admin.polls.show.table_name") %> | +<%= t("admin.polls.show.table_location") %> | +<%= t("admin.polls.show.table_assignment") %> | <% @poll.booths.each do |booth| %> @@ -22,7 +22,7 @@<%= booth.location %> | -+ | <%= link_to t("admin.polls.show.remove_booth"), admin_booth_assignment_path(poll: @poll, booth: booth), method: :delete, @@ -32,4 +32,4 @@ <% end %> |
|---|
| <%= t("admin.polls.show.name") %> | <%= t("admin.polls.show.email") %> | diff --git a/app/views/admin/poll/polls/_questions.html.erb b/app/views/admin/poll/polls/_questions.html.erb index 8adf3596e..c4dadba49 100644 --- a/app/views/admin/poll/polls/_questions.html.erb +++ b/app/views/admin/poll/polls/_questions.html.erb @@ -5,11 +5,21 @@ <%= t('admin.polls.show.no_questions') %> <% else %> -||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t('admin.polls.show.table_title') %> | +<%= t('admin.polls.show.table_assignment') %> | +||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= link_to question.title, admin_question_path(question) %> | -+ | + + <%= link_to question.title, admin_question_path(question) %> + + | +
<%= link_to t('admin.polls.show.remove_question'),
remove_question_admin_poll_path(poll_id: @poll.id, question_id: question.id),
class: "button hollow alert",
diff --git a/app/views/admin/poll/polls/_search_booths.html.erb b/app/views/admin/poll/polls/_search_booths.html.erb
index e4b038e3a..a02c9e6ec 100644
--- a/app/views/admin/poll/polls/_search_booths.html.erb
+++ b/app/views/admin/poll/polls/_search_booths.html.erb
@@ -1,12 +1,16 @@
-<%= form_tag(search_booths_admin_poll_path(@poll), method: :get, remote: true) do |f| %>
-
- <%= text_field_tag :search,
- @search,
- placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %>
-
+
+
diff --git a/app/views/admin/poll/polls/_search_booths_results.html.erb b/app/views/admin/poll/polls/_search_booths_results.html.erb
index 3de4ffca6..3768fa222 100644
--- a/app/views/admin/poll/polls/_search_booths_results.html.erb
+++ b/app/views/admin/poll/polls/_search_booths_results.html.erb
@@ -1,32 +1,44 @@
-
+ <%= form_tag(search_booths_admin_poll_path(@poll), method: :get, remote: true) do |f| %>
+
-<% end %>
+
+ <%= text_field_tag :search,
+ @search,
+ placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %>
+
+
+ <% end %>
+ <%= t('admin.polls.show.no_search_results') %>
+
+<% else %>
+ <%= t('admin.polls.show.search_results') %>+<% end %> + +<% if @booths.any? %> +
- <%= text_field_tag :search,
- @search,
- placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %>
-
+
+
diff --git a/app/views/admin/poll/polls/_search_officers_results.html.erb b/app/views/admin/poll/polls/_search_officers_results.html.erb
index 6225ad9c5..818a7fa8d 100644
--- a/app/views/admin/poll/polls/_search_officers_results.html.erb
+++ b/app/views/admin/poll/polls/_search_officers_results.html.erb
@@ -1,30 +1,42 @@
-
+ <%= form_tag(search_officers_admin_poll_path(@poll), method: :get, remote: true) do |f| %>
+
-<% end %>
+
+ <%= text_field_tag :search,
+ @search,
+ placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %>
+
+
+ <% end %>
+ <%= t('admin.polls.show.no_search_results') %>
+
+<% else %>
+ <%= t('admin.polls.show.search_results') %>+<% end %> + +<% if @officers.any? %> +
- <%= text_field_tag :search,
- @search,
- placeholder: t("admin.shared.poll_questions_search.placeholder"), id: "search-questions" %>
+
+
diff --git a/app/views/admin/poll/polls/_search_questions_results.html.erb b/app/views/admin/poll/polls/_search_questions_results.html.erb
index e7012edd3..27dcbb652 100644
--- a/app/views/admin/poll/polls/_search_questions_results.html.erb
+++ b/app/views/admin/poll/polls/_search_questions_results.html.erb
@@ -1,25 +1,37 @@
-
+ <%= form_tag(search_questions_admin_poll_path(@poll), method: :get, remote: true) do |f| %>
+
-<% end %>
+
+ <%= text_field_tag :search,
+ @search,
+ placeholder: t("admin.shared.poll_questions_search.placeholder"), id: "search-questions" %>
-
+
+
+ <% end %>
+ <%= t('admin.polls.show.no_search_results') %>
+
+<% else %>
+ <%= t('admin.polls.show.search_results') %>+<% end %> + +<% if @questions.any? %> +
- <%= @poll.name %> - <%= l @poll.starts_at.to_date %> - <%= l @poll.ends_at.to_date %> -- <%= link_to t("admin.actions.edit"), edit_admin_poll_path(@poll), class: "button hollow float-right" %> ++ <%= @poll.name %> +++ + (<%= l @poll.starts_at.to_date %> - <%= l @poll.ends_at.to_date %>) + +
<%= render "filter_subnav" %>
\ No newline at end of file
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb
index 1bf130359..91bf398af 100644
--- a/app/views/admin/poll/questions/show.html.erb
+++ b/app/views/admin/poll/questions/show.html.erb
@@ -7,14 +7,17 @@
-
-
+ <%= render "search_questions" %>
<%= render "questions" %>
- <%= render "search_questions" %>
-
-
-
-
+ <%= render "search_booths" %>
<%= render "booths" %>
- <%= render "search_booths" %>
-
-
-
-
+ <%= render "search_officers" %>
<%= render 'officers' %>
- <%= render "search_officers" %>
-
-
- <% if @question.proposal.present? %>
- <%= t("admin.questions.show.proposal") %>
- <%= link_to @question.proposal.title, proposal_path(@question.proposal) %>
- <% end %>
-
<%= t("admin.questions.show.title") %>
<%= @question.title %>+ <% if @question.proposal.present? %> +
+ <%= t("admin.questions.show.proposal") %>
+
<%= t("admin.questions.show.author") %>
| ||||||||||||||||||||||||||||||||||||