Sha256: b18519cd43615c60521f6d5559fc21bee37c8d73021a3fc9c2df5844fdb3e0da
Contents?: true
Size: 594 Bytes
Versions: 25
Compression:
Stored size: 594 Bytes
Contents
- chooser ||= @page - if chooser - root ||= nil - disabled ||= false - branches = root ? root.children : Group.roots %ul{:class => root ? '' : 'tree'} - branches.each do |group| %li - checked = chooser.has_group?(group) = check_box_tag 'group_ids', group.id, checked, :id => "group_ids_#{group.id}", :class => "treebox", :disabled => disabled %label{:for => "group_ids_#{group.id}", :class => 'checkbox'} = group.name = render :partial => 'admin/groups/chooser', :object => chooser, :locals => {:root => group, :disabled => checked}
Version data entries
25 entries across 25 versions & 1 rubygems