Skip to content
Snippets Groups Projects
Commit ee9f7a11 authored by Axel's avatar Axel
Browse files

fix: css and js for index and register work

parent ab6d6338
No related branches found
No related tags found
No related merge requests found
Showing
with 25 additions and 33 deletions
...@@ -33,7 +33,7 @@ public class Menu extends SimpleTagSupport { ...@@ -33,7 +33,7 @@ public class Menu extends SimpleTagSupport {
if (isStudent){ if (isStudent){
String menuString = "<div id=\"sidebar-wrapper\">\n" + String menuString = "<div id=\"sidebar-wrapper\">\n" +
" <ul class=\"sidebar-nav\">\n" + " <ul class=\"sidebar-nav\">\n" +
" <li class=\"sidebar-brand\"><a href=\""+hierarchyToString(hierarchyLevel-1)+"overview-student.jsp?token="+token+"&projectId="+projectId+"\">overview</a></li>\n" + " <li class=\"sidebar-brand\"><a href=\""+hierarchyToString(hierarchyLevel)+"overview-student.jsp?token="+token+"&projectId="+projectId+"\">overview</a></li>\n" +
" <li><a href=\""+hierarchyToString(hierarchyLevel)+"profile/profile.jsp?token="+token+"&projectId="+projectId+"\">Profil</a></li>\n"; " <li><a href=\""+hierarchyToString(hierarchyLevel)+"profile/profile.jsp?token="+token+"&projectId="+projectId+"\">Profil</a></li>\n";
if (projectPhase!=null){ if (projectPhase!=null){
if (projectPhase.equals(ProjectPhase.CourseCreation)){ if (projectPhase.equals(ProjectPhase.CourseCreation)){
......
...@@ -5,6 +5,8 @@ import javax.servlet.jsp.tagext.SimpleTagSupport; ...@@ -5,6 +5,8 @@ import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException; import java.io.IOException;
public class OmniDependencies extends SimpleTagSupport { public class OmniDependencies extends SimpleTagSupport {
private Integer hierarchyLevel=0;
public void doTag() throws IOException { public void doTag() throws IOException {
JspWriter out = getJspContext().getOut(); JspWriter out = getJspContext().getOut();
out.println("<meta charset=\"utf-8\">\n" + out.println("<meta charset=\"utf-8\">\n" +
...@@ -12,15 +14,15 @@ public class OmniDependencies extends SimpleTagSupport { ...@@ -12,15 +14,15 @@ public class OmniDependencies extends SimpleTagSupport {
" <title>fltrail</title>\n" + " <title>fltrail</title>\n" +
" <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">\n" + " <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\">\n" +
" <link rel=\"stylesheet\" href=\"../libs/css/styles.css\">\n" + " <link rel=\"stylesheet\" href=\"../libs/css/styles.css\">\n" +
" <link rel=\"stylesheet\" href=\"../libs/css/Footer.css\">\n" + " <link rel=\"stylesheet\" href=\"../core/footer.css\">\n" +
" <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script>\n" + " <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script>\n" +
" <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\"></script>\n" + " <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\"></script>\n" +
" <link rel=\"stylesheet\" href=\"../libs/fonts/font-awesome.min.css\">\n" + " <link rel=\"stylesheet\" href=\"../libs/fonts/font-awesome.min.css\">\n" +
" <link rel=\"stylesheet\" href=\"../libs/css/Sidebar-Menu-1.css\">\n" + " <link rel=\"stylesheet\" href=\"../libs/css/Sidebar-Menu-1.css\">\n" +
" <link rel=\"stylesheet\" href=\"../libs/css/Sidebar-Menu.css\">\n" + " <link rel=\"stylesheet\" href=\"../libs/css/Sidebar-Menu.css\">\n" +
" <script src=\"../libs/js/Sidebar-Menu.js\"></script>\n" + " <script src=\"../libs/js/Sidebar-Menu.js\"></script>\n" +
" <script src=\"../libs/js/utility.js\"></script>\n" + " <script src=\"../core/utility.js\"></script>\n" +
" <script src=\"../libs/js/Footer.js\"></script>\n" + " <script src=\"../core/Footer.js\"></script>\n" +
" <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"\n" + " <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.1.0/css/all.css\"\n" +
" integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">"); " integrity=\"sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt\" crossorigin=\"anonymous\">");
} }
......
...@@ -154,9 +154,9 @@ public class UserService { ...@@ -154,9 +154,9 @@ public class UserService {
private Response redirectToProjectPage(User user, ManagementImpl management) throws URISyntaxException { private Response redirectToProjectPage(User user, ManagementImpl management) throws URISyntaxException {
String successUrl; String successUrl;
if (user.getStudent() != null && user.getStudent()) { if (user.getStudent() != null && user.getStudent()) {
successUrl = "../pages/overview-student.jsp?token="; successUrl = "../overview-student.jsp?token=";
} else { } else {
successUrl = "../pages/overview-docent.jsp?token="; successUrl = "../overview-docent.jsp?token=";
} }
successUrl += management.getUserToken(user); successUrl += management.getUserToken(user);
return forwardToLocation(successUrl); return forwardToLocation(successUrl);
......
/**
* Created by dehne on 23.02.2018.
*/
$(document).ready(function () {
$("")
});
...@@ -6,22 +6,22 @@ ...@@ -6,22 +6,22 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gemeinsam Forschen</title> <title>gemeinsam Forschen</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700">
<link rel="stylesheet" href="assets/css/Login-Form-Clean.css"> <link rel="stylesheet" href="libs/css/Login-Form-Clean.css">
<link rel="stylesheet" href="assets/css/Navigation-with-Button1.css"> <link rel="stylesheet" href="libs/css/Navigation-with-Button1.css">
<link rel="stylesheet" href="assets/css/Sidebar-Menu.css"> <link rel="stylesheet" href="libs/css/Sidebar-Menu.css">
<link rel="stylesheet" href="assets/css/Sidebar-Menu1.css"> <link rel="stylesheet" href="libs/css/Sidebar-Menu1.css">
<script src="libs/js/jquery.min.js"></script> <script src="libs/jquery/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script> <script src="libs/bootstrap/js/bootstrap.min.js"></script>
</head> </head>
<body> <body>
<div class="login-clean"> <div class="login-clean">
<form method="post" action="./rest/user/exists"> <form method="post" action="./rest/user/exists">
<h2 class="sr-only">Login Formular</h2> <h2 class="sr-only">Login Formular</h2>
<div class="illustration"><img src="assets/img/fides-logo.svg"></div> <div class="illustration"><img src="libs/img/fides-logo.svg"></div>
<div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email" autofocus> <div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email" autofocus>
</div> </div>
<div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password"> <div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password">
......
...@@ -5,18 +5,15 @@ ...@@ -5,18 +5,15 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gruppenmatcher</title> <title>flTrail</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700">
<link rel="stylesheet" href="assets/css/Login-Form-Clean.css"> <link rel="stylesheet" href="libs/css/Login-Form-Clean.css">
<link rel="stylesheet" href="assets/css/Navigation-with-Button1.css"> <link rel="stylesheet" href="libs/css/Navigation-with-Button1.css">
<link rel="stylesheet" href="assets/css/Sidebar-Menu.css"> <link rel="stylesheet" href="libs/css/Sidebar-Menu.css">
<link rel="stylesheet" href="assets/css/Sidebar-Menu1.css"> <link rel="stylesheet" href="libs/css/Sidebar-Menu1.css">
<link rel="stylesheet" href="assets/css/styles.css"> <script src="libs/jquery/jquery.min.js"></script>
<script src="libs/bootstrap/js/bootstrap.min.js"></script>
<script src="libs/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="libs/js/Sidebar-Menu.js"></script>
</head> </head>
<body> <body>
...@@ -24,7 +21,7 @@ ...@@ -24,7 +21,7 @@
<%--<form method="post" action="./servlet/createUser">--%> <%--<form method="post" action="./servlet/createUser">--%>
<form method="post" action="./rest/user/create"> <form method="post" action="./rest/user/create">
<h2 class="sr-only">Login Formular</h2> <h2 class="sr-only">Login Formular</h2>
<div class="illustration"><img src="assets/img/fides-logo.svg"></div> <div class="illustration"><img src="libs/img/fides-logo.svg"></div>
<div class="form-group"><input class="form-control" name="name" placeholder="Name"></div> <div class="form-group"><input class="form-control" name="name" placeholder="Name"></div>
<div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email"></div> <div class="form-group"><input class="form-control" type="email" name="email" placeholder="Email"></div>
<div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password"> <div class="form-group"><input class="form-control" type="password" name="password" placeholder="Password">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment