Sha256: 184372afb638e7b55dd92836bb477fdd7376ca866936dc8b255a3909074141e4
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
class PrettyFileInput::Views::Component < PrettyFileInput::Views.base_view_class.constantize needs :name, persisted: false, filename: nil, method: nil, action: nil, additional_params: {} def content div( class: "pfi cf #{filename ? 'is_uploaded' : ''}", 'data-pfi' => { name: name, persisted: persisted, action: action, method: method, additionalParams: additional_params }.to_json ) { div(class: 'pfi_uploaded') { span filename, class: 'pfi_existing_filename' text ' ' a 'Remove', 'data-pfi-remove' => true, class: 'button mini info' } div(class: 'pfi_not_uploaded') { input type: 'file' span class: 'pfi_status' } } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pretty_file_input-0.1.0 | lib/pretty_file_input/views/component.rb |