settings page window

This commit is contained in:
Lukas-Heiligenbrunner 2019-10-03 09:40:13 +02:00
parent 4e4ecb5dc6
commit 54aa35563b
3 changed files with 41 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package com.wasteinformationserver.website; package com.wasteinformationserver.website;
import com.wasteinformationserver.basicutils.Log;
import com.wasteinformationserver.db.PostRequest; import com.wasteinformationserver.db.PostRequest;
import java.util.HashMap; import java.util.HashMap;
@ -7,7 +8,7 @@ import java.util.HashMap;
public class CheckLoginState extends PostRequest { public class CheckLoginState extends PostRequest {
@Override @Override
public String request(HashMap<String, String> params) { public String request(HashMap<String, String> params) {
System.out.println("checkin login state"); Log.message("checking login state");
if ((params.get("action")).equals("getloginstate")){ if ((params.get("action")).equals("getloginstate")){
if (LoginState.getObject().isLoggedIn()){ if (LoginState.getObject().isLoggedIn()){
return "{\"loggedin\":true, \"username\":\""+LoginState.getObject().getUsername()+"\"}"; return "{\"loggedin\":true, \"username\":\""+LoginState.getObject().getUsername()+"\"}";

View File

@ -1,8 +1,36 @@
.test{ html,body{
background-color: #7F7F7F; background-image: url('../rsc/login2.jpg');
background-size: cover;
background-repeat: no-repeat;
height: 100%;
font-family: 'Numans', sans-serif;
} }
.optionsarray{ .optionsarray{
margin-left: 20mm; margin-left: 20mm;
margin-top: 20mm; margin-top: 20mm;
} }
.create-table{
margin-top: 50px;
margin-left: 20%;
background-color: rgba(0,0,0,0.5) !important;
width: 60%;
height: 65%;
}
.create-table-window-toolpane{
height: 50px;
background-color: rgba(0,0,0,0.5) !important;
}
.exit-icon{
color: #FF0000;
float: right;
display: table-cell;
vertical-align: middle;
text-align: center;
text-decoration: none;
}

View File

@ -49,6 +49,15 @@
</div> </div>
</nav> </nav>
<button type="button" name="button">click me to add new table</button>
<div class="create-table">
<div class="create-table-window-toolpane">
<i class="fas fa-times-circle fa-2x exit-icon"></i>
<!-- TODO: -->
</div>
</div>
<div class="optionsarray"> <div class="optionsarray">
<div class="custom-control custom-switch"> <div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1"> <input type="checkbox" class="custom-control-input" id="customSwitch1">