X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=afa2173d5af2fe3d49e707bbe46e72911a8e2a8b;hb=40477190d905a715d59a800279a20da4ef8135ed;hp=9cc4284dfb17e7dbc0605007185170990f36eafd;hpb=bb7dd7db3df3d1a0445dcd5e0840a2ce79b53297;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 9cc4284d..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") @@ -74,13 +63,14 @@ main