Sha256: cacde5a7f8e20f03d14797693b58eb683c9c60fe4634f37b2ad83f39730b6d5f
Contents?: true
Size: 1.53 KB
Versions: 13
Compression:
Stored size: 1.53 KB
Contents
- edit ||= false - model = entity.class.name.underscore - collapsed = session[:entity_permissions].nil? = subtitle :entity_permissions, collapsed, t(:permissions) .section %small#entity_permissions_intro{ hidden_if(!collapsed) } = get_default_permissions_intro(entity.access, t("#{model}_small")) unless edit #entity_permissions{ hidden_if(collapsed) } .radio_box = f.radio_button :access, "Private", onclick: "$('#people').hide()" = f.label :access_private, t(:keep_private), style: "cursor:pointer" .radio_box = f.radio_button :access, "Public", onclick: "$('#people').hide()" = f.label :access_public, t(:make_public), style: "cursor:pointer" .radio_box = f.radio_button :access, "Shared", onclick: "$('#people').show()" = f.label :access_shared, t(:share_with), style: "cursor:pointer" #people{ hidden_if(entity.access != "Shared") } %table %tr %td = f.label :user_ids, "#{t(:users)}:" %br = f.select :user_ids, user_options, {}, multiple: true, class: 'select2' %tr %td = f.label :group_ids, "#{t(:groups)}:" %br = f.select :group_ids, group_options, {}, multiple: true, class: 'select2' - if !edit and entity.is_a?(Lead) .radio_box = f.radio_button :access, t(:campaign), onclick: "$('#people').hide(); $('#lead_access_campaign').val('Campaign');", disabled: true %font{ id: :copy_permissions, color: :grey } = t(:copy_permissions, t(:campaign_small))
Version data entries
13 entries across 13 versions & 1 rubygems