@@ -610,7 +625,9 @@
attention: false,
bearShowing: false,
oneSixEightEightServiceIds: [4, 10],
- parameters: {}
+ parameters: {},
+ locked: true,
+ lockInitialized: false,
}
},
computed: {
@@ -679,7 +696,10 @@
if(section === this.section + 'CheckTransferRule'){
window.location.href = route('billplz.bill', payload.payment_reference);
}
- else
+ else if(section === this.section + 'Lock'){
+ this.locked = true;
+ }
+ else if(section === this.section)
{
this.$store.dispatch('completeList', {'name': this.section, 'data': []});
this.isLoading = false;
@@ -690,7 +710,7 @@
if(section === this.section + 'CheckTransferRule' && statusCode === 422){
console.log('Transfer expired, please create new transfer');
}
- else{
+ else if(section === this.section){
window.location.href = this.route('dashboard');
}
},
@@ -709,6 +729,28 @@
};
this.submit(route('api.rule.check.transfer'), 'post', this.section + 'CheckTransferRule', false, true);
},
+ initializeLock(state) {
+ this.lockInitialized = true;
+ this.locked = state;
+ },
+ lock(state){
+ this.lockInitialized = true;
+ this.parameters = {
+ booking_id: this.booking.id,
+ };
+ if(state){
+ this.submit(
+ route("api.booking.create.lock"),
+ "post",
+ this.section + 'Lock',
+ true,
+ false
+ );
+ }
+ else{
+ this.locked = false;
+ }
+ }
}
}
diff --git a/resources/assets/vue/components/settings/elements/ComponentLock.vue b/resources/assets/vue/components/settings/elements/ComponentLock.vue
new file mode 100644
index 00000000..30a993ee
--- /dev/null
+++ b/resources/assets/vue/components/settings/elements/ComponentLock.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/assets/vue/components/settings/elements/PageLock.vue b/resources/assets/vue/components/settings/elements/PageLock.vue
new file mode 100644
index 00000000..61d768bb
--- /dev/null
+++ b/resources/assets/vue/components/settings/elements/PageLock.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
To edit, please enter the password to unlock page:
+
+
+
+
+
+
{{ errorMessage }}
+
+
+
+
+
+
+
+
+
diff --git a/resources/assets/vue/components/settings/sections/LockSectionComponent.vue b/resources/assets/vue/components/settings/sections/LockSectionComponent.vue
new file mode 100644
index 00000000..afc7b6cd
--- /dev/null
+++ b/resources/assets/vue/components/settings/sections/LockSectionComponent.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/resources/assets/vue/components/user/form/SystemFormComponent.vue b/resources/assets/vue/components/user/form/SystemFormComponent.vue
new file mode 100644
index 00000000..4f239825
--- /dev/null
+++ b/resources/assets/vue/components/user/form/SystemFormComponent.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
Add System User Account
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/pages/dashboards/admin_lock.blade.php b/resources/views/pages/dashboards/admin_lock.blade.php
new file mode 100644
index 00000000..14582251
--- /dev/null
+++ b/resources/views/pages/dashboards/admin_lock.blade.php
@@ -0,0 +1,8 @@
+@extends('layouts.base_portal')
+@section('inner_content')
+
+@endsection
diff --git a/resources/views/pages/settings.blade.php b/resources/views/pages/settings.blade.php
index 4523b929..9be84129 100644
--- a/resources/views/pages/settings.blade.php
+++ b/resources/views/pages/settings.blade.php
@@ -426,6 +426,24 @@