We needed to bring back support for CKEditor in our translatable form, which we had temporarily remove. And now we support CKEditor in our translatable specs, and so we can remove the duplicated specs for poll question answers.
22 lines
673 B
Plaintext
22 lines
673 B
Plaintext
<%= render "admin/shared/globalize_locales", resource: @answer %>
|
|
|
|
<%= translatable_form_for(@answer, url: form_url) do |f| %>
|
|
|
|
<%= render 'shared/errors', resource: @answer %>
|
|
|
|
<%= f.hidden_field :question_id, value: @answer.question_id || @question.id %>
|
|
|
|
<%= f.translatable_fields do |translations_form| %>
|
|
<%= translations_form.text_field :title %>
|
|
|
|
<div class="ckeditor">
|
|
<%= translations_form.cktext_area :description, maxlength: Poll::Question.description_max_length %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="small-12 medium-4 large-2 margin-top">
|
|
<%= f.submit(class: "button success expanded", value: t("shared.save")) %>
|
|
</div>
|
|
|
|
<% end %>
|