Sha256: e1b7aec9671458e74044e48470db6028761a83c8a92d7f96f4b65bd9c633b12e

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 KB

Contents

<% question = form.object %>

<div class="card questionnaire-question" id="<%= id %>-field">
  <div class="card-divider">
    <h2 class="card-title flex items-center">
    <span>
      <% if editable %>
        <%== icon("drag-move-2-fill") %>
      <% end %>
      <%= dynamic_title(t(".separator"), class: "question-title-statement", max_length: 50, omission: "...", placeholder: t(".separator")) %>
    </span>

      <div class="flex items-center gap-x-4 ml-auto">
        <% if editable %>
          <button class="button button__sm button__transparent button__transparent-secondary small alert move-up-question button--title">
            <%== "#{icon("arrow-up-line")} #{t(".up")}" %>
          </button>

          <button class="button button__sm button__transparent button__transparent-secondary small alert move-down-question button--title">
            <%== "#{icon("arrow-down-line")} #{t(".down")}" %>
          </button>

          <button class="button button__sm button__transparent button__transparent-secondary small alert remove-question button--title">
            <%= t(".remove") %>
          </button>
        <% end %>
      </div>
    </h2>

    <%=
      form.hidden_field(
        :question_type,
        value: :separator
      )
    %>
    <% if question.persisted? %>
      <%= form.hidden_field :id, disabled: !editable %>
    <% end %>

    <%= form.hidden_field :position, value: question.position || 0, disabled: !editable %>
    <%= form.hidden_field :deleted, disabled: !editable %>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-forms-0.29.1 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.29.0 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.29.0.rc4 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.29.0.rc3 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.29.0.rc2 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.29.0.rc1 app/views/decidim/forms/admin/questionnaires/_separator.html.erb