Sha256: ad57d7d5465e28743b710ae9311686003d901dd8765d065c2b408dc6db40d7cc

Contents?: true

Size: 1.99 KB

Versions: 14

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-slate-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

14 entries across 14 versions & 1 rubygems

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