Sha256: c670fc67383ca20ec33f1c795282565bdfae34cbc7f284e32d3d5bc4b3cfdbda

Contents?: true

Size: 1.04 KB

Versions: 1

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", scope: "decidim.forms.admin.questionnaires.answer_option") %></span>
    <% if editable %>
      <button class="button button__sm button__secondary small alert hollow remove-answer-option button--title">
        <%= t("remove", scope: "decidim.forms.admin.questionnaires.answer_option") %>
      </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", scope: "decidim.forms.admin.questionnaires.answer_option"),
          disabled: !editable
        )
      %>
    </div>
  </div>

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-meetings-0.28.0.rc4 app/views/decidim/meetings/admin/poll/_answer_option.html.erb