-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiny_admin.yml
More file actions
123 lines (123 loc) · 2.63 KB
/
tiny_admin.yml
File metadata and controls
123 lines (123 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
authentication:
plugin: TinyAdmin::Plugins::SimpleAuth
# password: 'f1891cea80fc05e433c943254c6bdabc159577a02a7395dfebbfbc4f7661d4af56f2d372131a45936de40160007368a56ef216a30cb202c66d3145fd24380906'
root:
title: Test Admin
# page: RootPage
widgets:
- LatestAuthorsWidget
- LatestPostsWidget
helper_class: AdminHelper
# page_not_found: PageNotFound
# record_not_found: RecordNotFound
sections:
- slug: google
name: Google.it
type: url
url: https://www.google.it
options:
target: _blank
- SectionGithubLink
- slug: sample
name: Sample page
type: page
page: SamplePage
- slug: test-content
name: Test content
type: content
content: >
<h1>Test content!</h1>
<p>Some test content</p>
- slug: authors
name: Authors
type: resource
model: Author
collection_actions:
- sample_col: SampleCollectionAction
member_actions:
- sample_mem: SampleMemberAction
index:
attributes:
- id
- name
- email
- field: stats
header: Some stats
method: multiline
links:
- show
- sample_mem
show:
attributes:
- id
- name
- email
- age
- field: stats
header: Some stats
method: multiline
- created_at
- updated_at
links:
- show
- sample_mem
- slug: posts
name: Posts
type: resource
model: Post
index:
pagination: 5
attributes:
- id
- title: call, downcase, capitalize
- field: author_id
link_to: authors
- category: upcase
- state: downcase
- published
- position: round, 1
- dt: to_date
- field: created_at
converter: AdminUtils
method: datetime_formatter
- updated_at: strftime, %Y%m%d %H:%M
filters:
- title
- author_id
- field: category
type: select
values:
- Lifestyle
- Software
- published
- dt
- created_at
show:
attributes:
- id
- title
- description
- field: author_id
link_to: authors
call: author, name
- category
- published
- position: format, %f
- dt
- created_at
style_links:
- href: /bootstrap.min.css
rel: stylesheet
scripts:
- src: /bootstrap.bundle.min.js
extra_styles: >
.navbar {
background-color: var(--bs-cyan);
}
.main-content {
background-color: var(--bs-gray-100);
}
.main-content a {
text-decoration: none;
}