Files
nairobi/app/views/dashboard/polls/_question_answer_fields.html.erb
Senén Rodero Rodríguez 5e98c23be5 Fix HTML markup
We cannot use 'id' html attributes on nested answers
because there will be many answers form each question so
this would have generated invalid HTML.
2019-03-21 14:51:17 +01:00

26 lines
839 B
Plaintext

<div class="nested-fields nested-answers small-12 medium-6 column">
<div class="answer-fields">
<%= f.hidden_field :given_order %>
<div class="row expanded">
<div class="small-12 medium-9 column">
<%= f.text_field :title %>
</div>
<div class="small-12 medium-3 column margin-top">
<%= link_to_remove_association f, class: "delete" do %>
<%= t("dashboard.polls.question_answer_fields.remove_answer") %>
<% end %>
</div>
</div>
<div class="row expanded">
<div class="small-12 column">
<div class="ckeditor">
<%= f.cktext_area :description,
maxlength: Poll::Question.description_max_length,
ckeditor: { language: I18n.locale } %>
</div>
</div>
</div>
</div>
</div>