Sha256: 9d56d6cf92975c3052270364ef5c781b4bb353ec00c1e7a9287580ee6945a89e

Contents?: true

Size: 715 Bytes

Versions: 8

Compression:

Stored size: 715 Bytes

Contents

<%= simple_form_for([:backend, asset], html: { autocomplete: "false" }) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :file_name %>
    <%= f.input :file, as: :file %>
    <%= f.input :file_cache, as: :hidden %>

    <% if f.object.persisted? %>
      <div class="form-group asset_file_object">
        <div class="col-sm-10 col-sm-offset-2">
          <%= f.object.file %>

          <% if f.object.file.image? %>
            <div>
              <%= image_tag(f.object.file.small.url, alt: "") %>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>

  <div class="form-actions text-right">
    <%= f.button :submit %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.8 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.7 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.6 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.5 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.4 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.3 app/views/archangel/backend/assets/_form.html.erb
archangel-0.0.2 app/views/archangel/backend/assets/_form.html.erb