Sha256: b90d36737e3fe19b524bc37f5b494240822f580dea25af69eff3d212ff0739eb
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 Bytes
Contents
<%= render :partial => "spree/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essentials-0.4.0.rc2 | app/views/spree/admin/uploads/edit.html.erb |
spree_essentials-0.4.0.rc1 | app/views/spree/admin/uploads/edit.html.erb |