cleanup configuration page

This commit is contained in:
BernardoGiordano 2019-07-17 20:16:39 +02:00
parent 0f52516f90
commit ce7e811920
3 changed files with 41 additions and 41 deletions

View file

@ -1,7 +1,7 @@
main>.container {
padding: 60px 15px 0;
padding: 5rem 4rem;
}
.topSpacing {
margin-top: 20px;
margin-top: 1rem;
}

View file

@ -8,11 +8,15 @@
<meta name="author" content="Bernardo Giordano, FlagBrew">
<title>Checkpoint Configuration Panel</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="js/script.js"></script>
</head>
@ -35,49 +39,46 @@
<input id="enable-ftp" type="checkbox" class="custom-control-input">
<label class="custom-control-label" for="enable-ftp">Enable FTP Server</label>
</div>
<div class="row topSpacing">
<div class="col-md-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Filter titles</span>
<span id="filter-badge" class="badge badge-secondary badge-pill">0</span>
</h4>
<ul id="filter-list" class="list-group mb-3">
</ul>
<div class="input-group">
<input id="input-filter" type="text" class="form-control" placeholder="Title ID">
<div class="input-group-append">
<button id="button-filter" type="submit" onclick="pushToFilter();"
class="btn btn-secondary">Filter</button>
</div>
<div class="topSpacing">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Filter titles</span>
<span id="filter-badge" class="badge badge-secondary badge-pill">0</span>
</h4>
<ul id="filter-list" class="list-group mb-3">
</ul>
<div class="input-group">
<input id="input-filter" type="text" class="form-control" placeholder="Title ID">
<div class="input-group-append">
<button id="button-filter" type="submit" onclick="pushToFilter();" class="btn btn-secondary">Filter</button>
</div>
</div>
</div>
<div class="col-md-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Favorites</span>
<span id="favorites-badge" class="badge badge-warning badge-pill">0</span>
</h4>
<ul id="favorites-list" class="list-group mb-3">
</ul>
<div class="topSpacing">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Favorites</span>
<span id="favorites-badge" class="badge badge-warning badge-pill">0</span>
</h4>
<ul id="favorites-list" class="list-group mb-3">
</ul>
<div class="input-group">
<input id="input-favorites" type="text" class="form-control" placeholder="Title ID">
<div class="input-group-append">
<button type="submit" onclick="pushToFavorites();" class="btn btn-warning">Favorite</button>
</div>
<div class="input-group">
<input id="input-favorites" type="text" class="form-control" placeholder="Title ID">
<div class="input-group-append">
<button type="submit" onclick="pushToFavorites();" class="btn btn-warning">Favorite</button>
</div>
</div>
</div>
<div class="col-md-4 order-md-2 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Additional folders</span>
</h4>
<ul id="folders-list" class="list-group mb-3">
</ul>
<div class="topSpacing">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text">Additional folders</span>
</h4>
<ul id="folders-list" class="list-group mb-3">
</ul>
<div class="panel-group list-group mb-3" id="accordion">
<div id="additional-saves-list" class="panel panel-default">
</div>
<div class="panel-group list-group mb-3" id="accordion">
<div id="additional-saves-list" class="panel panel-default">
</div>
</div>
</div>

View file

@ -139,7 +139,6 @@ function saveSettings() {
data.additional_save_folders[id].folders.push(path.textContent);
});
});
console.log(JSON.stringify(data));
$.ajax({
url: '/save',
method: 'POST',