Sha256: d0e51476b0d2c91d922726089230f71c0b94da5d18fc39b6d7c4ee81772aefb4
Contents?: true
Size: 782 Bytes
Versions: 25
Compression:
Stored size: 782 Bytes
Contents
-# <b>Tags (#{tags.length}):</b> -# - cache cache_key do .Tags.chips.mb-2 - tags.each do |tag| .Chip{ data: { tag: { id: tag.id.to_s } } } - if !config&.without_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
25 entries across 25 versions & 1 rubygems