Sha256: 4c410b75d1767870e6d406d841767a79e31acd0ab312e6f22a940acd6270ad34

Contents?: true

Size: 1.39 KB

Versions: 6

Compression:

Stored size: 1.39 KB

Contents

<%= error_messages_for :resource -%>

<% form_for [:admin, @resource],   :url => @url_override || @url,
                                  :html => {:multipart => true} do |f| -%>
  <div class='field'>
    <%= f.label :uploaded_data, 'File to upload' -%>
    <% if params[:action] =~ /(edit)|(update)/ -%>
      <%= link_to "Download current file", @resource.public_filename, {:title => @resource.title} -%>
      <em>or</em>, replace it with this one...
    <% end -%>
    <%= f.file_field :uploaded_data -%>
  </div>

  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false} %>

  <% if @thickbox -%>
    <input type='hidden' name='thickbox' value='<%= @thickbox %>' />
    <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

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-0.9.6.5 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.4 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.3 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.2 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.1 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6 vendor/plugins/resources/app/views/admin/resources/_form.html.erb