<%= title %>
<%= export_dropdown %>

<%= form.translated :text_field, :title, autofocus: true %>
<%= form.translated :editor, :description, toolbar: :full, lines: 30, label: t("models.components.description", scope: "decidim.surveys.admin") %>
<%= form.translated :editor, :tos, toolbar: :full, lines: 10, label: t("models.components.tos", scope: "decidim.surveys.admin") %>
<% if survey.questions_editable? %> <% else %>
<%= t(".already_answered_warning") %>
<% end %>
<% @form.questions.each do |question| %> <%= fields_for "survey[questions][]", question do |question_form| %> <%= render "question", form: question_form, id: tabs_id_for_question(question), editable: survey.questions_editable? %> <% end %> <% end %>
<% if survey.questions_editable? %> <% end %>
<% if survey.questions_editable? %> <%= javascript_include_tag "decidim/surveys/admin/surveys" %> <% end %>