Sha256: 22362f7100e500e065f1ff10ad9e121ff398900228fb18507299a5728b5fa9ac

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 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
    = form_tag add_tag_to_path( resource: resource.class, resource_id: resource.id ) do
      = select_tag :id, options_for_select( @tags_list )
      = submit_tag '+Tag', data: { confirm: 'Are you sure?' }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wco_models-3.1.0.142 app/views/wco/tags/_list_mini.haml