Sha256: 4d1e5f4d4901e04bf7f44244096c68c01c724414fabac662ff88ed4874682afb

Contents?: true

Size: 1.99 KB

Versions: 21

Compression:

Stored size: 1.99 KB

Contents

<%= render(Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes)) do %>
  <%= render(Ariadne::TabContainerComponent.new(sr_label: @sr_label)) do |tab_container| %>
    <%= tab_container.tab(id: public_tab.id, selected: public_tab.selected, classes: public_tab.classes, attributes: public_tab.attributes) do |tab| %>
      <% tab.text { @public_tab_text } %>
      <% tab.panel(attributes: {:"data-public" => true}) do %>
        <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
          <div class="ariadne-overflow-hidden ariadne-border ariadne-border-gray-300 ariadne-shadow-sm">
            <%= hidden_field_tag 'message_public', true %>
            <%= render(Ariadne::RichTextAreaComponent.new(name: :public_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
            <% comment_box.submit { @submit } %>
          </div>
          <div class="ariadne-py-2 ariadne-flex ariadne-justify-end">
            <%= public_submit %>
          </div>
        <% end %>
      <% end %>
    <% end %>
    <%= tab_container.tab(id: internal_tab.id, selected: internal_tab.selected, classes: internal_tab.classes, attributes: internal_tab.attributes) do |tab| %>
      <% tab.text { @internal_tab_text } %>
      <% tab.panel do %>
        <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
          <div class="ariadne-overflow-hidden ariadne-border ariadne-border-gray-300 ariadne-shadow-sm">
            <%= hidden_field_tag 'message_public', false %>
            <%= render(Ariadne::RichTextAreaComponent.new(name: :internal_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
            <% comment_box.submit { @submit } %>
          </div>
          <div class="ariadne-py-2 ariadne-flex ariadne-justify-end">
            <%= internal_submit %>
          </div>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.24 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-x86_64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-x86_64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-x64-mingw32 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-x64-mingw-ucrt app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-arm64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.24-aarch64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-x86_64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-x86_64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-x64-mingw32 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-x64-mingw-ucrt app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-arm64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.23-aarch64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22-x86_64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22-x86_64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22-x64-mingw32 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22-x64-mingw-ucrt app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.22-arm64-darwin app/components/ariadne/comment_component.html.erb