Sha256: e9e1fd652dc505523edb047b3a30d380c60d6b4c1cf8c1ecff168a730d236326

Contents?: true

Size: 904 Bytes

Versions: 9

Compression:

Stored size: 904 Bytes

Contents

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

= form.text_field :label
= form.file_field :file

- 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 'comfy/admin/cms/categories/form', :form => form

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

= form.form_group :class => 'form-actions' do
  = form.submit t(@file.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
  - unless @file.new_record?
    = link_to t('.delete'), comfy_admin_cms_site_file_path(@site, @file), :method => :delete, :data => {:confirm => t('.are_you_sure')},  :class => 'btn btn-danger'
  = link_to t('.cancel'), comfy_admin_cms_site_files_path, :class => 'btn btn-link'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.11 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.10 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.9 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.8 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.7 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.6 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.5 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.4 app/views/comfy/admin/cms/files/_form.html.haml
comfortable_mexican_sofa-1.12.3 app/views/comfy/admin/cms/files/_form.html.haml