summaryrefslogtreecommitdiffstats
path: root/src/components/notifications/SerwerSMS.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/notifications/SerwerSMS.vue')
-rw-r--r--src/components/notifications/SerwerSMS.vue28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/components/notifications/SerwerSMS.vue b/src/components/notifications/SerwerSMS.vue
new file mode 100644
index 0000000..32a0ff7
--- /dev/null
+++ b/src/components/notifications/SerwerSMS.vue
@@ -0,0 +1,28 @@
+<template>
+ <div class="mb-3">
+ <label for="serwersms-username" class="form-label">{{ $t('serwersmsAPIUser') }}</label>
+ <input id="serwersms-username" v-model="$parent.notification.serwersmsUsername" type="text" class="form-control" required>
+ </div>
+ <div class="mb-3">
+ <label for="serwersms-key" class="form-label">{{ $t('serwersmsAPIPassword') }}</label>
+ <HiddenInput id="serwersms-key" v-model="$parent.notification.serwersmsPassword" :required="true" autocomplete="new-password"></HiddenInput>
+ </div>
+ <div class="mb-3">
+ <label for="serwersms-phone-number" class="form-label">{{ $t("serwersmsPhoneNumber") }}</label>
+ <input id="serwersms-phone-number" v-model="$parent.notification.serwersmsPhoneNumber" type="text" class="form-control" required>
+ </div>
+ <div class="mb-3">
+ <label for="serwersms-sender-name" class="form-label">{{ $t("serwersmsSenderName") }}</label>
+ <input id="serwersms-sender-name" v-model="$parent.notification.serwersmsSenderName" type="text" minlength="3" maxlength="11" class="form-control">
+ </div>
+</template>
+
+<script>
+import HiddenInput from "../HiddenInput.vue";
+
+export default {
+ components: {
+ HiddenInput,
+ },
+};
+</script>