Update SerwerSMS.vue

This commit is contained in:
miesiu 2025-07-18 13:18:54 +02:00 committed by GitHub
parent 1b8bb66084
commit 968d22b8a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
<template>
<div class="mb-3">
<label for="serwersms-username" class="form-label">{{ $t('serwersmsAPIUser') }}</label>
<input id="serwersms-username" type="text" v-model="$parent.notification.serwersmsUsername" class="form-control" required>
<input id="serwersms-username" v-model="$parent.notification.serwersmsUsername" type="text" class="form-control" required>
</div>
<div class="mb-3">
@ -12,12 +12,12 @@
<div class="mb-3">
<label class="form-label">{{ $t("serwersmsDestinationType") }}</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" id="dest-phone" value="phone" v-model="$parent.notification.destinationType" required>
<input class="form-check-input" v-model="$parent.notification.destinationType" type="radio" id="dest-phone" value="phone" required>
<label class="form-check-label" for="dest-phone">{{ $t("serwersmsPhoneNumber") }}</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" id="dest-group" value="group" v-model="$parent.notification.destinationType">
<input class="form-check-input" v-model="$parent.notification.destinationType" type="radio" id="dest-group" value="group">
<label class="form-check-label" for="dest-group">{{ $t("serwersmsGroupId") }}</label>
</div>
</div>
@ -26,14 +26,14 @@
<label for="serwersms-destination-value" class="form-label">
{{ $t($parent.notification.destinationType === 'group' ? 'serwersmsGroupId' : 'serwersmsPhoneNumber') }}
</label>
<input id="serwersms-destination-value" type="text" v-model="$parent.notification.destinationValue" class="form-control" required>
<input id="serwersms-destination-value" v-model="$parent.notification.destinationValue" type="text" class="form-control" required>
<div v-if="$parent.notification.destinationType === 'group'" class="form-text">{{ $t("serwersmsGroupIdHelp") }}</div>
<div v-else class="form-text">{{ $t("serwersmsPhoneHelp") }}</div>
</div>
<div class="mb-3">
<label for="serwersms-sender-name" class="form-label">{{ $t("serwersmsSenderName") }}</label>
<input id="serwersms-sender-name" type="text" v-model="$parent.notification.serwersmsSenderName" minlength="3" maxlength="11" class="form-control">
<input id="serwersms-sender-name" v-model="$parent.notification.serwersmsSenderName" type="text" minlength="3" maxlength="11" class="form-control">
</div>
</template>