Mukho

Fix error and add temp button

......@@ -45,11 +45,9 @@
<form class="form-subscribe" id="contactForm" data-sb-form-api-token="API_TOKEN">
<!-- ID input-->
<div class="row">
<div class="col">
<input class="form-control form-control-lg" id="IDBelow" type="text" placeholder="ID" data-sb-validations="required" />
<div class="invalid-feedback text-white" data-sb-feedback="IDBelow:required">ID를 입력하세요.</div>
<div class="row">
<a class="btn btn-primary" href="/board/list">임시게시판</a>
</div>
<div class="col-auto"><button class="btn btn-primary btn-lg disabled" id="submitButton" type="submit">회원가입</button></div>
</div>
<!-- Submit success message-->
<!---->
......
......@@ -14,9 +14,10 @@ router.get('/list/:page', function(req, res, next) {
board.query(sql, function(err,rows) {
if (err) console.error("err : " + err);
var id = req.user;
if(!id) id = "수정예정"
res.render('list.ejs', {'ID':id, title: '게시판 리스트', rows: rows})
var id = req.user.ID;
var nickname = req.user.nickname;
if(!id) nickname = "손님" // 수정 예정
res.render('list.ejs', {'ID':id, 'nickname': nickname, title: '게시판 리스트', rows: rows})
})
});
......
......@@ -45,11 +45,7 @@
<form class="form-subscribe" id="contactForm" data-sb-form-api-token="API_TOKEN">
<!-- ID input-->
<div class="row">
<div class="col">
<input class="form-control form-control-lg" id="IDBelow" type="text" placeholder="ID" data-sb-validations="required" />
<div class="invalid-feedback text-white" data-sb-feedback="IDBelow:required">ID를 입력하세요.</div>
</div>
<div class="col-auto"><button class="btn btn-primary btn-lg disabled" id="submitButton" type="submit">회원가입</button></div>
<a class="btn btn-primary" href="/board/list">임시게시판</a>
</div>
<!-- Submit success message-->
<!---->
......