Sha256: b63e2a75ffed11bfee5a99bf4c5e7f799b3eaac3f027361e409982dff78b7e9e

Contents?: true

Size: 540 Bytes

Versions: 5

Compression:

Stored size: 540 Bytes

Contents

- tagged_params = Array.wrap(params[:tagged])
%table.tag-table
  %thead
    %th{:colspan => 2}
      = t(:tags_name, :scope => :e9_tags)
  %tbody
    - contact_tags.sort.group_by {|tag| tag[0].upcase }.each do |letter, tags|
      %tr
        %td.tag-starts-with= letter
        %td.tags
          %ul.tags
            - tags.each do |tag|; tag_id = "tagged-#{tag.downcase.dasherize}"
              %li.tag
                = label_tag(tag_id, tag)
                = check_box_tag('tagged[]', tag, tagged_params.member?(tag), :id => tag_id)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
e9_crm-0.1.11 app/views/e9_crm/contacts/_tag_table.html.haml
e9_crm-0.1.10 app/views/e9_crm/contacts/_tag_table.html.haml
e9_crm-0.1.8 app/views/e9_crm/contacts/_tag_table.html.haml
e9_crm-0.1.7 app/views/e9_crm/contacts/_tag_table.html.haml
e9_crm-0.1.6 app/views/e9_crm/contacts/_tag_table.html.haml