<% local map = self.map local api = map.api local appname = map.config local shunt_rule_list = {} local node = map:get("@global[0]", "node") if node then local node_protocol = map:get(node, "protocol") if node_protocol == "_shunt" then local node_shunt_group = map:get(node, "shunt_group") map:foreach("shunt_rules", function(e) if e[".name"] and e.remarks and e.group == node_shunt_group then shunt_rule_list[#shunt_rule_list + 1] = e end end) shunt_rule_list[#shunt_rule_list + 1] = { [".name"] = "default_node", remarks = translate("Default") } end end -%>

<%:Reassign Node Group%>

<%:default%>
<%:You choose node is:%>
<%- if #shunt_rule_list > 0 then for i, v in ipairs(shunt_rule_list) do -%> ')" value="<%=v.remarks%>" /> <%- end -%> <% else %> <% end %>