X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=59d544fca6c91a21a0943acb30db9a424e0a463a;hb=25996aedafba5e983f324ada3db1da59206bec0a;hp=dd4621b37707298910a6c663e67ea6dc9e59d6c0;hpb=8a7452b520dc7ead6880a7e62e7c0e057db1ebda;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index dd4621b3..59d544fc 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,14 +63,14 @@ main