Sha256: 193dcbb3d60f2024481e1c7dffd0340033a2faf570e886d47e559bfb9e485248
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
- tagged_params = Array.wrap(params[:tagged]) %table.tag-table %thead %th{:colspan => 2} = t(:tags_name, :scope => :e9_tags) %tbody - Tagging.where(:context => E9Tags.escape_context('users*')).joins(:tag).all.group_by {|t| t.name[0].upcase }.sort.each do |letter, tags| %tr %td.tag-starts-with= letter %td.tags %ul.tags - tags.sort_by(&:name).each do |tag|; tag_id = "tagged-#{tag.name.dasherize}" %li.tag = label_tag(tag_id, tag.name) = check_box_tag('tagged[]', tag.name, tagged_params.member?(tag.name), :id => tag_id)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
e9_crm-0.1.5 | app/views/e9_crm/contacts/_tag_table.html.haml |
e9_crm-0.1.4 | app/views/e9_crm/contacts/_tag_table.html.haml |
e9_crm-0.1.1 | app/views/e9_crm/contacts/_tag_table.html.haml |