Sha256: bd33c6fdc7fa14957f9633fba9df43f7a313819496c6670e1b8f97f8a859582a

Contents?: true

Size: 802 Bytes

Versions: 22

Compression:

Stored size: 802 Bytes

Contents

<div class="form-group">
  <label class="control-label col-sm-2"><%=Brightcontent::Attachment.model_name.human.pluralize%></label>
  <div class="col-sm-10" id="attachments-controls">
    <% if item.persisted? %>
      <ul class="media-list" id="attachments">
        <%= render item.attachments %>
      </ul>
      <input id="fileupload" type="file" name="attachment[asset]" data-url="<%= new_attachment_path %>" class="form-control" multiple>
      <%= hidden_field_tag "attachment[attachable_id]", item.id %>
      <%= hidden_field_tag "attachment[attachable_type]", item.class.to_s %>
      <%= hidden_field_tag "attachable_url", attachments_path(item.class.to_s, item.id) %>
    <% else %>
      <p class="form-control-static"><%= t('brightcontent.save_first')%></p>
    <% end %>
  </div>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
brightcontent-attachments-2.6.0 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.5.1 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.5.0 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.6 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.5 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.4 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.3 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.2 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.1 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.4.0 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.3.4 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.3.3 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.3.2 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.3.1 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.3.0 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.2.2 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.2.1 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.2.0 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.1.5 app/views/brightcontent/base/_form_field_attachments.html.erb
brightcontent-attachments-2.1.4 app/views/brightcontent/base/_form_field_attachments.html.erb