X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=2fbb6e6d16a779df7001e779f552229b7edffb7b;hb=8c564f462f5406fcd311d4733f851daf6ada665d;hp=9b891d7583fb44006ba20a15b97d441ea03a2a27;hpb=ce87ac6a12007a62a55a45e404f818df3eb90f64;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 9b891d75..2fbb6e6d 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,13 @@ main