Sha256: 4f99f16bf5b22fbe6df9563b106bf7a953032e2069835cfe7922d32896476449

Contents?: true

Size: 1.04 KB

Versions: 58

Compression:

Stored size: 1.04 KB

Contents

<% answer_option = form.object %>

<div class="card questionnaire-question-answer-option">
  <div class="card-divider">
    <h2 class="card-title">
    <span><%= t(".answer_option") %></span>
    <% if editable %>
      <button class="button small alert hollow remove-answer-option button--title">
        <%= t(".remove") %>
      </button>
    <% end %>
    </h2>
  </div>

  <div class="card-section">
    <div class="row column">
      <%=
        form.translated(
          :text_field,
          :body,
          tabs_id: tabs_id_for_question_answer_option(question, answer_option),
          label: t(".statement"),
          disabled: !editable
        )
      %>
    </div>

    <div class="row column">
      <%=
        form.check_box(
          :free_text,
          label: t(".free_text"),
          disabled: !questionnaire.questions_editable?
        )
      %>
    </div>
  </div>

  <% if answer_option.persisted? %>
    <%= form.hidden_field :id, disabled: !editable %>
  <% end %>

  <%= form.hidden_field :deleted, disabled: !editable %>
</div>

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-forms-0.26.1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.26.0 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.26.0.rc2 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.26.0.rc1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.2 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.0 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.0.rc4 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.0.rc3 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.0.rc2 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.25.0.rc1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.3 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.23.6 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.2 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.23.5 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.0 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.0.rc2 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.23.4 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb
decidim-forms-0.24.0.rc1 app/views/decidim/forms/admin/questionnaires/_answer_option.html.erb