Using the `_html` suffix automatically marks texts as HTML safe, so doing so on sanitized texts is redundant. Note flash texts are not sanitized the moment they are generated, but are sanitized when displayed in the view.
33 lines
994 B
Plaintext
33 lines
994 B
Plaintext
<div class="row">
|
|
<div class="small-12 column">
|
|
<%= back_link_to %>
|
|
|
|
<h1><%= t("proposal_notifications.new.title") %></h1>
|
|
|
|
<div class="callout primary">
|
|
<p>
|
|
<%= sanitize(t("proposal_notifications.new.info_about_receivers",
|
|
count: @proposal.users_to_notify.count,
|
|
proposal_page: link_to(t("proposal_notifications.new.proposal_page"),
|
|
proposal_path(@proposal, anchor: "comments")))) %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="small-12 medium-9 column">
|
|
<%= form_for @notification do |f| %>
|
|
<%= render "shared/errors", resource: @notification %>
|
|
|
|
<%= f.text_field :title %>
|
|
<%= f.text_area :body, rows: "3" %>
|
|
<%= f.hidden_field :proposal_id, value: @proposal.id %>
|
|
|
|
<div class="small-12 medium-4">
|
|
<%= f.submit t("proposal_notifications.new.submit_button"), class: "button expanded" %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|