Sha256: c4cbd15c8f349f31dd146994ffe2669766c2d90e3dbde2fb6cd4140adb965458

Contents?: true

Size: 822 Bytes

Versions: 11

Compression:

Stored size: 822 Bytes

Contents

<%= render :partial => 'admin/shared/contents_sub_menu' %>

<h1><%= t('.edit_upload') %></h1>

<% if @upload.try(:errors).present? %>
  <%= render 'shared/error_messages', :target => @upload %>
<% end %>

<%= form_for([:admin, @upload], :html => { :multipart => true }) do |f| %>
    <p>
      <% if @upload.image_content? %>
        <b><%= t('.preview') %>:</b><br/>
        <%= link_to image_tag(@upload.attachment.url(:small)), @upload.attachment.url(:original) %>
      <% else %>
        <b><%= t('.link') %>:</b><br/>
        <%= link_to @upload.attachment_file_name, @upload.attachment.url %>
      <% end %>
    </p>
    <%= render "form", :form => f %>
  </table>
  <p class="form-buttons">
    <%= button t("update") %>
    or <%= link_to t("cancel"), admin_uploads_url, :id => "cancel_link" %>
  </p>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_essentials-0.3.3 app/views/admin/uploads/edit.html.erb
spree_essentials-0.2.3 app/views/admin/uploads/edit.html.erb
spree_essentials-0.3.2 app/views/admin/uploads/edit.html.erb
spree_essentials-0.3.1 app/views/admin/uploads/edit.html.erb
spree_essentials-0.2.2 app/views/admin/uploads/edit.html.erb
spree_essentials-0.2.1 app/views/admin/uploads/edit.html.erb
spree_essentials-0.2.0 app/views/admin/uploads/edit.html.erb
spree_essentials-0.1.4 app/views/admin/uploads/edit.html.erb
spree_essentials-0.1.3 app/views/admin/uploads/edit.html.erb
spree_essentials-0.1.2 app/views/admin/uploads/edit.html.erb
spree_essentials-0.1.1 app/views/admin/uploads/edit.html.erb