Sha256: 88e9cd2448465021b879dc6c6ddad2336f1bdae9ba4b5a1ba2ab5f028cef05ce
Contents?: true
Size: 1.93 KB
Versions: 2
Compression:
Stored size: 1.93 KB
Contents
.multi-select-field{ class: ('orderable' if orderable), data: { :'multi-select-input' => true, :'search-url' => admin_search_path(model_name: model.name), orderable: orderable } } = form.hidden_field attribute_name, value: resources.map(&:id).join(', '), data: { :'multi-select-input-field' => true } .row .col-md-6 .input-group.filter-form = text_field_tag :search, nil, class: 'string required form-control', autocomplete: 'off', data: { :'search-field' => true } %span.input-group-btn = button_tag type: 'button', class: 'btn' do = fa_icon 'search' .row .col-md-6 .panel.panel-default.available-items .panel-heading %span.panel-title = t('para.form.multi_select.available.title') .panel-btns = button_tag type: 'button', class: 'btn btn-success btn-xs', data: { :'add-all' => true } do = t('para.form.multi_select.available.add_all') .panel-body %table.table{ data: { :'available-items' => true, :'no-available-items' => render(partial: 'para/inputs/multi_select/no_items', locals: { available: true }) } } %tbody = render partial: 'para/admin/search/result', collection: option_resources .col-md-6 .panel.panel-default.selected-items .panel-heading %span.panel-title = t('para.form.multi_select.selected.title') .panel-btns = button_tag type: 'button', class: 'btn btn-danger btn-xs', data: { :'remove-all' => true } do = t('para.form.multi_select.selected.remove_all') .panel-body %table.table{ data: { :'selected-items' => true, :'no-selected-items' => render(partial: 'para/inputs/multi_select/no_items', locals: { available: false }) } } %tbody - if resources.length > 0 - resources.each do |resource| = selected_item_for(resource)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
para-0.7.1 | app/views/para/inputs/_multi_select.html.haml |
para-0.7.0 | app/views/para/inputs/_multi_select.html.haml |