diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index a8d81a12d..7b74b2697 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -46,6 +46,10 @@ $sidebar-active: #f4fcd0; .top-links { background: #000; + + a { + line-height: rem-calc($line-height * 1.5); + } } .admin-top-bar { @@ -190,6 +194,11 @@ $sidebar-active: #f4fcd0; &.with-button { line-height: $line-height * 2; + + .button { + background: #fff; + color: $brand; + } } } @@ -204,6 +213,19 @@ $sidebar-active: #f4fcd0; table { + thead { + color: #fff; + } + + th { + background: $brand; + color: #fff; + + label { + color: #fff; + } + } + .break { word-break: break-word; } @@ -220,7 +242,6 @@ $sidebar-active: #f4fcd0; @include breakpoint(medium) { margin-left: $line-height / 2; - margin-right: $line-height / 2; margin-top: 0; } } @@ -335,6 +356,14 @@ $sidebar-active: #f4fcd0; margin-bottom: 0 !important; } +.enabled { + color: $color-success; +} + +.disabled { + color: $text-medium; +} + // 02. Sidebar // ----------- diff --git a/app/views/admin/admin_notifications/index.html.erb b/app/views/admin/admin_notifications/index.html.erb index d16ee476e..986f1c077 100644 --- a/app/views/admin/admin_notifications/index.html.erb +++ b/app/views/admin/admin_notifications/index.html.erb @@ -9,7 +9,7 @@
+
+ <% if @admin_notification.draft? %> + <%= t("admin.admin_notifications.show.preview_guide") %> + <% else %> + <%= t("admin.admin_notifications.show.sent_guide") %> + <% end %> +
+- <%= t("admin.budget_phases.edit.description_help_text") %> -
- - <%= f.cktext_area :description, - maxlength: Budget::Phase::DESCRIPTION_MAX_LENGTH, - ckeditor: { language: I18n.locale }, - label: false %> -- <%= t("admin.budget_phases.edit.summary_help_text") %> -
- - <%= f.cktext_area :summary, - maxlength: Budget::Phase::SUMMARY_MAX_LENGTH, - ckeditor: { language: I18n.locale }, - label: false %> -- <%= t("admin.budget_phases.edit.enabled_help_text") %> -
-| <%= t("admin.budgets.edit.phase") %> | -<%= t("admin.budgets.edit.dates") %> | -<%= t("admin.budgets.edit.enabled") %> | -<%= t("admin.budgets.edit.actions") %> | -
|---|
| <%= t("admin.budgets.edit.phase") %> | +<%= t("admin.budgets.edit.dates") %> | +<%= t("admin.budgets.edit.enabled") %> | +<%= t("admin.budgets.edit.actions") %> | +
|---|---|---|---|
| - <%= t("budgets.phase.#{phase.kind}") %> - <% if @budget.current_phase == phase %> - <%= t("admin.budgets.edit.active") %> - <% end %> - | -- <% if phase.starts_at.present? || phase.ends_at.present? %> - <%= l(phase.starts_at.to_date) if phase.starts_at.present? %> - - - <%= l(phase.ends_at.to_date) if phase.ends_at.present? %> - <% else %> - <%= t("admin.budgets.edit.blank_dates") %> - <% end %> - | -- - | -- <%= link_to t("admin.budgets.edit.edit_phase"), - edit_admin_budget_budget_phase_path(@budget, phase), - method: :get, class: "button hollow" %> - | -
<%= t("admin.dashboard.index.description", org: setting['org_name']) %>
diff --git a/app/views/admin/emails_download/index.html.erb b/app/views/admin/emails_download/index.html.erb index 7c82a6844..a8283bbc2 100644 --- a/app/views/admin/emails_download/index.html.erb +++ b/app/views/admin/emails_download/index.html.erb @@ -5,15 +5,13 @@ method: :get, id: "admin_download_emails" do %> - +- <%= t('admin.emails_download.index.download_segment_help_text') %> + <%= t("admin.emails_download.index.download_segment_help_text") %>
<%= select_tag :users_segment, options_for_select(user_segments_options) %> -| <%= t("admin.newsletters.index.subject") %> | +<%= t("admin.newsletters.index.subject") %> | <%= t("admin.newsletters.index.segment_recipient") %> | <%= t("admin.newsletters.index.sent") %> | -<%= t("admin.newsletters.index.actions") %> | +<%= t("admin.newsletters.index.actions") %> | + |
+
<%= link_to t("admin.newsletters.index.edit"), edit_admin_newsletter_path(newsletter),
- method: :get, class: "button hollow" %>
+ method: :get, class: "button hollow expanded" %>
+
+
<%= link_to t("admin.newsletters.index.delete"), admin_newsletter_path(newsletter),
- method: :delete, class: "button hollow alert" %>
+ method: :delete, class: "button hollow alert expanded" %>
+
+
<%= link_to t("admin.newsletters.index.preview"), admin_newsletter_path(newsletter),
- class: "button" %>
+ class: "button expanded" %>
+
|
<% end %>
diff --git a/app/views/admin/newsletters/show.html.erb b/app/views/admin/newsletters/show.html.erb
index 64b1d7725..c6b043c12 100644
--- a/app/views/admin/newsletters/show.html.erb
+++ b/app/views/admin/newsletters/show.html.erb
@@ -4,39 +4,37 @@
<% recipients_count = @newsletter.valid_segment_recipient? ? @newsletter.list_of_recipient_emails.count : 0 %>
-- <%= 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/_search_booths.html.erb b/app/views/admin/poll/booth_assignments/_search_booths.html.erb index e96e334c7..b8f5d7c80 100644 --- a/app/views/admin/poll/booth_assignments/_search_booths.html.erb +++ b/app/views/admin/poll/booth_assignments/_search_booths.html.erb @@ -1,16 +1,14 @@ -<%= 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 @@ -||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= 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 %> | 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.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 %> | diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb index 1a45b8097..8a91d614a 100644 --- a/app/views/admin/poll/polls/_form.html.erb +++ b/app/views/admin/poll/polls/_form.html.erb @@ -1,11 +1,9 @@ <%= form_for [:admin, @poll] do |f| %> -
+
<%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll),
- class: "button hollow" %>
+ class: "button hollow expanded" %>
+
+
<%= link_to t("admin.actions.configure"),
admin_poll_path(poll),
- class: "button hollow" %>
+ class: "button hollow expanded" %>
+
|
diff --git a/app/views/admin/poll/polls/_questions.html.erb b/app/views/admin/poll/polls/_questions.html.erb
index fb92a4e43..f1dd818e8 100644
--- a/app/views/admin/poll/polls/_questions.html.erb
+++ b/app/views/admin/poll/polls/_questions.html.erb
@@ -2,13 +2,13 @@
<% if @poll.questions.empty? %>
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t('admin.polls.show.table_title') %> | +<%= t("admin.polls.show.table_title") %> | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t("admin.polls.index.name") %> | +<%= t("admin.polls.index.name") %> | <%= t("admin.polls.index.dates") %> | -<%= t("admin.actions.actions") %> | +<%= t("admin.actions.actions") %> | <%= render @polls %> diff --git a/app/views/admin/poll/polls/new.html.erb b/app/views/admin/poll/polls/new.html.erb index ac3ba5a4d..6cc6c0d8f 100644 --- a/app/views/admin/poll/polls/new.html.erb +++ b/app/views/admin/poll/polls/new.html.erb @@ -1,6 +1,8 @@ -<%= back_link_to %> +||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t('admin.questions.index.table_question') %> | -<%= t("admin.actions.actions") %> | +<%= t("admin.questions.index.table_question") %> | +<%= t("admin.actions.actions") %> | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= link_to question.title, admin_question_path(question) %> | -- <%= link_to t('shared.edit'), edit_admin_question_path(question), class: "button hollow" %> - <%= link_to t('shared.delete'), admin_question_path(question), class: "button hollow alert", method: :delete %> + |
+
+ <%= link_to t("shared.edit"), edit_admin_question_path(question), class: "button hollow expanded" %>
+
+
+ <%= link_to t("shared.delete"), admin_question_path(question), class: "button hollow alert expanded", method: :delete %>
+ |
||||||||||||||||||||||||||||||
| <%= t('admin.questions.index.table_proposal') %> | -<%= t("admin.actions.actions") %> | +<%= t("admin.questions.index.table_proposal") %> | +<%= t("admin.actions.actions") %> | + |
<%= link_to t("admin.questions.index.create_question"),
new_admin_question_path(proposal_id: proposal.id),
class: "button hollow" %>
diff --git a/app/views/admin/poll/questions/answers/_form.html.erb b/app/views/admin/poll/questions/answers/_form.html.erb
index 3bb2ebe39..cbc450813 100644
--- a/app/views/admin/poll/questions/answers/_form.html.erb
+++ b/app/views/admin/poll/questions/answers/_form.html.erb
@@ -12,8 +12,8 @@
ckeditor: { language: I18n.locale } %>
-
- <%= f.submit(class: "button expanded", value: t("shared.save")) %>
+
+ <%= f.submit(class: "button success expanded", value: t("shared.save")) %>
<% end %>
diff --git a/app/views/admin/poll/questions/answers/edit.html.erb b/app/views/admin/poll/questions/answers/edit.html.erb
index 48fb4ad5d..46a8784cc 100644
--- a/app/views/admin/poll/questions/answers/edit.html.erb
+++ b/app/views/admin/poll/questions/answers/edit.html.erb
@@ -2,7 +2,7 @@
diff --git a/app/views/admin/poll/questions/answers/new.html.erb b/app/views/admin/poll/questions/answers/new.html.erb
index 1400bf765..c3af00be6 100644
--- a/app/views/admin/poll/questions/answers/new.html.erb
+++ b/app/views/admin/poll/questions/answers/new.html.erb
@@ -2,10 +2,10 @@
<%= t('admin.questions.index.title') %>+<%= t("admin.questions.index.title") %>-<%= link_to t('admin.questions.index.create'), new_admin_question_path, - class: "button success float-right" %> +<%= link_to t("admin.questions.index.create"), new_admin_question_path, + class: "button float-right" %>
<%= render 'search' %>
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb
index fa56bfac4..094ebff83 100644
--- a/app/views/admin/poll/questions/show.html.erb
+++ b/app/views/admin/poll/questions/show.html.erb
@@ -29,13 +29,15 @@
| |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t('admin.questions.show.valid_answers') %> - <%= link_to t("admin.questions.show.add_answer"), - new_admin_question_answer_path(@question), - class: "button float-right" %> | <%= 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 %> diff --git a/app/views/admin/settings/_configuration.html.erb b/app/views/admin/settings/_configuration.html.erb index edadbb604..f2d5a7605 100644 --- a/app/views/admin/settings/_configuration.html.erb +++ b/app/views/admin/settings/_configuration.html.erb @@ -1,13 +1,23 @@||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= t("admin.settings.setting_name") %> | +<%= t("admin.settings.setting_value") %> | +|||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + |
<%= t("settings.#{setting.key}") %>
+ + + <%= t("settings.#{setting.key}_description", default: t("admin.settings.no_description")) %> + |
- + |
<%= form_for(setting, url: admin_setting_path(setting), html: { id: "edit_#{dom_id(setting)}"}) do |f| %>
<%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>
diff --git a/app/views/admin/settings/_feature_flags.html.erb b/app/views/admin/settings/_feature_flags.html.erb
index 5c3660065..493c89873 100644
--- a/app/views/admin/settings/_feature_flags.html.erb
+++ b/app/views/admin/settings/_feature_flags.html.erb
@@ -1,15 +1,36 @@
<%= t("admin.settings.index.feature_flags") %>
| |||||||||||||||||||||||||||||