diff --git a/gemeinsamforschen/src/main/webapp/pages/researchReportQuestion.html b/gemeinsamforschen/src/main/webapp/pages/researchReportQuestion.html new file mode 100644 index 0000000000000000000000000000000000000000..8530b49bb5e383c6404387a536f8fc2d00b16d30 --- /dev/null +++ b/gemeinsamforschen/src/main/webapp/pages/researchReportQuestion.html @@ -0,0 +1,50 @@ + +<html> +<head> + <script src="https://cdn.jsdelivr.net/npm/inscrybmde@1.11.3/dist/inscrybmde.min.js"></script> + <link rel="stylesheet" type="text/css" href="../assets/css/researchReport.css"> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/inscrybmde@1.11.3/dist/inscrybmde.min.css"> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> + <script src="../assets/js/utility.js"></script> + <title>Forschungsbericht erstellen</title> +</head> +<body> + + + +<form id="researchReportform" class="researchReportForm" method="POST" action="../rest/researchReport/save"> + + <div class = "researchReportMenu"> + <nav> + <menu> + <menuitem><p><a href="">Gruppe</a></p> </menuitem> + <menuitem><p><a href="">Projekt erstellen</a> </p></menuitem> + <menuitem><p><a href="">Forschungsbericht erstellen</a></p></menuitem> + <menuitem><p><a href="">Review</a></p></menuitem> + <menuitem><p><a href="">User</a></p></menuitem> + </menu> + </nav> + </div> + + <div class = "researchReportTitlebar"> + <h1> Forschungsbericht erstellen </h1> + </div> + + <div class ="researchReportEditor"> + <h2 class="editor-inhalt">Forschungsfrage eingeben:</h2> + <textarea id = "editor" name="text" form="researchReportForm" rows="20" cols="100"> + </textarea> + </div> + <div class="ResearchReportButtons"> + <input type="submit" class="researchReportButtons"> + <button class="researchReportButtons"> Zurück </button> + </div> + +</form> + +<script> + +</script> + +</body> +</html> \ No newline at end of file diff --git a/gemeinsamforschen/src/scripts/dbschema/createDummyResearchReport.sql b/gemeinsamforschen/src/scripts/dbschema/createDummyResearchReport.sql new file mode 100644 index 0000000000000000000000000000000000000000..dc22bfce45c061b650d49ea03d730dc83085a5a7 --- /dev/null +++ b/gemeinsamforschen/src/scripts/dbschema/createDummyResearchReport.sql @@ -0,0 +1,26 @@ +drop TABLE `researchReport`; + +CREATE TABLE researchReport ( + `id` varchar(400) NOT NULL, + `author` varchar(400) NOT NULL, + `title` varchar(400) NOT NULL, + `method` varchar(10000) NOT NULL, + `research` varchar(10000) NOT NULL, + `researchResult` varchar(10000) NOT NULL, + `evaluation` varchar(10000) NOT NULL, +)ENGINE=InnoDB DEFAULT CHARSET=utf8; + +INSERT INTO researchReport (`id`, `author`, `title`, `method`, `research`, `researchResult`, `evaluation`) VALUES + ('id1', 'author1', 'title1', 'method1', 'research1', 'researchResult1', 'evaluation1'); + +INSERT INTO researchReport (`id`, `author`, `title`, `method`, `research`, `researchResult`, `evaluation`) VALUES + ('id2', 'author2', 'title2', 'method2', 'research2', 'researchResult2', 'evaluation2'); + +INSERT INTO researchReport (`id`, `author`, `title`, `method`, `research`, `researchResult`, `evaluation`) VALUES + ('id3', 'author3', 'title3', 'method3', 'research3', 'researchResult3', 'evaluation3'); + +INSERT INTO researchReport (`id`, `author`, `title`, `method`, `research`, `researchResult`, `evaluation`) VALUES + ('id4', 'author4', 'title4', 'method4', 'research4', 'researchResult4', 'evaluation4'); + +INSERT INTO researchReport (`id`, `author`, `title`, `method`, `research`, `researchResult`, `evaluation`) VALUES + ('id5', 'author5', 'title5', 'method5', 'research5', 'researchResult5', 'evaluation5'); \ No newline at end of file diff --git a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql index d67c7c6ce8ea8b18aef40d9f27617ef1ddcebeb0..1a26a6ff3015512e0d23e0f012e1409cbf7b6136 100644 --- a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql +++ b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql @@ -41,6 +41,8 @@ alter table users add isStudent tinyint(1) default '1' null; CREATE TABLE researchReport ( + `id` varchar(400) NOT NULL, + `author` varchar(400) NOT NULL, `title` varchar(400) NOT NULL, `method` varchar(10000) NOT NULL, `research` varchar(10000) NOT NULL, @@ -51,18 +53,25 @@ CREATE TABLE researchReport ( //ToDo CREATE TABLE timeplan( `reportID` varchar(400) NOT NULL, + `startingTime` datetime NOT NULL, + `endTIme` datetime NOT NULL, + `milestoneTime` datetime NOT NULL, )ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE researchQuestion( `reportID` varchar(400) NOT NULL, + `question` varchar(4000) NOT NULL, )ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE bibliography( `reportID` varchar(400) NOT NULL, + `primarySource` varchar(4000) NOT NULL, + `secondarySource` varchar(4000) NOT NULL, )ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE learningGoals( `reportID` varchar(400) NOT NULL, + `goal` varchar(4000) NOT NULL, )ENGINE=InnoDB DEFAULT CHARSET=utf8;