Sha256: 8bf05decbad2034e8b2212e3795a17b3633026a293d8fb609223297a24e431e0
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 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'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.12.1 | app/views/comfy/admin/cms/files/_form.html.haml |
comfortable_mexican_sofa-1.12.0 | app/views/comfy/admin/cms/files/_form.html.haml |