From: Anton Khorev Date: Sun, 1 Dec 2024 01:02:51 +0000 (+0300) Subject: Add map color scheme select to preferences form X-Git-Tag: live~1^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/444a691578d26d64dbc0507509c562afaedca6e3?ds=inline;hp=a35f360d5eb96fc553afaf17818a3ace0665a03d Add map color scheme select to preferences form --- diff --git a/app/views/preferences/edit.html.erb b/app/views/preferences/edit.html.erb index 2c3cd4ba0..aaf07e927 100644 --- a/app/views/preferences/edit.html.erb +++ b/app/views/preferences/edit.html.erb @@ -15,6 +15,14 @@ :class => "form-select" %> +
+ <%= label_tag "map_color_scheme", t("preferences.show.preferred_map_color_scheme"), :class => "form-label" %> + <%= select_tag "map_color_scheme", + options_for_select(%w[auto light dark].map { |scheme| [t("preferences.show.map_color_schemes.#{scheme}"), scheme] }, + preferred_color_scheme(:map)), + :class => "form-select" %> +
+ <%= f.primary t(".save") %> <%= link_to t(".cancel"), preferences_path, :class => "btn btn-link" %> <% end %>