Sha256: 2d91a1669ab42e19a4edb53f2a74bdf20d2293c3dc91b100b72b9c6ce310994a

Contents?: true

Size: 1.48 KB

Versions: 7

Compression:

Stored size: 1.48 KB

Contents

<div class="card multifield-field" id="<%= id %>-field">
  <div class="card-divider multifield-field-divider">
    <h3 class="heading6 card-title">
      <span class="card-title-text">
        <%== t(".attachment_legend") %>
      </span>

      <button class="button tiny hollow remove-field button--title" aria-label="<%= t(".remove") %>">
        <%== icon("trash") %>
      </button>

      <button class="button tiny hollow move-down-field button--title hide-for-small-only" aria-label="<%= t(".down") %>">
        <%== icon("arrow-bottom") %>
      </button>

      <button class="button tiny hollow move-up-field button--title hide-for-small-only" aria-label="<%= t(".up") %>">
        <%== icon("arrow-top") %>
      </button>
    </h3>
  </div>

  <div class="card-section">
    <div class="row column">
      <div class="field">
        <% if form.send(:attribute_required?, :title) %>
          <%= form.text_field :title %>
        <% else %>
          <%
          # Force the required tag on the form to indicate the user that the
          # title is required always when the file is given.
          %>
          <%= form.text_field :title, label: form.label_for(:title) + required_tag %>
        <% end %>
      </div>

      <div class="field">
        <%= upload_field form, :file %>
      </div>

      <%= form.hidden_field :id %>
      <%= form.hidden_field :weight, value: form.object.weight || 0, class: "position-input" %>
      <%= form.hidden_field :deleted %>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-plans-0.16.4 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.16.3 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.16.2 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.16.1 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.16.0 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.15.1 app/views/decidim/plans/shared/_attachment_fields.html.erb
decidim-plans-0.15.0 app/views/decidim/plans/shared/_attachment_fields.html.erb