def left_type_for_nest_editor_set_selection return super unless is_template? case rule_set_pattern_name.card_id when TypeID rule_set.anchor_name when SelfID rule_set.anchor.type_name else super end end format :html do attr_accessor :rule_context view :rule_edit, cache: :never, unknown: true, wrap: { modal: { size: :large, title: :edit_rule_title, footer: "" } } do current_rule_form form_type: :modal end view :rule_help, unknown: true, perms: :none, cache: :never do wrap_with :div, class: "alert alert-info rule-instruction" do rule_based_help end end view :rule_bridge_link, unknown: true do opts = bridge_link_opts(class: "edit-rule-link nav-link", "data-toggle": "pill", "data-cy": "#{setting_title.to_name.key}-pill") opts[:path].delete(:layout) link_to_view(:overlay_rule, (setting_title + short_help_text), opts) end def edit_link_view :rule_edit end def edit_rule_title output [ wrap_with(:h5, setting_title, class: "title font-weight-bold") # render_overlay_rule_help ] end def current_rule if params[:assign] card elsif (existing = find_existing_rule_card) existing else card end end def quick_editor rule_content_formgroup end def setting_title card.name.tag.tr "*", "" end def short_help_text "