Sha256: f05e0685929f11df7d9a9fd50c5fef77c1df5bd4ac331e5cee3668251b086744
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
<% form_for [:admin, @resource], :url => @url_override || @url, :html => {:multipart => true} do |f| -%> <%= f.error_messages %> <div class='field'> <% if action_name =~ /(edit)|(update)/ %> <%= link_to t('.download_current'), @resource.public_filename, :title => @resource.title %> <em><%= t('.or')%></em><%=t('.replace') %> <% end %> <%= f.file_field :uploaded_data %> </div> <div class='field'> <label> <%= t('.maximum_file_size', :megabytes => (Resource.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_resource' value='<%= @update_resource %>' /> <input type='hidden' name='update_text' value='<%= @update_text %>' /> <input type='hidden' name='thumbnail' value='<%= @thumbnail %>' /> <input type='hidden' name='callback' value='<%= @callback %>' /> <input type='hidden' name='conditions' value='<%= @conditions %>' /> <input type='hidden' name='current_link' value='<%= @current_link %>' /> <% end -%> <% end -%> <% content_for :head do %> <script type='text/javascript'> $(document).ready(function(){ link_dialog.init(); }); </script> <% end if from_dialog? %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.7.7 | vendor/plugins/resources/app/views/admin/resources/_form.html.erb |
refinerycms-0.9.7.6 | vendor/plugins/resources/app/views/admin/resources/_form.html.erb |