Sha256: 565ad718c56eb7e959c8a12d84d8a45c349afb76bd7fb54eb1d9ebfa1be9cedb
Contents?: true
Size: 911 Bytes
Versions: 3
Compression:
Stored size: 911 Bytes
Contents
<%= render :partial => 'admin/content_parts/sub_menu' %> <div class="new_resource"> <% form_for @new_image, :url => admin_content_images_path, :html => { :multipart => true} do |f| %> <%= f.label :name %> <%= f.text_field :name %> <%= f.label :alt %> <%= f.text_field :alt %> <%= f.label :image %> <%= f.file_field :image %> <%= f.submit %> <% end %> </div> <table class="index" border="0" cellspacing="5" cellpadding="5"> <tr> <th>Name</th> <th>Alt Description</th> <th>Upload Date</th> <th>URL</th> <th></th> </tr> <tbody> <% @content_images.each do |image|%> <tr> <td><%= image.name %></td> <td><%= image.alt %></td> <td><%=l image.created_at.to_date %></td> <td><%= image.image.url %></td> <td><%= link_to "Destroy", admin_content_image_path(image), :method => :delete, :confirm => "Are you sure?"%></td> </tr> </tbody> <% end %> </table> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree-cms-0.2.1 | app/views/admin/content_images/index.html.erb |
spree-cms-0.2.0 | app/views/admin/content_images/index.html.erb |
spree-cms-0.1.0 | app/views/admin/content_images/index.html.erb |