Sha256: 1dc098d1fa62b37c5fd41714b0c8a6c1bdff58e960d31986574f440cb9cbf54a

Contents?: true

Size: 724 Bytes

Versions: 23

Compression:

Stored size: 724 Bytes

Contents

.nested_field
  - if f.object.new_record?
    = f.input :document_type, as: :hidden, input_html: { value: controller_name.singularize }
    = #f.input :name
    = f.input :attachment
  - else
    .controls
      .attachment_part
        .attachment_entry
          .attachment_entry_content
            .attachment_entry_image      
              = link_to document_image_tag(f.object), download_document_path(f.object)
            .attachment_entry_description
              .file_name_part
                = link_to f.object.attachment_file_name, download_document_path(f.object)
              .file_size_part
                = number_to_human_size f.object.attachment_file_size


  = link_to_remove_fields t("remove"), f

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/application/_document_fields.html.haml
rich_table_component-0.0.29 app/views/application/_document_fields.html.haml
rich_table_component-0.0.28 app/views/application/_document_fields.html.haml
rich_table_component-0.0.27 app/views/application/_document_fields.html.haml
rich_table_component-0.0.26 app/views/application/_document_fields.html.haml
rich_table_component-0.0.24 app/views/application/_document_fields.html.haml
rich_table_component-0.0.22 app/views/application/_document_fields.html.haml
rich_table_component-0.0.21 app/views/application/_document_fields.html.haml
rich_table_component-0.0.18 app/views/application/_document_fields.html.haml
rich_table_component-0.0.17 app/views/application/_document_fields.html.haml
rich_table_component-0.0.16 app/views/application/_document_fields.html.haml
rich_table_component-0.0.15 app/views/application/_document_fields.html.haml
rich_table_component-0.0.14 app/views/application/_document_fields.html.haml
rich_table_component-0.0.13 app/views/application/_document_fields.html.haml
rich_table_component-0.0.10 app/views/application/_document_fields.html.haml
rich_table_component-0.0.9 app/views/application/_document_fields.html.haml
rich_table_component-0.0.8 app/views/application/_document_fields.html.haml
rich_table_component-0.0.7 app/views/application/_document_fields.html.haml
rich_table_component-0.0.6 app/views/application/_document_fields.html.haml
rich_table_component-0.0.5 app/views/application/_document_fields.html.haml