Sha256: 90786e38d8c5a0cefd22751e008af3dea13fc8c77b45a367cb170d9ba7d411c8

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

<%% image_url ||= nil %>
<%% label ||= nil %>

<div class="control-group file-field">
  <%%= optional_label(f, what, label, 'control-label') %>
  <div class="controls">
    <%%= f.file_field what %>
    <%%= content_tag(:p, help, :class => 'help-block') if help_text_present?(local_variables) %>
    <%%= image_tag(image_url) if image_url.present? %> 
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexible_admin-0.2.0.2 lib/generators/flexible_admin/templates/forms/file_field.html.erb
flexible_admin-0.2.0.1 lib/generators/flexible_admin/templates/forms/file_field.html.erb
flexible_admin-0.2.0 lib/generators/flexible_admin/templates/forms/file_field.html.erb