X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1935b1c5786de8f27bee9b6b2da2f28f650468f..967e6d4:/app/views/preferences/show.html.erb
diff --git a/app/views/preferences/show.html.erb b/app/views/preferences/show.html.erb
index 7a63d0be8..f23afda00 100644
--- a/app/views/preferences/show.html.erb
+++ b/app/views/preferences/show.html.erb
@@ -2,27 +2,26 @@
<%= t ".title" %>
<% end %>
-
- - <%= t ".preferred_editor" %>
+<%= bootstrap_form_for current_user, :url => { :action => :update } do |f| %>
+ <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{Settings.default_editor}.name")), "default"]] + Editors::AVAILABLE_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
- <% if current_user.preferred_editor? %>
- - <%= t("editor.#{current_user.preferred_editor}.description") %>
- <% else %>
- - <%= t("editor.default", :name => t("editor.#{Settings.default_editor}.name")) %>
- <% end %>
+ <%= f.text_field :languages %>
- - <%= t ".preferred_languages" %>
+
+ <%= label_tag "site_color_scheme", t(".preferred_site_color_scheme"), :class => "form-label" %>
+ <%= select_tag "site_color_scheme",
+ options_for_select(%w[auto light dark].map { |scheme| [t(".site_color_schemes.#{scheme}"), scheme] },
+ preferred_color_scheme(:site)),
+ :class => "form-select" %>
+
- -
-
- <% current_user.preferred_languages.each do |locale| %>
- - <%= locale %>
- <% end %>
-
+
+ <%= label_tag "map_color_scheme", t(".preferred_map_color_scheme"), :class => "form-label" %>
+ <%= select_tag "map_color_scheme",
+ options_for_select(%w[auto light dark].map { |scheme| [t(".map_color_schemes.#{scheme}"), scheme] },
+ preferred_color_scheme(:map)),
+ :class => "form-select" %>
+
-
-
-
-
- <%= link_to t(".edit_preferences"), edit_preferences_path, :class => "btn btn-outline-primary" %>
-
+ <%= f.primary t(".save") %>
+<% end %>