diff --git a/gemeinsamforschen/src/main/webapp/core/footer.js b/gemeinsamforschen/src/main/webapp/core/footer.js index 9407ef60d1a1c1af5d8bce6c5dc1e9c1835645bc..6875866f0675741797ba62d75e5e2538556dfe19 100644 --- a/gemeinsamforschen/src/main/webapp/core/footer.js +++ b/gemeinsamforschen/src/main/webapp/core/footer.js @@ -1,3 +1,6 @@ $(document).ready(function(){ + $('#btnUnstructuredUpload').click(function () { + location.href="annotation/upload-unstructured-annotation.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); + }); }); diff --git a/gemeinsamforschen/src/main/webapp/core/project-student.js b/gemeinsamforschen/src/main/webapp/core/project-student.js index ff3a8f1e43ebb54b4eebe69f2de82258c9f3edf2..8c7642ebeff55680cc523f7e27005087a29082a6 100644 --- a/gemeinsamforschen/src/main/webapp/core/project-student.js +++ b/gemeinsamforschen/src/main/webapp/core/project-student.js @@ -11,7 +11,7 @@ $(document).ready(function(){ $('.annotationview').click(function () { let fullSubmissionId = $(this).closest("li").data("fullSubmissionId"); let category = $(this).closest("li").data("category"); - location.href="/annotation/annotation-document.jsp?token=" + getUserTokenFromUrl() + + location.href="annotation/annotation-document.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId") + "&fullSubmissionId=" + fullSubmissionId + "&category=" + category; @@ -30,20 +30,16 @@ $(document).ready(function(){ }); */ $('.givefeedback').click(function () { - location.href="givefeedback.jsp?token="+getUserTokenFromUrl(); + location.href="feedback/give-feedback.jsp?token="+getUserTokenFromUrl(); }); $('.viewfeedback').click(function () { - location.href="viewfeedback.jsp?token="+getUserTokenFromUrl(); + location.href="feedback/view-feedback.jsp?token="+getUserTokenFromUrl(); }); $('.annotationview').click(function () { - location.href="annotation-document.jsp?token="+getUserTokenFromUrl(); + location.href="annotation/annotation-document.jsp?token="+getUserTokenFromUrl(); }); - $('#btnUnstructuredUpload').click(function () { - location.href="/annotation/upload-unstructured-annotation.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); - }) - $('.viewprojectstudent').click(function () { location.href="project-student.jsp?token="+getUserTokenFromUrl(); }) diff --git a/gemeinsamforschen/src/main/webapp/core/utility.js b/gemeinsamforschen/src/main/webapp/core/utility.js index 0c674ce7e11611a7c2674a5220fc7f3dd263697a..334fdd7dbe9cace9e66a922b3e05773135a192d6 100644 --- a/gemeinsamforschen/src/main/webapp/core/utility.js +++ b/gemeinsamforschen/src/main/webapp/core/utility.js @@ -1,9 +1,3 @@ -function changeLocationTo(target) { - let level = $('#hierarchyLevel').html().trim(); - let link = calculateHierachy(level) + target; - return link; -} - $(document).ready(function(){ $('#headLineProject').html($('#projectId').html()); $('#logout').click(function(){ @@ -20,6 +14,13 @@ $(document).ready(function(){ }); }); +function changeLocationTo(target) { + let level = $('#hierarchyLevel').html().trim(); + let link = calculateHierachy(level) + target; + return link; +} + + function goBack() { window.history.back(); } diff --git a/gemeinsamforschen/src/main/webapp/feedback/give-feedback.jsp b/gemeinsamforschen/src/main/webapp/feedback/give-feedback.jsp index 26e9ed28d1e024b2f8f3523c0b90fb67020043c8..365f23b121e96b5df7443a4a4d105ef9e85cff92 100644 --- a/gemeinsamforschen/src/main/webapp/feedback/give-feedback.jsp +++ b/gemeinsamforschen/src/main/webapp/feedback/give-feedback.jsp @@ -2,6 +2,7 @@ <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="menu" %> <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="headLine" %> <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="omniDependencies" %> +<%@ taglib uri="../core/gemeinsamForschen.tld" prefix="footer" %> <!DOCTYPE html> <html> @@ -135,12 +136,8 @@ </table> </div> </div> + <footer:footer/> </div> - -<script src="js/jquery.min.js"></script> -<script src="../assets/bootstrap/js/bootstrap.min.js"></script> -<script src="js/Sidebar-Menu.js"></script> -<script src="js/createJournal.js"></script> </body> </html> \ No newline at end of file diff --git a/gemeinsamforschen/src/main/webapp/feedback/view-feedback.jsp b/gemeinsamforschen/src/main/webapp/feedback/view-feedback.jsp index 4673f4eb514b316bb8cd96f95ad277127f228c9c..b50e9f8921415b4e5fa7a16715c054c34045166e 100644 --- a/gemeinsamforschen/src/main/webapp/feedback/view-feedback.jsp +++ b/gemeinsamforschen/src/main/webapp/feedback/view-feedback.jsp @@ -2,6 +2,7 @@ <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="menu" %> <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="headLine" %> <%@ taglib uri="../core/gemeinsamForschen.tld" prefix="omniDependencies" %> +<%@ taglib uri="../core/gemeinsamForschen.tld" prefix="footer" %> <!DOCTYPE html> <html> @@ -113,7 +114,7 @@ <div></div> <div class="media-body"> <div class="media" style="overflow:visible;"> - <div><img src="../assets/img/1.jpg" class="mr-3" + <div><img src="../libs/img/1.jpg" class="mr-3" style="width: 25px; height:25px;"></div> <div class="media-body" style="overflow:visible;"> <div class="row"> @@ -135,7 +136,7 @@ <div></div> <div class="media-body"> <div class="media" style="overflow:visible;"> - <div><img src="../assets/img/2.jpg" class="mr-3" + <div><img src="../libs/img/2.jpg" class="mr-3" style="width: 25px; height:25px;"></div> <div class="media-body" style="overflow:visible;"> <div class="row"> @@ -163,11 +164,8 @@ </table> </div> </div> + <footer:footer/> </div> - -<script src="js/jquery.min.js"></script> -<script src="../assets/bootstrap/js/bootstrap.min.js"></script> -<script src="js/Sidebar-Menu.js"></script> </body> </html> diff --git a/gemeinsamforschen/src/main/webapp/project-student.jsp b/gemeinsamforschen/src/main/webapp/project-student.jsp index ccf60351f37ae9761a2e58426b12f97e1c7a222f..63562e8b66fa2b753455eb8d8b703094a1687d89 100644 --- a/gemeinsamforschen/src/main/webapp/project-student.jsp +++ b/gemeinsamforschen/src/main/webapp/project-student.jsp @@ -102,8 +102,6 @@ </tr> </table> - - <button onclick="goBack()" class="btn btn-secondary">Zurück</button> </td> </tr> </table> diff --git a/gemeinsamforschen/src/scripts/dbschema/createDummyCourses.sql b/gemeinsamforschen/src/scripts/dbschema/createDummyCourses.sql new file mode 100644 index 0000000000000000000000000000000000000000..873c6a89affc378b88bb7c2bf2bbbb438ac0f770 --- /dev/null +++ b/gemeinsamforschen/src/scripts/dbschema/createDummyCourses.sql @@ -0,0 +1,4 @@ +INSERT INTO `projects` (`id`, `password`, `active`, `timecreated`, `author`, `adminPassword`, `token`, `phase`) VALUES +('Kaleo', 'password', 1, '2018-09-07 12:13:21', 'axel', '1234', '4pingsfelmf4', 'CourseCreation'), +('gemeinsamForschen', 'password', 1, '2018-09-13 08:55:02', 'axel', '1234', '32ptng45g9', 'Execution'); +COMMIT; \ No newline at end of file