Sha256: 133dbd10f045ecca79b0764d5a074ad87a1ba8e1582a849eb0ec80f103755c1f
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
<% form_for [:admin, @image], :url => @url_override || @url, :html => {:multipart => true, :style => 'float: left; width: 70%'} do |f| %> <%= f.error_messages %> <div class='field'> <% if action_name =~ /(edit)|(update)/ %> <%= t('.use_current_image') %> <em><%= t('.or') %></em>, <%= t('.replace_image') %> <% end %> <%= f.file_field :uploaded_data %> </div> <div class='field'> <label><%= t('.maximum_image_size', :megabytes => (Image.attachment_options[:max_size] / 1024 / 1024)) %></label> </div> <%= render :partial => "/shared/admin/form_actions", :locals => { :f => f, :continue_editing => false, :hide_cancel => (@app_dialog or action_name == "insert" or from_dialog?) } %> <% if @app_dialog %> <input type='hidden' name='app_dialog' value='<%= @app_dialog %>' /> <input type='hidden' name='field' value='<%= @field %>' /> <input type='hidden' name='update_image' value='<%= @update_image %>' /> <input type='hidden' name='thumbnail' value='<%= @thumbnail %>' /> <input type='hidden' name='callback' value='<%= @callback %>' /> <input type='hidden' name='conditions' value='<%= @conditions %>' /> <% end %> <% end %> <% if action_name =~ /(edit)|(update)/ %> <div style='float: right; width: 25%;'> <label><%=t('.current_image') %></label> <%= image_fu @image, :medium, { :class => "brown_border" } %> </div> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems