Update SerwerSMS.vue

This commit is contained in:
miesiu 2025-07-18 12:55:58 +02:00 committed by GitHub
parent c658beeddd
commit 64dcaa0f70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,20 +10,32 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="serwersms-phone-number" class="form-label"> <label class="form-label">{{ $t("serwersmsDestinationType") }}</label><br> <div class="form-check form-check-inline">
{{ $t("serwersmsPhoneNumber") }} ({{ $t("optional") }}) <input class="form-check-input"type="radio" id="dest-phone" value="phone" v-model="$parent.notification.destinationType" required>
</label> <label class="form-check-label" for="dest-phone">{{ $t("serwersmsPhoneNumber") }}</label>
<input id="serwersms-phone-number" v-model="$parent.notification.serwersmsPhoneNumber" type="text" class="form-control"> </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">
<label class="form-check-label" for="dest-group">{{ $t("serwersmsGroupId") }}</label>
</div>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="serwersms-group-id" class="form-label"> <label for="serwersms-destination-value" class="form-label">
{{ $t("serwersmsGroupId") }} ({{ $t("optional") }}) {{ $t($parent.notification.destinationType === 'group' ? 'serwersmsGroupId' : 'serwersmsPhoneNumber') }}
</label> </label>
<input id="serwersms-group-id" v-model="$parent.notification.serwersmsGroupId" type="text" class="form-control"> <input id="serwersms-destination-value"
<div class="form-text"> v-model="$parent.notification.destinationValue"
type="text"
class="form-control"
required>
<div v-if="$parent.notification.destinationType === 'group'" class="form-text">
{{ $t("serwersmsGroupIdHelp") }} {{ $t("serwersmsGroupIdHelp") }}
</div> </div>
<div v-else class="form-text">
{{ $t("serwersmsPhoneHelp") }}
</div>
</div> </div>
<div class="mb-3"> <div class="mb-3">