Sha256: aa46536ae3c9b896ec1f8b324f03b9f4d8a6f3c952e86c643249a0e5ed0578d2

Contents?: true

Size: 847 Bytes

Versions: 4

Compression:

Stored size: 847 Bytes

Contents

- if Rails.version[0].to_i >= 5
  - bs_modal_size = local_assigns[:bs_modal_size]
  - title = local_assigns[:title]
  - desc = local_assigns[:desc]
.modal
  = yield :wrapper
  .modal-dialog{ class: "modal-#{bs_modal_size}" }
    .modal-content
      .modal-header
        = yield :header
        - if title.present?
          %h5.modal-title
            = title
            - if desc.present?
              %small.text-secondary= desc
        %button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"}
          = fas_icon('times')

      = yield
      = yield :before_body
      - body_html = capture { yield :body }
      - if body_html.present?
        .modal-body= body_html
      = yield :after_body

      - footer_html = capture { yield :footer }
      - if footer_html.present?
        .modal-footer= footer_html

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
super_tools-0.0.26 lib/super_interaction/views/layouts/modal_bs4.haml
super_tools-0.0.25 lib/super_interaction/views/layouts/modal_bs4.haml
super_tools-0.0.21 lib/super_interaction/views/layouts/modal_bs4.haml
super_tools-0.0.20 lib/super_interaction/views/layouts/modal_bs4.haml