{{includefile 'bootstrap/css/page_common.css'}} Event {{includefile 'bootstrap/js/hs3_ajax_post.js'}} {{includefile 'header.html'}} {{includefile 'navbar.html'}}
{{ev=event refid}} {{isgroupcond=false}} {{isgrpaction=false}}
{{trig_group=0}} {{trig_group_count=(ev_trig_group_count refid)}} {{for trig_group in 0..(trig_group_count-1)}} {{index=0}} {{for trigger in (event_triggers refid)}} {{if trigger.trigger_group_id==trig_group}}
{{if trig_if_edit refid index trig_group}}
{{if index==0 && trig_group==0}} If {{else}} {{op1=''}} {{op2=''}} {{if index==0}} {{op1='selected'}} {{else}} {{op2='selected'}} {{end}} {{end}}
{{else}} {{if index==0 && trig_group==0}}
IF
{{else if index==0}}
OR IF
{{else}}
AND IF
 
{{end}} {{end}}
{{iscondition=false}} {{if index==0 && trig_group==0}} {{ifclass='hs-bg-blue-l4'}} {{else if index==0}} {{ifclass='hs-bg-blue-l4'}} {{else}} {{ifclass='hs-bg-blue-l4'}} {{iscondition=true}} {{end}}
{{if trig_if_edit refid index trig_group}}
{{if index==0 }} {{trigger_set_condition refid index groupindex false}} {{else}} {{trigger_set_condition refid index groupindex true}} {{end}}
{{includefileraw includes\triggers.html}}
{{else}}
{{event_trigger_format refid index trig_group}}
{{end}}
{{if trig_if_edit refid index trig_group}} {{if is_trig_jui_plugin refid index trig_group}} {{else}} {{end}} {{else}} {{end}} {{if index>0 || trig_group>0}} {{end}} {{if index==((ev_trigs_in_group refid trig_group)-1)}} {{else}} {{end}}
{{index=index+1}}
{{end}} {{end}} {{end}} {{index=0}} {{if (array.size (event_actions refid)) == 0}}
THEN
{{end}} {{for action in (event_actions refid)}} {{if index==0}}
THEN
{{end}}
{{if action_then_edit refid index}}
{{includefileraw includes\actions.html}}
{{else}}
{{ui=event_action_format refid action.action__order}} {{ui}}
{{end}}
{{if action_then_edit refid index}} {{if is_act_jui_plugin refid index}} {{else}} {{end}} {{else}} {{end}} {{if !(action_then_edit refid index)}} {{if index>0}} {{end}} {{if index!=(array.size (event_actions refid))-1}} {{end}} {{end}} {{if event_action_enabled ev.ev_ref index}} {{else}} {{end}} {{if index==(array.size (event_actions refid))-1}} {{else}} {{end}}
{{index=index+1}} {{end}}
{{includefile 'bootstrap/js/jui-events.js'}}