Sha256: 1fdaaedc5dea0677b70d64e1314bbb60ee762d70daa811c05325f979dcd0c7bb

Contents?: true

Size: 1.78 KB

Versions: 59

Compression:

Stored size: 1.78 KB

Contents

<div id="save_errors" class="error"></div>
<h3>Select Thumbnail</h3>

<p>Select an image, then click "Finish" to upload and insert it if you are
certain your image is already web-ready. Otherwise, click "Next" to crop and
resize your image before using it.</p>

<%= form_tag_with_upload_progress({ :action => 'receive_image', :id => @pg, :overwrite => 1 },
                                  { :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' %><br/>
      <span style="color: #888888">Valid image types: jpeg, png, gif</span>
    </td>
  </tr>
  <tr>
    <td></td>
    <td>
      <div id="upload_status_div" class="error"><%= upload_status_tag %></div>
      <%= submit_tag 'Next', :class => 'form_button', :style => 'width: 70px;', :onclick => "if ($('file_data').value == '') return false; $('next_clicked_upload').value = '1'; $('next_clicked').value = '1'; this.disabled = true; this.value = 'Uploading...';" %>
      <%= 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", "cancelSelectThumbnail()" %>
      <%= text_field_tag 'next_clicked_upload', '0', :style => 'display: none' %>
    </td>
  </tr>
</table>
<%- end -%>

<%= form_remote_tag(:update => 'select_thumbnail_dialog_content', :html => { :id => 'mainform' },
                    :url => { :action => 'crop_thumb', :id => @pg }) do -%>
  <%= text_field_tag 'next_clicked', '0', :style => 'display: none' %>
  <%= 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_thumb.html.erb
imagine_cms-5.2.3 app/views/manage/cms_pages/_upload_thumb.html.erb
imagine_cms-5.2.2 app/views/manage/cms_pages/_upload_thumb.html.erb
imagine_cms-5.2.1 app/views/manage/cms_pages/_upload_thumb.html.erb
imagine_cms-5.2.0 app/views/manage/cms_pages/_upload_thumb.html.erb
imagine_cms-4.2.4 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.1.4 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.2.3 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.2.2 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.2.1 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.2.0 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.1.3 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.1.2 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.1.1 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.1.0 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.0.1 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-4.0.0 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-3.0.33 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-3.0.32 app/views/management/cms/_upload_thumb.html.erb
imagine_cms-3.0.31 app/views/management/cms/_upload_thumb.html.erb