]> git.openstreetmap.org Git - rails.git/commitdiff
Use bootstrap form styles for update home checkbox
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 3 Feb 2021 09:39:43 +0000 (09:39 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 3 Feb 2021 09:39:43 +0000 (09:39 +0000)
This slipped through the refactoring last week.

app/views/users/account.html.erb

index 43171d834c513167873c3124e6f478d3022ffe4a..bb30581f93d83516ea319448ee960420ca93a0eb 100644 (file)
         <%= f.text_field :home_lon, :wrapper_class => "col-sm-4", :id => "home_lon" %>
       </div>
     </div>
-    <div class="standard-form-row">
-      <input type="checkbox" name="updatehome" value="1" <% unless current_user.home_lat and current_user.home_lon %> checked="checked" <% end %> id="updatehome" />
-      <label class="standard-label" for="updatehome"><%= t ".update home location on click" %></label>
+    <div class="form-check">
+      <input class="form-check-input" type="checkbox" name="updatehome" value="1" <% unless current_user.home_lat and current_user.home_lon %> checked="checked" <% end %> id="updatehome" />
+      <label class="form-check-label" for="updatehome"><%= t ".update home location on click" %></label>
     </div>
     <%= tag.div "", :id => "map", :class => "content_map set_location" %>
   </fieldset>