X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=afa2173d5af2fe3d49e707bbe46e72911a8e2a8b;hb=40477190d905a715d59a800279a20da4ef8135ed;hp=008ee0264e412253775b646861f48ef3aa00c13c;hpb=6855163c1b62ddbc83fa86a17d6d99bf0638060c;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 008ee026..afa2173d 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -8,24 +8,13 @@ main label(for="selectVariant") {{ st.tr["Variant"] }} select#selectVariant(v-model="newchallenge.vid") option(v-for="v in st.variants" :value="v.id") {{ v.name }} - fieldset - label(for="selectNbPlayers") {{ st.tr["Number of players"] }} - select#selectNbPlayers(v-model="newchallenge.nbPlayers") - option(v-show="possibleNbplayers(2)" value="2" selected) 2 - option(v-show="possibleNbplayers(3)" value="3") 3 - option(v-show="possibleNbplayers(4)" value="4") 4 fieldset label(for="timeControl") {{ st.tr["Time control"] }} input#timeControl(type="text" v-model="newchallenge.timeControl" placeholder="3m+2s, 1h+30s, 7d+1d ...") fieldset(v-if="st.user.id > 0") label(for="selectPlayers") {{ st.tr["Play with? (optional)"] }} - #selectPlayers - input(type="text" v-model="newchallenge.to[0]") - input(v-show="newchallenge.nbPlayers>=3" type="text" - v-model="newchallenge.to[1]") - input(v-show="newchallenge.nbPlayers==4" type="text" - v-model="newchallenge.to[2]") + input#selectPlayers(type="text" v-model="newchallenge.to") fieldset(v-if="st.user.id > 0") label(for="inputFen") {{ st.tr["FEN (optional)"] }} input#inputFen(type="text" v-model="newchallenge.fen") @@ -34,7 +23,7 @@ main .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 button(onClick="doClick('modalNewgame')") New game .row - .col-sm-12.col-md-5.col-md-offset-1.col-lg-4.col-lg-offset-2 + .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 .collapse input#challengeSection(type="radio" checked aria-hidden="true" name="accordion") label(for="challengeSection" aria-hidden="true") Challenges @@ -46,9 +35,12 @@ main :challenges="filterChallenges('live')" @click-challenge="clickChallenge") ChallengeList(v-show="cdisplay=='corr'" :challenges="filterChallenges('corr')" @click-challenge="clickChallenge") - input#peopleSection(type="radio" checked aria-hidden="true" name="accordion") + input#peopleSection(type="radio" aria-hidden="true" name="accordion") label(for="peopleSection" aria-hidden="true") People div + .button-group + button(@click="pdisplay='players'") Players + button(@click="pdisplay='chat'") Chat #players(v-show="pdisplay=='players'") h3 Online players .player(v-for="p in uniquePlayers" @click="tryChallenge(p)" @@ -57,7 +49,7 @@ main | {{ p.name + (!!p.count ? " ("+p.count+")" : "") }} #chat(v-show="pdisplay=='chat'") h3 Chat (TODO) - input#gameSection(type="radio" checked aria-hidden="true" name="accordion") + input#gameSection(type="radio" aria-hidden="true" name="accordion") label(for="gameSection" aria-hidden="true") Games div .button-group @@ -71,13 +63,14 @@ main