mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Update SerwerSMS.vue
This commit is contained in:
parent
c658beeddd
commit
64dcaa0f70
1 changed files with 20 additions and 8 deletions
|
@ -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">
|
||||||
|
|
Loading…
Add table
Reference in a new issue