Sha256: 12015a0db116200e66abee00318cd35bf4770286b43e81230357293cc3abfefd
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
<%= semantic_form_for @asset do |f| %> <%= f.inputs do %> <%= f.input :name, :label => 'Name (Alernative text)' %> <%= f.input :file, :as => :file %> <%= f.input :retained_file, :as => :hidden %> <% if @asset.file %> <div> <%= link_to asset.file.remote_url do %> <% if asset.file_type == :image %> <img src="<%= @asset.file.thumb("300x300").url %>" alt=""> <% else %> <%= image_tag file_type_icon(asset), alt: '' %> <% end %> <% end %> </div> <% end %> <% end %> <%= f.actions :submit %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smithycms-0.5.1 | app/views/smithy/assets/_form.html.erb |
smithycms-0.5.0 | app/views/smithy/assets/_form.html.erb |