Sha256: c2d673bc6a34db71af9affd820047112ff1bd460fdc126733d507f76bf9d3d89

Contents?: true

Size: 1.57 KB

Versions: 19

Compression:

Stored size: 1.57 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

19 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/entities/_permissions.html.haml
fat_free_crm-0.15.2 app/views/entities/_permissions.html.haml
fat_free_crm-0.16.4 app/views/entities/_permissions.html.haml
fat_free_crm-0.14.1 app/views/entities/_permissions.html.haml
fat_free_crm-0.15.1 app/views/entities/_permissions.html.haml
fat_free_crm-0.16.3 app/views/entities/_permissions.html.haml
fat_free_crm-0.16.2 app/views/entities/_permissions.html.haml
fat_free_crm-0.16.1 app/views/entities/_permissions.html.haml
fat_free_crm-0.16.0 app/views/entities/_permissions.html.haml
fat_free_crm-0.15.0 app/views/entities/_permissions.html.haml
fat_free_crm-0.15.0.beta.2 app/views/entities/_permissions.html.haml
fat_free_crm-0.15.0.beta app/views/entities/_permissions.html.haml
fat_free_crm-0.14.0 app/views/entities/_permissions.html.haml
reduced_fat_crm-0.15.0.beta app/views/entities/_permissions.html.haml
reduced_fat_crm-0.14.0 app/views/entities/_permissions.html.haml
fat_free_crm-0.13.6 app/views/entities/_permissions.html.haml
fat_free_crm-0.13.5 app/views/entities/_permissions.html.haml
fat_free_crm-0.13.4 app/views/entities/_permissions.html.haml
fat_free_crm-0.13.3 app/views/entities/_permissions.html.haml