Sha256: 0b8a3d9936519a107ecf0b578f7d94fb8a6f53284d0d01bd66dd9ea8b646d9cf

Contents?: true

Size: 1.26 KB

Versions: 59

Compression:

Stored size: 1.26 KB

Contents

<%= javascript_tag "try { $('insert_image_dialog_content').innerHTML = ''; } catch (e) {}" %>

<div id="save_errors" class="error"></div>
<h3>Create Download Link</h3>

<p>Select the file you'd like to make available for site visitors to download.</p>

<%= form_tag_with_upload_progress({ :action => 'receive_file', :id => @pg },
                                  { :finish => "if (arguments[0]) { $('filename').value = arguments[0]; $('mainform').onsubmit(); }" }) do -%>
<table>
  <tr>
    <td>File:</td>
    <td>
      <%= file_field 'file', 'data', :class => 'form', :style => 'margin-bottom: 0; width: 150px' %>
    </td>
  </tr>
  <tr>
    <td></td>
    <td>
      <div id="upload_status_div" class="error"><%= upload_status_tag %></div>
      <%= submit_tag 'Finish', :class => 'form_button', :style => 'width: 70px;', :onclick => "if ($('file_data').value == '') return false; this.disabled = true; this.value = 'Uploading...';" %>
      <%= link_to_function "Cancel", "cancelInsertFile()" %>
    </td>
  </tr>
</table>
<%- end -%>

<%= form_remote_tag(:update => 'insert_file_dialog_content', :html => { :id => 'mainform' },
                    :url => { :action => 'create_file_link', :id => @pg }) do -%>
  <%= text_field_tag 'filename', '', :style => 'display: none' %>
<%- end -%>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
imagine_cms-5.2.4 app/views/manage/cms_pages/_upload_file.html.erb
imagine_cms-5.2.3 app/views/manage/cms_pages/_upload_file.html.erb
imagine_cms-5.2.2 app/views/manage/cms_pages/_upload_file.html.erb
imagine_cms-5.2.1 app/views/manage/cms_pages/_upload_file.html.erb
imagine_cms-5.2.0 app/views/manage/cms_pages/_upload_file.html.erb
imagine_cms-4.2.4 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.1.4 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.2.3 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.2.2 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.2.1 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.2.0 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.1.3 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.1.2 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.1.1 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.1.0 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.0.1 app/views/management/cms/_upload_file.html.erb
imagine_cms-4.0.0 app/views/management/cms/_upload_file.html.erb
imagine_cms-3.0.33 app/views/management/cms/_upload_file.html.erb
imagine_cms-3.0.32 app/views/management/cms/_upload_file.html.erb
imagine_cms-3.0.31 app/views/management/cms/_upload_file.html.erb