basic usercp, typo
This commit is contained in:
parent
19880a1a7a
commit
4f3d74c2e5
3 changed files with 55 additions and 1 deletions
|
@ -66,7 +66,6 @@ FFTCGROUTER.get '/:template.html', (req, res) ->
|
||||||
if req.session.user and req.params.template == 'index'
|
if req.session.user and req.params.template == 'index'
|
||||||
return res.redirect '/usercp.html'
|
return res.redirect '/usercp.html'
|
||||||
|
|
||||||
|
|
||||||
# render requested template
|
# render requested template
|
||||||
res.render (req.params.template + '.pug'), (err, html) ->
|
res.render (req.params.template + '.pug'), (err, html) ->
|
||||||
# redirect invalid requests to index
|
# redirect invalid requests to index
|
||||||
|
|
|
@ -4,6 +4,7 @@ window.$ = require('jquery')
|
||||||
# import bootstrap
|
# import bootstrap
|
||||||
require './style/custom.scss'
|
require './style/custom.scss'
|
||||||
require 'bootstrap/js/dist/alert'
|
require 'bootstrap/js/dist/alert'
|
||||||
|
require 'bootstrap/js/dist/collapse'
|
||||||
|
|
||||||
# on load
|
# on load
|
||||||
$ ->
|
$ ->
|
||||||
|
|
|
@ -4,3 +4,57 @@ html
|
||||||
title Crafty Things
|
title Crafty Things
|
||||||
script(src='/usercp.bundle.js')
|
script(src='/usercp.bundle.js')
|
||||||
body
|
body
|
||||||
|
|
||||||
|
header.jumbotron.jumbotron-fluid.py-4.bg-primary.text-light.text-center
|
||||||
|
div.container
|
||||||
|
h1 Hello World!
|
||||||
|
h2 App under development, please don't submit any valuable data!
|
||||||
|
|
||||||
|
div.container.bg-light
|
||||||
|
h3 Yavook!FFTCG
|
||||||
|
div#alert-area
|
||||||
|
div.row
|
||||||
|
div.col-md-8
|
||||||
|
h4 My Decks
|
||||||
|
ul.list-group#my-decks
|
||||||
|
li.list-group-item
|
||||||
|
div.align-middle
|
||||||
|
div.d-inline-block.btn-group(role="group")
|
||||||
|
button.btn.btn-secondary(data-toggle="collapse" data-target="#modDeck0") Edit
|
||||||
|
button.btn.btn-secondary#delDeck0 Delete
|
||||||
|
div.d-inline-block.pl-2 item1
|
||||||
|
|
||||||
|
form.float-none.collapse#modDeck0(name="modDeck0")
|
||||||
|
div.form-group
|
||||||
|
label(for="deck") Decklist:
|
||||||
|
textarea.form-control.text-monospace(name="deck" required)
|
||||||
|
|
||||||
|
div.form-group
|
||||||
|
button.btn.btn-primary.w-100(type="submit") Add
|
||||||
|
|
||||||
|
li.list-group-item
|
||||||
|
div.align-middle
|
||||||
|
div.d-inline-block.btn-group(role="group")
|
||||||
|
button.btn.btn-secondary(data-toggle="collapse" data-target="#modDeck1") Edit
|
||||||
|
button.btn.btn-secondary#delDeck1 Delete
|
||||||
|
div.d-inline-block.pl-2 item2
|
||||||
|
|
||||||
|
form.float-none.collapse#modDeck1(name="modDeck1")
|
||||||
|
div.form-group
|
||||||
|
label(for="deck") Decklist:
|
||||||
|
textarea.form-control.text-monospace(name="deck" required)
|
||||||
|
|
||||||
|
div.form-group
|
||||||
|
button.btn.btn-primary.w-100(type="submit") Add
|
||||||
|
|
||||||
|
div.col-md-4
|
||||||
|
h4 New Deck
|
||||||
|
form(name="addDeck")
|
||||||
|
div.form-group
|
||||||
|
label(for="deck") Paste decklist:
|
||||||
|
textarea.form-control.text-monospace(name="deck" required)
|
||||||
|
|
||||||
|
div.form-group
|
||||||
|
button.btn.btn-primary.w-100(type="submit") Add
|
||||||
|
|
||||||
|
p Hello
|
||||||
|
|
Reference in a new issue