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 Nov 16, 2024
1 parent baac92a commit 3017cea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/preferences/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

<%= f.text_field :languages %>

<div class="mb-3">
<%= label_tag "color_scheme", t(".preferred_color_scheme"), :class => "form-label" %>
<%= select_tag "color_scheme",
options_for_select([[t(".color_scheme.auto"), "auto"], [t(".color_scheme.light"), "light"]], request.cookies["_osm_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 3017cea

Please sign in to comment.