Sha256: c25559439e0e10e5765ff2f70b617fd579f4c2e5047ddfd3f87effe38dcf658d

Contents?: true

Size: 1.89 KB

Versions: 201

Compression:

Stored size: 1.89 KB

Contents

<div class="pb_dialog_wrapper_rails <%= object.full_height_style %>" data-overlay-click= <%= object.overlay_close %> >
    <%= content_tag(:dialog,
        aria: object.aria,
        data: object.data,
        id: object.id,
        class: object.classname) do %>
            <% if object.status === "" && object.title %>
                <%= pb_rails("dialog/dialog_header", props: {title: object.title, id: object.id }) %>
            <% end %>
            <% if object.status === "" && object.text %>
                <%= pb_rails("dialog/dialog_body", props: { text: object.text }) %>
            <% end %>
            <% if object.status != "" %>
                <%= pb_rails("dialog/dialog_body", props: {padding: "md"}) do %>
                    <%= pb_rails("flex", props: {align: "center", orientation: "column"}) do %>
                        <%= pb_rails("icon_circle", props: {
                                icon: object.status_alerts[0],
                                variant: object.status_alerts[1],
                                size: "lg"
                            }) %>
                        <%= pb_rails("title", props: { text: object.title, tag: "h1", size: 3, margin_top: "sm" }) %>
                        <%= pb_rails("body", props: {text: object.text, margin_top: "sm"}) %>
                    <% end %>
                <% end %>
            <% end %>
            <% if object.cancel_button && object.confirm_button %>
                        <%= pb_rails("dialog/dialog_footer", props: {
                            cancel_button: object.cancel_button, 
                            confirm_button: object.confirm_button,
                            id: object.id
                        }) %>
            <% end %>
            
            <%= content %>
    <% end %>
</div>

<%= javascript_tag do %>
    window.addEventListener("DOMContentLoaded", () => {      
        dialogHelper()
    })
  <% end %>

Version data entries

201 entries across 201 versions & 1 rubygems

Version Path
playbook_ui-12.32.0 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.hoverrails951 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.hoverrails948 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.multilevelnopillsdesigns944 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.multilevelnopillsdesigns941 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.PLAY814removemomentjs935 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.PLAY814removemomentjs933 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.datepickerdisableddatefix931 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0.pre.alpha.customiconsfa928 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.31.0 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop917 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop916 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.hovertesting914 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.PLAY906multilevelselectedidsprop912 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1.pre.alpha.PLAY802responsivetitlekit909 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.0.pre.alpha.PLAY906multilevelselectedidsprop902 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.1 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.30.0 app/pb_kits/playbook/pb_dialog/dialog.html.erb
playbook_ui-12.29.0.pre.alpha.play716popoverkitcloseonclickissue893 app/pb_kits/playbook/pb_dialog/dialog.html.erb