Use bootstrap_form as the formbuilder for GPX upload form

This also uses the recommended bs-custom-file-input javascript plugin
for the file input control.
This commit is contained in:
Andy Allan 2020-06-24 15:26:07 +02:00
parent 54616e9612
commit 8d2271699b
10 changed files with 61 additions and 119 deletions

View file

@ -616,7 +616,7 @@ class TracesControllerTest < ActionDispatch::IntegrationTest
session_for(user)
post traces_path, :params => { :trace => { :gpx_file => file, :description => "", :tagstring => "new,trace", :visibility => "trackable" } }
assert_template :new
assert_match "Description is too short (minimum is 1 character)", response.body
assert_match "is too short (minimum is 1 character)", response.body
end
# Test fetching the edit page for a trace using GET