setting_holiday.eft
2.36 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
>div
>div.ui
>h2
.请假中心
>small
.Powered by Amiba-Light (Made with ♥ by CubeSky)
>div.ui.divider
>form.ui.form
#action = #
@submit.prevent.capture
>div.field
>label
.将邮件发送至
>select.ui.fluid.dropdown
%value = {{emailto}}
>option
#selected
#disabled
#hidden
#value =
.选择部门
+emailoption
>div.field
>label
.请假原因
>input
%value = {{reason}}
#type = text
#placeholder = 请假原因
>div.field
>label
.请假日期(一行一个)
>button.ui.basic.button
@click = addTemplate
>i.icon.plus
.添加模板[{{template}}]
>button.ui.basic.button
@click = addRangeTemplate
>i.icon.plus
.添加日期段模板
>textarea
#type = text
#placeholder = 请假日期
%value = {{date}}
>button.ui.positive.fluid.button
@click = sendOnMail
.激活邮件客户端
>div.ui.divider
>div.ui.message
>div.header
.邮件预览
>br
>div.ui.divider
>div#emailPreview
#style = white-space: pre
.HI ALL
>br
.- - -
>br
.申请人:{{name}}
>br
.- - -
>br
.在以下时间需要请假
>br
.{{date}}
>br
.- - -
>br
.请假原因:
>br
.{{reason}}
>br
.- - -
>br
.状态: 申请
>br
>div.ui.modal#modalerr
>i.close.icon
>div.header
.无效选择
>div.content
>p
.结束日期不能早于开始日期
>div.ui.modal#modal
>i.close.icon
>div.header
.请假日期区间选择
>div.desciption
#style = margin: 1em
>form.ui.form
>div.two.fields
>div.field
>label
.开始日期
>input#start_date
#type = date
%value = {{ start_date }}
>div.field
>label
.结束日期
>input#end_date
#type = date
%value = {{ end_date }}
>div.actions
>div.ui.button.negative
@click = cancelDateRange
.取消
>div.ui.button.positive
@click = insertDateRange
.确定