Files
nairobi/app/components/debates/new_component.html.erb
Javi Martín 1a22db8b17 Fix link to debates help
This link used to open in a new window, and we accidentally changed that
behavior while refactoring it in commit c2710de5f.

Since we're adding a test for this case, and the Proposals::NewComponent
class is similar, we're adding a test for that class too. In the case of
proposals, we need to sign in a user because the proposals form contains
fields to attach image, that currently rely on a user being signed in.
2024-03-18 15:29:46 +01:00

21 lines
641 B
Plaintext

<main class="debate-new">
<%= back_link_to debates_path, t("debates.index.section_header.title") %>
<%= header do %>
<%= new_window_link_to t("debates.new.more_info"), help_path(anchor: "debates") %>
<% end %>
<aside>
<h2><%= t("debates.new.recommendations_title") %></h2>
<ul class="recommendations">
<li><%= t("debates.new.recommendation_one") %></li>
<li><%= t("debates.new.recommendation_two") %></li>
<li><%= t("debates.new.recommendation_three") %></li>
<li><%= t("debates.new.recommendation_four") %></li>
</ul>
</aside>
<%= render Debates::FormComponent.new(debate) %>
</main>