{{~if trigger.trigger_type==22~}}
{{if isactcond}} {{typekeychar="C"}} {{else}} {{typekeychar="T"}} {{end}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}} {{if (array.size list) > 0}} {{end}} {{~trigger_build_ui refid index trig_group isgroupcond isactcond~}}
{{end}} {{~if trigger.trigger_type==6~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}}
{{if trigger.trigger_sub_type==1}} Changes and becomes: {{else if trigger.trigger_sub_type==2}} Has been: {{else if trigger.trigger_sub_type==3}} Has been: {{else if trigger.trigger_sub_type==5}} Is not equal to: {{else if trigger.trigger_sub_type==6}} Is greater than: {{else if trigger.trigger_sub_type==7}} Is less than: {{else if trigger.trigger_sub_type==8}} Has a value that just changed {{else if trigger.trigger_sub_type==9}} Is set to: {{else if trigger.trigger_sub_type==10}} Just had its value set or changed {{end}}
{{if trigger.trigger_sub_type != 8 && trigger.trigger_sub_type != 10}} {{uil = trigger_build_value_ui refid index trig_group true isgroupcond isactcond}} {{if uil}}
{{if uil.ui_textbox_start}}
{{end}} {{if uil.ui_textbox_end}}
{{end}} {{if uil.ui_checkbox}}
{{ch=''}} {{if uil.ui_checkbox_checked}} {{ch='checked'}} {{end}}
{{end}} {{if (array.size uil.ui_select_range) > 0}}
{{end}} {{end}} {{end}} {{if trigger.trigger_sub_type==2 || trigger.trigger_sub_type==3}} {{if trigger.trigger_sub_type==2}} For at least {{else}} For exactly {{end}} {{tsv=trigger_device_timespan refid index trig_group isgroupcond isactcond}}
{{end}}
{{end}} {{~if trigger.trigger_type==2~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}} {{if trigger.trigger_sub_type==1 || trigger.trigger_sub_type==2 || trigger.trigger_sub_type==3 || trigger.trigger_sub_type==12 || trigger.trigger_sub_type==13 || trigger.trigger_sub_type==14 || trigger.trigger_sub_type==15}}
{{if iscondition}} {{else}} {{end}}
{{end}} {{if trigger.trigger_sub_type==5 || trigger.trigger_sub_type==6 || trigger.trigger_sub_type==8 || trigger.trigger_sub_type==9}}
{{end}} {{if trigger.trigger_sub_type==16}}
{{end}}
{{end}} {{~if trigger.trigger_type==4~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}} {{if trigger.trigger_sub_type==1 || trigger.trigger_sub_type==2 || trigger.trigger_sub_type==3}} {{dates=trigger_get_dates refid index trig_group isgroupcond isactcond}} {{date_index=0}} {{~for dt in dates~}}
{{~dt~}}
{{checked=''}} {{if string.contains dt "M"}} {{checked='checked'}} {{end}}
{{checked=''}} {{if string.contains dt "D"}} {{checked='checked'}} {{end}}
{{checked=''}} {{if string.contains dt "Y"}} {{checked='checked'}} {{end}}
{{date_index=date_index+1}} {{end}}
{{end}} {{if trigger.trigger_sub_type==4}}
{{if trigger_day_selected refid index trig_group 9 isgroupcond isactcond}}
{{else if trigger_day_selected refid index trig_group 8 isgroupcond isactcond}}
{{else}} {{if trigger_day_selected refid index trig_group 10 isgroupcond isactcond}}
{{end}} {{if !(trigger_day_selected refid index trig_group 10 isgroupcond isactcond)}}
{{if trigger_day_selected refid index trig_group 7 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{end}}
{{if trigger_day_selected refid index trig_group 1 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{if trigger_day_selected refid index trig_group 2 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{if trigger_day_selected refid index trig_group 3 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{if trigger_day_selected refid index trig_group 4 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{if trigger_day_selected refid index trig_group 5 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{if !(trigger_day_selected refid index trig_group 10 isgroupcond isactcond)}}
{{if trigger_day_selected refid index trig_group 6 isgroupcond isactcond}}{{ch='checked'}}{{else}}{{ch=''}}{{end}}
{{end}} {{end}}
{{end}} {{if trigger.trigger_sub_type==5}}
{{end}} {{if trigger.trigger_sub_type==10}}
{{end}} {{if trigger.trigger_sub_type==11}}
{{end}} {{if trigger.trigger_sub_type==12}}
{{end}}
{{end}} {{~if trigger.trigger_type==8~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}} {{tsv=trigger_recurring_timespan refid index trig_group isgroupcond isactcond}}
{{end}} {{~if trigger.trigger_type==10~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}}
{{end}} {{~if trigger.trigger_type==12~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}}
{{tsv=trigger_timer_timespan refid index trig_group isgroupcond isactcond}}
{{end}} {{~if trigger.trigger_type==14~}}
{{~if trigger.sub_trigger_count > 0~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}} {{if trigger.trigger_sub_type==1}}
{{if trigger_vr_confirm refid index trig_group isgroupcond isactcond}} {{ch='checked'}} {{else}} {{ch=''}} {{end}}
{{end}} {{if trigger.trigger_sub_type==4}}
Select Clients (leave unchecked for all)
{{for sp in speaker_clients}}
{{if trigger_vr_speaker_selected refid index trig_group sp.host sp.instance isgroupcond isactcond}} {{ch='checked'}} {{else}} {{ch=''}} {{end}}
{{end}}
{{end}}
{{end}} {{~if trigger.trigger_type==18~}}
{{ch=''}} {{if trigger.email_from__anybody}} {{ch='checked'}} {{end}}
{{ch=''}} {{if trigger.email_from__reg_ex}} {{ch='checked'}} {{end}}
{{ch=''}} {{if trigger.email_subject__case_sensitive}} {{ch='checked'}} {{end}}
{{ch=''}} {{if trigger.email_subject__reg_ex}} {{ch='checked'}} {{end}}
{{ch=''}} {{if trigger.email_body__case_sensitive}} {{ch='checked'}} {{end}}
{{ch=''}} {{if trigger.email_body__reg_ex}} {{ch='checked'}} {{end}}
{{end}} {{~if trigger.trigger_type==16 || trigger.trigger_type==24~}} {{~list=sub_trigger_list refid index trig_group isgroupcond isactcond~}}
{{end}}