Skip to content

Commit

Permalink
Add color scheme select to preferences form
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Dec 1, 2024
1 parent bf2846d commit a50b27a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/preferences/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

<%= f.text_field :languages %>

<div class="mb-3">
<%= label_tag "site_color_scheme", t("preferences.show.preferred_site_color_scheme"), :class => "form-label" %>
<%= select_tag "site_color_scheme",
options_for_select(%w[auto light dark].map { |scheme| [t("preferences.show.site_color_schemes.#{scheme}"), scheme] },
preferred_site_color_scheme),
:class => "form-select" %>
</div>

<%= f.primary t(".save") %>
<%= link_to t(".cancel"), preferences_path, :class => "btn btn-link" %>
<% end %>

0 comments on commit a50b27a

Please sign in to comment.