Sha256: c964c7aa24d90576a36096e0a9b5eb22124fa360c662c336837bd1d660e37d4f

Contents?: true

Size: 784 Bytes

Versions: 2

Compression:

Stored size: 784 Bytes

Contents

- file = f.object.send field
.control-group{data: {file_upload_container: true}}
  .controls.alert.alert-info.span3
    %p{id: "#{field}-name-label", style: "margin-bottom: 10px;", data: {file_upload_title: true}}
      - if file.file
        = file.file.filename
        = surround '(', ')' do
          = number_to_human_size(file.file.size)
      - else
        = I18n.t("activerecord.attributes.#{f.object.class.model_name.singular}.#{field}_name")

    .custom-file{style: 'cursor: pointer; height: 31px; overflow: hidden; position: relative; width: 140px;'}
      .btn.btn-primary{style: 'position: absolute; left: 0; right: 0;'} Загрузить
      = f.file_field field, class: 'span5', style: "font-size: 100px; opacity: 0; position: absolute;", data: {file_upload: true}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 app/views/admin/common/_file_upload_template.haml
coalla-cms-0.4.4.3 app/views/admin/common/_file_upload_template.haml