Sha256: a1d2491f21d750a842ebe379a582fa9842a698bc06ecc9c0b4f90fcf33ca19c3
Contents?: true
Size: 814 Bytes
Versions: 12
Compression:
Stored size: 814 Bytes
Contents
- config ||= {} -# <b>Tags (#{tags.length}):</b> -# - cache cache_key do .Tags.chips.mb-2.d-inline-block - tags.each do |tag| .Chip{ data: { tag: { id: tag.id.to_s } } } - unless config[:skip_checkbox] = check_box_tag 'tag_ids[]', tag.id = link_to tag.slug, wco.tag_path( tag ) - if defined? resource .mini.d-inline-block= button_to 'x', remove_tag_from_path(id: tag.id, resource: resource.class, resource_id: resource.id, ), method: 'delete', data: { confirm: 'Are you sure?' } - if defined? resource .d-inline-block = form_tag add_tag_to_path( resource: resource.class, resource_id: resource.id ) do .d-inline-block= select_tag :id, options_for_select( @tags_list ), class: 'select2' = submit_tag '+Tag', data: { confirm: 'Are you sure?' }
Version data entries
12 entries across 12 versions & 1 rubygems