-
Notifications
You must be signed in to change notification settings - Fork 2
/
fill_time_modal.json
109 lines (109 loc) · 2.12 KB
/
fill_time_modal.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
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
{
"type": "modal",
"callback_id": "Fill_Missing_Times",
"title": {
"type": "plain_text",
"text": "My App",
"emoji": true
},
"submit": {
"type": "plain_text",
"text": "Submit",
"emoji": true
},
"close": {
"type": "plain_text",
"text": "Cancel",
"emoji": true
},
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*to be replaced with dates*"
}
},
{
"type": "input",
"block_id": "username_block",
"element": {
"type": "plain_text_input",
"placeholder": {
"type": "plain_text",
"text": "Enter your employee number (usually 3 digits)"
},
"action_id": "username_value"
},
"label": {
"type": "plain_text",
"text": "👤 Employee number",
"emoji": true
}
},
{
"type": "input",
"block_id": "password_block",
"element": {
"type": "plain_text_input",
"placeholder": {
"type": "plain_text",
"text": "Enter your password (usually your ID)"
},
"action_id": "password_value"
},
"label": {
"type": "plain_text",
"text": "🔑 Password",
"emoji": true
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "It can take *up to 4 minutes*, you will get a slackmsg when it finishes."
}
]
},
{
"type": "input",
"element": {
"type": "checkboxes",
"options": [
{
"text": {
"type": "plain_text",
"text": "Before submitting the form, please fill your vacation or sick dates (if any)",
"emoji": true
},
"value": "value-0"
},
{
"text": {
"type": "plain_text",
"text": "After execution, I'm obligated to check the output in the timewatch site.",
"emoji": true
},
"value": "value-1"
},
{
"text": {
"type": "plain_text",
"text": "I am responsible to verify that all the data is accurate AFTER I click Fill Missing Times.",
"emoji": true
},
"value": "value-2"
}
],
"action_id": "checkboxes-action"
},
"label": {
"type": "plain_text",
"text": "Remarks",
"emoji": true
}
}
]
}