Sha256: 5bb6b578976c3a857031bc67199fb5498d2feeea4cf2a95da238204156a50a38

Contents?: true

Size: 899 Bytes

Versions: 31

Compression:

Stored size: 899 Bytes

Contents

<% matrix_row = form.object %>

<div class="card questionnaire-question-matrix-row">
  <div class="card-divider">
    <h2 class="card-title">
    <span><%= t(".matrix_row") %></span>
    <% if editable %>
      <button class="button small alert hollow remove-matrix-row 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_matrix_row(question, matrix_row),
          label: t(".statement"),
          disabled: !editable
        )
      %>
    </div>
  </div>

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

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-forms-0.26.1 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.26.0 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.26.0.rc2 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.26.0.rc1 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.2 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.1 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.0 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.0.rc4 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.0.rc3 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.0.rc2 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb
decidim-forms-0.25.0.rc1 app/views/decidim/forms/admin/questionnaires/_matrix_row.html.erb