<%= 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| %>
<%= hidden_field_tag 'message_is_public', true %> <%= render(Ariadne::RichTextAreaComponent.new(name: :message_public_bodytext, sr_label: "Select reply type", attributes: { required: true})) %> <% comment_box.submit { @submit } %>
<%= public_submit %>
<% 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| %>
<%= hidden_field_tag 'message_is_public', false %> <%= render(Ariadne::RichTextAreaComponent.new(name: :message_internal_bodytext, sr_label: "Select reply type", attributes: { required: true})) %> <% comment_box.submit { @submit } %>
<%= internal_submit %>
<% end %> <% end %> <% end %> <% end %> <% end %>