Sha256: 0bf06a7f27736119d4cfbcc058b288edd83a04a79ec528fe6b44af960ded07b9

Contents?: true

Size: 1.21 KB

Versions: 46

Compression:

Stored size: 1.21 KB

Contents

<% question = form.object %>

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

    <% if editable %>
      <button class="button small alert hollow move-up-question button--title">
        <%== "#{icon("arrow-top")} #{t(".up")}" %>
      </button>

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

      <button class="button small alert hollow remove-question button--title">
        <%= t(".remove") %>
      </button>
    <% end %>
    </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

46 entries across 46 versions & 1 rubygems

Version Path
decidim-forms-0.27.9 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.8 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.7 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.6 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.10 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.9 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.5 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.8 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.4 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.3 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.7 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.5 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.2 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.1 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.4 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.0 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.3 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.0.rc2 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.27.0.rc1 app/views/decidim/forms/admin/questionnaires/_separator.html.erb
decidim-forms-0.26.2 app/views/decidim/forms/admin/questionnaires/_separator.html.erb