Skip to content
Snippets Groups Projects
Commit 393164ff authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

replace input vy select for futures_sorties

parent 2a0ecdcb
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
"infos": "Informations", "infos": "Informations",
"inout": "Entries and exits of the web of trust for the last 2 days", "inout": "Entries and exits of the web of trust for the last 2 days",
"inpreparation": "In preparation", "inpreparation": "In preparation",
"jours": "0 days | 1 day | {n} days",
"lexique": "Lexicon", "lexique": "Lexicon",
"limitDate": "Deadline", "limitDate": "Deadline",
"membre": { "membre": {
...@@ -158,7 +159,7 @@ ...@@ -158,7 +159,7 @@
"parmembre": "Forecasts by members", "parmembre": "Forecasts by members",
"period": { "period": {
"title": "Search period", "title": "Search period",
"desc": "Select the desired number of days between 1 and 30" "desc": "Select the desired number of days"
}, },
"title": "Forecasts" "title": "Forecasts"
}, },
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
"infos": "Informaciones", "infos": "Informaciones",
"inout": "Entradas y salidas de la red de confianza en los últimos 2 días", "inout": "Entradas y salidas de la red de confianza en los últimos 2 días",
"inpreparation": "En preparación", "inpreparation": "En preparación",
"jours": "0 días | 1 día | {n} días",
"lexique": "Léxico", "lexique": "Léxico",
"limitDate": "Fecha límite", "limitDate": "Fecha límite",
"membre": { "membre": {
...@@ -158,7 +159,7 @@ ...@@ -158,7 +159,7 @@
"parmembre": "Previsiones por miembros", "parmembre": "Previsiones por miembros",
"period": { "period": {
"title": "Período de búsqueda", "title": "Período de búsqueda",
"desc": "Seleccione el número de días deseado entre 1 y 30" "desc": "Seleccione el número de días deseado"
}, },
"title": "Pronósticos" "title": "Pronósticos"
}, },
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
"infos": "Informations", "infos": "Informations",
"inout": "Entrées et sorties de la toile de confiance des 2 derniers jours", "inout": "Entrées et sorties de la toile de confiance des 2 derniers jours",
"inpreparation": "En préparation", "inpreparation": "En préparation",
"jours": "0 jours | 1 jour | {n} jours",
"lexique": "Lexique", "lexique": "Lexique",
"limitDate": "Date limite", "limitDate": "Date limite",
"membre": { "membre": {
...@@ -158,7 +159,7 @@ ...@@ -158,7 +159,7 @@
"parmembre": "Prévisions par membres", "parmembre": "Prévisions par membres",
"period": { "period": {
"title": "Période de recherche", "title": "Période de recherche",
"desc": "Sélectionnez le nombre de jours souhaités entre 1 et 30" "desc": "Sélectionnez le nombre de jours souhaités"
}, },
"title": "Prévisions" "title": "Prévisions"
}, },
......
...@@ -6,17 +6,18 @@ ...@@ -6,17 +6,18 @@
<label for="period" class="form-label">{{ <label for="period" class="form-label">{{
$t("previsions.period.title") $t("previsions.period.title")
}}</label> }}</label>
<input
type="number" <select
class="form-control" class="form-control"
:class="{ 'is-invalid': periodIsInvalid() }"
id="period" id="period"
aria-describedby="periodHelp" aria-describedby="periodHelp"
v-model="period" v-model="period"
autocomplete="off" @change="save">
min="1" <option v-for="index in 30" :key="index" :value="index">
max="30" {{ $tc("jours", index) }}
@keyup="save" /> </option>
</select>
<small id="periodHelp" class="form-text text-muted">{{ <small id="periodHelp" class="form-text text-muted">{{
$t("previsions.period.desc") $t("previsions.period.desc")
}}</small> }}</small>
...@@ -116,9 +117,6 @@ export default { ...@@ -116,9 +117,6 @@ export default {
return this.period * day return this.period * day
} }
return defaultPeriod return defaultPeriod
},
periodIsInvalid() {
return this.period != "" && (this.period < 1 || this.period > 30)
} }
}, },
apollo: { apollo: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment