Sha256: 71d3f8ce56dfe8b1b6dd6f0e6445c8083b10f7abbb63547db04b5d9ee72c4e41

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

format :html do
  view :open_rule, cache: :never, tags: :unknown_ok,
                   wrap: { modal: { size: :large,
                                    title: :edit_rule_title,
                                    footer: "" } } do
    current_rule_form success_view: :rule_row, form_type: :modal
  end

  def edit_rule_title
    output [
      wrap_with(:h5, setting_title, class: "title font-weight-bold"),
      render_overlay_rule_help
    ]
  end

  # used in tables shown in set cards' core view
  view :rule_row, cache: :never, tags: :unknown_ok do
    rule_card = find_existing_rule_card
    cols = %i[setting set]
    cols.insert(1, :content) if voo.show? :content
    wrap_closed_rule rule_card do
      cols.map do |cell|
        send "closed_rule_#{cell}_cell", rule_card
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.97.0.1 mod/rules/set/rule/table.rb
card-1.97.0 mod/rules/set/rule/table.rb