Fix: player list manager, button style

This commit is contained in:
2018-10-30 17:58:10 +09:00
parent d7d6fd80d5
commit d3537128a3
5 changed files with 232 additions and 128 deletions
+94 -54
View File
@@ -144,95 +144,135 @@ function onErrorPlayerPW(message) {
<div class="col-7 border border-warning rounded" style="background-color: #ffeab6">
<h5 class="my-3">학생 목록</h5>
<h5 class="mt-3">학생 목록</h5>
<form id="add_player_list">
<div class="form-group row mx-2 mb-0 font-weight-bold">
<div class="form-group row mx-2 my-0 text-center">
<label class="col-form-label d-none">ID</label>
<label class="col-form-label col-sm">이 름</label>
<label class="col-form-label col-sm">입장 번호</label>
<label class="col-form-label col-sm-1"></label>
<label class="col-form-label col-sm-1"></label>
<label class="col-form-label px-0 col-sm-1">수정</label>
<label class="col-form-label px-0 col-sm-1">삭제</label>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test1">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test2">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test3">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test4">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test5">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test6">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test7">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test8">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test9">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test10">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
</form>
+11
View File
@@ -3,6 +3,9 @@
var maestroInfo = new MaestroInfo();
var isMaestroInfoLoaded = false;
var addPlayerListManager = null;
var searchPlayerListManager = null;
$(document).ready(function() {
$("#section_add_player").load("./../module/maestro_section_add_player.html");
@@ -61,6 +64,14 @@ function onLoadFailMaestroInfo(errorMessage, errorCode) {
console.log("errorCode : " + errorCode);
}
function refreshAddPlayerList() {
addPlayerListManager.refreshAddPlayerListPage();
}
function refreshSearchPlayerList() {
searchPlayerListManager.refreshSearchPlayerListPage();
}
function onChangePlayerCount() {
maestroInfo.loadMaestroInfo(onLoadSuccessMaestroInfo, onLoadFailMaestroInfo);
}
+94 -54
View File
@@ -61,95 +61,135 @@ function searchPlayer() {
<div class="col-7 border border-warning rounded" style="background-color: #ffeab6">
<h5 class="my-3">검색 결과</h5>
<h5 class="mt-3">검색 결과</h5>
<form id="search_player_list">
<div class="form-group row mx-2 mb-0 font-weight-bold">
<div class="form-group row mx-2 mb-0 text-center">
<label class="col-form-label d-none">ID</label>
<label class="col-form-label col-sm">이 름</label>
<label class="col-form-label col-sm">입장 번호</label>
<label class="col-form-label col-sm-1"></label>
<label class="col-form-label col-sm-1"></label>
<label class="col-form-label px-0 col-sm-1">수정</label>
<label class="col-form-label px-0 col-sm-1">삭제</label>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test1">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test2">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test3">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test4">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test5">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test6">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test7">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test8">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test9">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
<div class="form-group player-list row mx-2 mb-1">
<input type="text" class="player_id d-none" value="test10">
<input type="text" class="player_name col-sm" value="">
<input type="number" class="player_entercode col-sm" min="10" step="1" maxlength="8" value="">
<input type="button" class="player_edit col-sm-1" value="+">
<input type="button" class="player_delete col-sm-1" value="-">
<div class="input-group">
<input type="text" class="form-control player_id d-none">
<input type="text" class="form-control player_name col-sm">
<input type="text" class="form-control player_entercode col-sm" min="10" step="1" maxlength="8">
<div class="input-group-append">
<button class="player_edit btn btn-primary" type="button"></button>
<button class="player_delete btn btn-danger" type="button"> X </button>
</div>
</div>
</div>
</form>