Sha256: 5a3c80295c73566bbdee02b34f563929b0d447319cc46ada605bf4b45a13ad67

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

= render 'comfy/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.form_group t('.current_file') do
    - if @file.is_image?
      .file-image= image_tag @file.file.url 
    = link_to @file.file.url, @file.file.url, :target => '_blank'

= form.text_area :description

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

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

= form.form_group :class => 'form-actions' do
  = form.submit t(@file.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
  = link_to t('.cancel'), comfy_admin_cms_site_files_path, :class => 'btn btn-link'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.2 app/views/comfy/admin/cms/files/_form.html.haml