forked from ckan/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_group_with_status.json
48 lines (48 loc) · 1.19 KB
/
custom_group_with_status.json
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
{
"scheming_version": 1,
"group_type": "theme",
"about_url": "http://github.com/ckan/ckanext-scheming",
"fields": [
{
"field_name": "title",
"label": "Name",
"validators": "ignore_missing unicode_safe",
"form_snippet": "large_text.html",
"form_attrs": {"data-module": "slug-preview-target"},
"form_placeholder": "My theme"
},
{
"field_name": "name",
"label": "URL",
"validators": "not_empty unicode_safe name_validator group_name_validator",
"form_snippet": "slug.html",
"form_placeholder": "my-theme"
},
{
"field_name": "notes",
"label": "Description",
"form_snippet": "markdown.html",
"form_placeholder": "A little information about my group..."
},
{
"field_name": "url",
"label": "Image URL",
"form_placeholder": "http://example.com/my-image.jpg"
},
{
"field_name": "status",
"label": "Status",
"output_validators": "ignore_missing",
"choices": [
{
"label": "In Progress",
"value": "in-progress"
},
{
"label": "Final",
"value": "final"
}
]
}
]
}