Since now poll question answers have been renamed to poll question options, using HTML IDs, classes and data attributes named `answer` was confusing.
23 lines
600 B
Plaintext
23 lines
600 B
Plaintext
<div id="<%= dom_id(question) %>" class="poll-question">
|
|
<h3>
|
|
<%= question.title %>
|
|
</h3>
|
|
|
|
<% if question.votation_type.present? %>
|
|
<strong>
|
|
<%= t("poll_questions.description.#{question.vote_type}", maximum: question.max_votes) %>
|
|
</strong>
|
|
<% end %>
|
|
|
|
<div id="<%= dom_id(question) %>_options" class="padding">
|
|
<%= render Polls::Questions::OptionsComponent.new(question) %>
|
|
</div>
|
|
|
|
<% if question.options_with_read_more? %>
|
|
<div>
|
|
<p><%= t("poll_questions.read_more_about") %></p>
|
|
<p><%= options_read_more_links %></p>
|
|
</div>
|
|
<% end %>
|
|
</div>
|