uptime-kuma/src/pages/AddStatusPage.vue

51 lines
1.3 KiB
Vue
Raw Normal View History

2022-03-15 04:00:29 +00:00
<template>
<transition name="slide-fade" appear>
<div>
<h1 class="mb-3">
{{ $t("Add New Status Page") }}
</h1>
<div class="shadow-box">
2022-03-17 14:44:47 +00:00
<div class="mb-3">
<label for="name" class="form-label">{{ $t("Name") }}</label>
<input id="name" v-model="statusPage.title" type="text" class="form-control">
2022-03-15 04:00:29 +00:00
</div>
2022-03-17 14:44:47 +00:00
<div class="mb-4">
<label for="slug" class="form-label">{{ $t("Slug") }}</label>
<div class="input-group">
<span id="basic-addon3" class="input-group-text">/status/</span>
<input id="slug" v-model="statusPage.slug" type="text" class="form-control">
</div>
</div>
<div class="mt-2 mb-1">
<button id="monitor-submit-btn" class="btn btn-primary w-100" type="submit" :disabled="processing">{{ $t("Next") }}</button>
2022-03-15 04:00:29 +00:00
</div>
</div>
</div>
</transition>
</template>
<script>
export default {
components: {
},
data() {
return {
statusPage: {
2022-03-17 14:44:47 +00:00
},
processing: false,
2022-03-15 04:00:29 +00:00
};
}
};
</script>
2022-03-17 14:44:47 +00:00
<style lang="scss" scoped>
.shadow-box {
padding: 20px;
}
</style>