Sha256: b3c220bdc5d64ec4eaf4ce23617eec970eb35a53ed8f784ce7b32f43617a5346

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

= render 'admin/cms/partials/file_form_before', :object => form

= form.text_field :label
= form.file_field :file, :multiple => @file.new_record?

- unless @file.new_record?
  = form.element t('.current_file') do
    = image_tag @file.file.url if @file.is_image?
    = link_to @file.file.url, @file.file.url, :target => '_blank'

= form.text_area :description

= render :partial => 'admin/cms/categories/form', :object => form

= render 'admin/cms/partials/file_form_after', :object => form

.form-actions
  = form.submit t(@file.new_record?? '.create' : '.update'), :class => 'btn btn-primary'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.11.1 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.11.0 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/files/_form.html.haml