setting_holiday.eft 2.36 KB
>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
        .确定