]> git.openstreetmap.org Git - rails.git/commitdiff
Bootstrap 5: Update manual select boxes to use form-select class
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Jun 2022 14:29:21 +0000 (15:29 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 20 Jul 2022 13:41:55 +0000 (14:41 +0100)
app/views/issues/index.html.erb
app/views/layouts/_search.html.erb
app/views/user_blocks/edit.html.erb
app/views/user_blocks/new.html.erb

index 9222aafffe4471695e1b7165cfddbe011e847882..b2b3e913a019e36951bb8730445a4da61e27c51c 100644 (file)
                      options_for_select(Issue.aasm.states.map(&:name).map { |state| [t(".states.#{state}"), state] }, params[:status]),
                      :include_blank => t(".select_status"),
                      :data => { :behavior => "category_dropdown" },
-                     :class => "form-control custom-select" %>
+                     :class => "form-select" %>
     </div>
     <div class="form-group col-md-auto">
       <%= select_tag :issue_type,
                      options_for_select(@issue_types, params[:issue_type]),
                      :include_blank => t(".select_type"),
                      :data => { :behavior => "category_dropdown" },
-                     :class => "form-control custom-select" %>
+                     :class => "form-select" %>
     </div>
     <div class="form-group col-md">
       <%= text_field_tag :search_by_user,
@@ -32,7 +32,7 @@
                      options_for_select(@users.all.collect { |f| [f.display_name, f.id] } << [t(".not_updated"), "nil"], params[:last_updated_by]),
                      :include_blank => t(".select_last_updated_by"),
                      :data => { :behavior => "category_dropdown" },
-                     :class => "form-control custom-select" %>
+                     :class => "form-select" %>
     </div>
     <div class="form-group col-md-auto">
       <%= submit_tag t(".search"), :name => nil, :class => "btn btn-primary" %>
index 38a926760f76e592fbbe708570e9d4fe95d0802e..c2501b95bf34762c1701c2fb3bea2422fe152237 100644 (file)
@@ -39,7 +39,7 @@
     </div>
     <div class="row gx-2 m-1">
       <div class="col offset-1">
-        <select class="routing_engines form-control form-control-sm" name="routing_engines"></select>
+        <select class="routing_engines form-select form-select-sm" name="routing_engines"></select>
       </div>
       <div class="col-auto">
         <%= submit_tag t("site.search.submit_text"), :class => "routing_go btn btn-sm btn-primary", :data => { :disable_with => false } %>
index 8c89c80f3eb41d12356df4f90dff91ea19e6e843..3591b9c0f97981bd647e4d45cbfdd2c7775b2f43 100644 (file)
@@ -16,7 +16,9 @@
 
   <%= f.form_group do %>
     <%= label_tag "user_block_period", t(".period") %><br />
-    <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period])) %>
+    <%= select_tag("user_block_period",
+                   options_for_select(UserBlock::PERIODS.collect { |h| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period]),
+                   :class => "form-select") %>
   <% end %>
 
   <%= f.form_group :needs_view do %>
index 4dc7fd63c8e0a50dc12ff4657d29c6fbd078dfcc..c1195343b8c5ae6202e9d27929009a0a032a2ef6 100644 (file)
@@ -10,7 +10,9 @@
 
   <%= f.form_group do %>
     <%= label_tag "user_block_period", t(".period") %><br />
-    <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period])) %>
+    <%= select_tag("user_block_period",
+                   options_for_select(UserBlock::PERIODS.collect { |h| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period]),
+                   :class => "form-select") %>
   <% end %>
 
   <%= f.form_group :needs_view do %>