Sha256: c1c9a4829cece2da42c9b32e438627928edc6e855114fde6e544c199563eb300

Contents?: true

Size: 1.15 KB

Versions: 12

Compression:

Stored size: 1.15 KB

Contents

<% if cms_options[:fancy] %>
  <%= content_for :html_head do %>
  <%= javascript_tag do %>
    jQuery(function($) {
      $('#mock_<%= object_name %>_<%= method %>')
      .focus(function() {this.blur()})
      .mousedown(function() {this.blur()})
      $('#<%= object_name %>_<%= method %>').change(function() {
        $('#mock_<%= object_name %>_<%= method %>')
        .attr('value', $(this).attr('value')) 
      })
     })
   <% end %>
  <% end %>
<% end %>

<div class="fields file_fields">
  <% if cms_options[:label] %>
    <%= f.label method, cms_options[:label] %>
  <% else %>
    <%= f.label method %>
  <% end %>
  <div id="<%= object_name %>_<%= method %>_div" class="file_inputs">
    <%= f.file_field method, {:class=>"#{'fancy_' if cms_options[:fancy]}file"}.merge(options) %>
<% if cms_options[:fancy] %>  
    <div class="fakefile">
        <input type="text" name="temp" class="mock" id="mock_<%= object_name %>_<%= method %>" />
        <%= image_tag("cms/browse.gif") %>
    </div>
<% end %>
  </div>
  <% if cms_options[:instructions] %>
    <div class="instructions"><%=h cms_options[:instructions] %></div>
    <br clear="all"/>  
  <% end %>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
browsercms-3.4.2 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.4 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.4.2.rc1 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.4.1 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.4.0 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.4.0.rc2 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.4.0.rc1 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.3 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.2 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.1 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.0 app/views/cms/form_builder/_cms_file_field.html.erb
browsercms-3.3.0.beta app/views/cms/form_builder/_cms_file_field.html.erb