Sha256: 38a5a30d670920c884107857f9cf585647ac1c7495bcb8d07129ed765609aba3

Contents?: true

Size: 1.39 KB

Versions: 14

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 @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

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.29 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.28 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.27 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.26 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.25 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.24 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.23 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.22 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.21 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.19 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.18 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.17 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.16 vendor/plugins/resources/app/views/admin/resources/_form.html.erb
refinerycms-0.9.6.15 vendor/plugins/resources/app/views/admin/resources/_form.html.erb