diff --git a/app/static/css/allPendingForms.css b/app/static/css/allPendingForms.css index b5635d8a6..229fc6bb4 100644 --- a/app/static/css/allPendingForms.css +++ b/app/static/css/allPendingForms.css @@ -107,3 +107,24 @@ a.hover_indicator:active { text-align: center !important; } +.spinner { + width: 50px; + height: 50px; + border: 5px solid #f3f3f3; + border-radius: 50%; + + border-top: 5px solid #3498db; + + + animation: spin 1s linear infinite; +} + + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} \ No newline at end of file diff --git a/app/static/css/base.css b/app/static/css/base.css index 916fb4db9..d8050e45d 100755 --- a/app/static/css/base.css +++ b/app/static/css/base.css @@ -20,6 +20,13 @@ html, body { background-color: #275881; overflow-x: hidden; } +.bottom-clickability { + padding: 1.5rem 1.5rem !important; + width: 100% !important; + display: inline !important; + margin: 10 !important; + box-sizing: border-box !important; +} .panel-default, .panel-heading { border: none; diff --git a/app/static/js/allPendingForms.js b/app/static/js/allPendingForms.js index fda836f08..03e593aad 100644 --- a/app/static/js/allPendingForms.js +++ b/app/static/js/allPendingForms.js @@ -252,8 +252,8 @@ function resendApprovalLink(formId) { }); } -function getNotes(formId) { - $.ajax({ +function getNotes(formId, formHistoryID) { + $.ajax({ type: "GET", url: "/admin/getNotes/" + formId, datatype: "json", @@ -286,7 +286,6 @@ function getNotes(formId) { }); } - function notesInsert(textareaID, buttonID) { var formId = $("#" + textareaID).data('formId'); var laborNotes = $("#" + textareaID).val(); //this is getting the id of the labor notes text area @@ -303,7 +302,6 @@ function notesInsert(textareaID, buttonID) { e.preventDefault(); }); - $.ajax({ method: "POST", url: '/admin/notesInsert/' + formId, @@ -353,21 +351,29 @@ function clearTextArea() { //makes sure that it empties text areas and p tags wh -function loadOverloadModal(formHistoryID, laborStatusFormID) { - /* - This method sends an AJAX call to recieve data used to populate - the overload modal. - */ +function loadOverloadModal(formHistoryID) { + /* + This method resets the modal content to a loading state to prevent + displaying stale data, then fetches and renders the new form data.*/ + + $("#overloadModal").find(".modal-content").html(`