diff --git a/locust/static/locust.js b/locust/static/locust.js index 28e3b976e0..d606433a8c 100644 --- a/locust/static/locust.js +++ b/locust/static/locust.js @@ -170,15 +170,15 @@ $(".edit_config_link").click(function(event) { }); +$("#directories .select2").select2({ + placeholder: "Select a state" +}); + $('#upload_btn_submit').click(function(event){ event.preventDefault(); $('#upload_file_form').submit(); }); -$("#directories .select2").select2({ - placeholder: "Select a state" -}); - $('#upload_file_form').submit(function(event) { event.preventDefault(); var form = $('#upload_file_form')[0]; diff --git a/locust/static/style.css b/locust/static/style.css index 20480eed75..a5745b0f85 100644 --- a/locust/static/style.css +++ b/locust/static/style.css @@ -566,7 +566,7 @@ ul.tabs li a.current:after { } -#add-new-file-modal, #new-test-confirmation { +#add-new-file-modal, #upload_json_modal, #new-test-confirmation { width: 398px; position: absolute; left: 50%; @@ -580,33 +580,36 @@ ul.tabs li a.current:after { background: #132b21; box-shadow: 0 0 120px rgba(0,0,0,0.3); } -#add-new-file-modal{ + +#add-new-file-modal, #upload_json_modal { padding-left : 1%; padding-right: 1%; height: 275px; } #new-test-confirmation { height: 160px; + width: 450px; } -#add-new-file-modal .modal-dialog, #new-test-confirmation .modal-dialog{ + +#add-new-file-modal .modal-dialog, #new-test-confirmation .modal-dialog, #upload_json_modal .modal-dialog{ display: flex; flex-direction: column; vertical-align: middle; margin-top: 0px; margin-bottom: -50px; } -#add-new-file-modal .modal-header, #new-test-confirmation .modal-header { +#add-new-file-modal .modal-header, #new-test-confirmation .modal-header, #upload_json_modal .modal-header { border-bottom-color: transparent; } -#add-new-file-modal .close, #new-test-confirmation .close { +#add-new-file-modal .close, #new-test-confirmation .close, #upload_json_modal .close { color: #addf82; } -#new-test-confirmation .modal-header .close, #add-new-file-modal .close{ +#new-test-confirmation .modal-header .close, #add-new-file-modal .close, #upload_json_modal .modal-header .close{ margin-right: -25px; padding: 3px; } -#new-test-confirmation .modal-body, #add-new-file-modal .modal-body { +#new-test-confirmation .modal-body, #add-new-file-modal .modal-body, #upload_json_modal .modal-body { padding-top: 25px; padding-bottom: 0px; color: white; @@ -616,14 +619,17 @@ ul.tabs li a.current:after { padding: 0; } #new-test-confirmation .btn-newtest { - padding: 8px 30px; - margin: 3px 3px; + padding: 10px 30px; + margin: 4px 4px; +} +#new-test-confirmation .modal-header .close { + margin-right: -10px; } -#add-new-file-modal .modal-content, #new-test-confirmation .modal-content { +#add-new-file-modal .modal-content, #new-test-confirmation .modal-content, #upload_json_modal .modal-content { background-color: #132b21; border-color: transparent; } -#add-new-file-modal .modal-title, #new-test-confirmation .modal-title { +#add-new-file-modal .modal-title, #new-test-confirmation .modal-title, #upload_json_modal .modal-title { color:#addf82; } #upload_file_form, #new-test-confirmation { diff --git a/locust/templates/index.html b/locust/templates/index.html index 2948e58372..86f4d83c81 100644 --- a/locust/templates/index.html +++ b/locust/templates/index.html @@ -143,7 +143,7 @@

- +
@@ -310,11 +310,11 @@
- +
-