diff --git a/gemeinsamforschen/src/main/webapp/assets/css/annotationStyle.css b/gemeinsamforschen/src/main/webapp/assets/css/annotationStyle.css index 5ffeb66e3e316ab967e108346221fae2f750c9b9..a9ed0b540fd86a20c6375dfd3e602bd0d0f8a35b 100644 --- a/gemeinsamforschen/src/main/webapp/assets/css/annotationStyle.css +++ b/gemeinsamforschen/src/main/webapp/assets/css/annotationStyle.css @@ -148,6 +148,10 @@ ol { float: right; margin: 20px; } +.leftcontent-buttons-back { + float: left; + margin: 20px; +} .leftcontent-text { overflow: scroll; white-space: pre-line; diff --git a/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js b/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js index 52fcbddadb1bee81bbebc7db326b2b47a96f3e01..b6f25d8c8adba325836a6a282a147429b155dd34 100644 --- a/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js +++ b/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js @@ -71,6 +71,13 @@ $(document).ready(function() { location.href="givefeedback.jsp?token=" + getUserTokenFromUrl(); }); + /** + * back button + */ + $('#btnBack').click(function () { + location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); + }); + /** * validation of annotation create form inside the modal */ diff --git a/gemeinsamforschen/src/main/webapp/pages/annotation-document.jsp b/gemeinsamforschen/src/main/webapp/pages/annotation-document.jsp index 0eedb0cb8289cae1cc313f7c7d4740067e27486e..d8e499fe40ffe6c526d9785794e086efae0434a0 100644 --- a/gemeinsamforschen/src/main/webapp/pages/annotation-document.jsp +++ b/gemeinsamforschen/src/main/webapp/pages/annotation-document.jsp @@ -52,8 +52,11 @@ <div class="leftcontent"> <div class="leftcontent-text context-menu-one" id="documentText"></div> <div class="leftcontent-buttons"> + <div class="leftcontent-buttons-back"> + <button id="btnBack" type="button" class="btn btn-secondary">Zurück</button> + </div> <div class="leftcontent-buttons-next"> - <button id="btnContinue" type="button" class="btn btn-secondary">Weiter</button> + <button id="btnContinue" type="button" class="btn btn-primary">Weiter</button> </div> </div> </div>