Merge branch 'hotfix/price-format-typos'

This commit is contained in:
Björn Fromme
2020-01-16 10:06:23 +01:00
@@ -14,7 +14,7 @@
<label>
<input type="checkbox" v-model="selectedOptions" :value="option">
<span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span>
{{ option.title }}
{{ option.title }}{{ formatOptionPriceType(option) }}
</label>
</div>
</div>
@@ -22,7 +22,7 @@
<label>Optionale Verpflegungsleistungen</label>
<select class="form-control" v-model="selectedBoard" v-if="selectedPax >= 30">
<option :value="null">Keine Auswahl</option>
<option v-for="board of boards" :value="board" :key="board.uid">{{ board.title }}</option>
<option v-for="board of boards" :value="board" :key="board.uid">{{ board.title }} ({{ formatCurrency(board.price) }} pro Person und Nacht)</option>
</select>
<div v-show="selectedPax < 30">
<span class="label label-warning">Erst ab 30 Personen buchbar.</span>
@@ -104,7 +104,7 @@
</div>
<div class="panel panel-default" v-show="submitted">
<div class="panel-body">
<strong>Vielen Dank für Ihre Anfrage. Wir werden Sie schnellstmöglich bearbeiten.</strong>
<strong>Vielen Dank für Ihre Anfrage. Wir werden diese schnellstmöglich bearbeiten.</strong>
</div>
</div>
<div class="form-overlay" v-show="processing">
@@ -123,8 +123,6 @@
import axios from 'axios';
export default {
components: {
},
props: {
loaderUri: {
type: String,
@@ -170,7 +168,20 @@
if (0 === value) {
return '-';
}
return parseFloat(value).toFixed(2).replace(/\./, ',') + '€';
return parseFloat(value).toFixed(2).replace(/\./, ',') + ' €';
},
formatOptionPriceType (option) {
if (2 === option.type) {
return ' ('+this.formatCurrency(option.price)+' pro Person)';
}
if (3 === option.type) {
return ' ('+this.formatCurrency(option.price)+' pro Nacht)';
}
if (4 === option.type) {
return ' ('+this.formatCurrency(option.price)+' pro Person und Nacht)';
}
return ' ('+this.formatCurrency(option.price)+')';
},
initSelectableRanges () {
let enabledDates = [];