Browse Source

add admin dashboard

staging
azri 1 week ago
parent
commit
5466ae1b9e

+ 2
- 2
content/collections/pages/booking.md View File

@@ -4,6 +4,6 @@ blueprint: page
4 4
 title: Booking
5 5
 author: ab0729b7-bf3b-4b76-930d-938ff5d0a937
6 6
 template: booking
7
-updated_by: ab0729b7-bf3b-4b76-930d-938ff5d0a937
8
-updated_at: 1710468054
7
+updated_by: 0fe06f55-99d6-459d-8bfe-0ba1055ae246
8
+updated_at: 1715123809
9 9
 ---

+ 8
- 0
content/collections/pages/dashboard.md View File

@@ -0,0 +1,8 @@
1
+---
2
+id: fce05388-09cc-4763-b12c-91c7f69cc0c6
3
+blueprint: page
4
+title: dashboard
5
+template: dashboard
6
+updated_by: 0fe06f55-99d6-459d-8bfe-0ba1055ae246
7
+updated_at: 1715123904
8
+---

+ 2
- 0
content/trees/collections/pages.yaml View File

@@ -13,3 +13,5 @@ tree:
13 13
     entry: 8d906fcf-8653-4839-bd17-ea8921ffe01b
14 14
   -
15 15
     entry: fc003a20-6539-4f7d-840f-c48a3b616e48
16
+  -
17
+    entry: fce05388-09cc-4763-b12c-91c7f69cc0c6

+ 28
- 4
resources/blueprints/collections/pages/page.yaml View File

@@ -14,6 +14,17 @@ sections:
14 14
         field:
15 15
           type: markdown
16 16
           localizable: true
17
+          instructions_position: above
18
+          listable: hidden
19
+          visibility: visible
20
+          restrict: false
21
+          automatic_line_breaks: true
22
+          automatic_links: false
23
+          escape_markup: false
24
+          smartypants: false
25
+          antlers: false
26
+          if:
27
+            title: 'equals Home'
17 28
       -
18 29
         handle: home_section_1
19 30
         field:
@@ -30,6 +41,8 @@ sections:
30 41
           listable: hidden
31 42
           instructions_position: above
32 43
           visibility: visible
44
+          if:
45
+            title: 'equals Home'
33 46
       -
34 47
         handle: home_section_2
35 48
         field:
@@ -48,8 +61,6 @@ sections:
48 61
           visibility: visible
49 62
           if:
50 63
             title: 'equals Home'
51
-          validate:
52
-            - required
53 64
       -
54 65
         handle: home_section_3
55 66
         field:
@@ -64,10 +75,10 @@ sections:
64 75
           listable: hidden
65 76
           instructions_position: above
66 77
           visibility: visible
67
-          if:
68
-            title: 'equals Home'
69 78
           max_rows: 1
70 79
           min_rows: 1
80
+          if:
81
+            title: 'equals Home'
71 82
       -
72 83
         handle: home_section_4
73 84
         field:
@@ -84,6 +95,19 @@ sections:
84 95
           listable: hidden
85 96
           instructions_position: above
86 97
           visibility: visible
98
+          if:
99
+            title: 'equals Home'
100
+      -
101
+        handle: template
102
+        field:
103
+          hide_partials: true
104
+          blueprint: false
105
+          display: template
106
+          type: template
107
+          icon: template
108
+          listable: hidden
109
+          instructions_position: above
110
+          visibility: visible
87 111
   sidebar:
88 112
     display: Sidebar
89 113
     fields:

+ 3
- 0
resources/views/dashboard.antlers.html View File

@@ -0,0 +1,3 @@
1
+<script>
2
+    window.location.href="https://api.thebola.club/dashboard";
3
+</script>

Loading…
Cancel
Save