generate-data-card.ftl
987 Bytes
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
{
"elements": [
{
"tag": "markdown",
"content": "${content}"
}
<#if action??>,
{
"tag": "action",
"actions": [
{
"tag": "select_static",
"placeholder": {
"tag": "plain_text",
"content": "${action.action_content}"
},
"value":{
"key" : "TEST_DATA.${action.action_type}"
},
"options": [
<#list action.options as option>
{
"text": {
"tag": "plain_text",
"content": "${option.option}"
},
"value": "${option.mobile_option}"
}
<#if option_has_next>,</#if>
</#list>
]
}
]
}
</#if>
],
"config": {
"wide_screen_mode": true,
"update_multi":true
},
"header": {
"template": "${color}",
"title": {
"tag": "plain_text",
"content": "${mobile}"
}
}
}