Sha256: da6337f94e6ef31c7c98a81a4188445ca151e61107ccacead81ffb2e274a471b

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 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>
      <img src="<%= @asset.file.thumb("300x300").url %>" alt="">
    </div>
    <% end %>
  <% end %>
  <%= f.actions :submit %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smithycms-0.4.2 app/views/smithy/assets/_form.html.erb
smithycms-0.4.1 app/views/smithy/assets/_form.html.erb
smithycms-0.4.0 app/views/smithy/assets/_form.html.erb
smithycms-0.0.3 app/views/smithy/assets/_form.html.erb
smithycms-0.0.2 app/views/smithy/assets/_form.html.erb
smithycms-0.0.1 app/views/smithy/assets/_form.html.erb