Sha256: 3c0efa02a06d7c34f8f8ac41168c2fa5cdb059c47a256cfb3b5dc668641e0b8c

Contents?: true

Size: 1.35 KB

Versions: 9

Compression:

Stored size: 1.35 KB

Contents

# Remove Parent select box from org
Deface::Override.new(:virtual_path => "taxonomies/_step1",
                     :name => "remove_parent_organization_on_create",
                     :surround => 'erb[loud]:contains("select_f"):contains(":parent")',
                     :text => '<% if taxonomy.is_a?(Location) %><%= render_original %><% end %>'
                     )

Deface::Override.new(:virtual_path => "taxonomies/_form",
                     :name => "remove_parent_organization_on_edit",
                     :surround => 'erb[loud]:contains("select_f"):contains(":parent")',
                     :text => '<% if taxonomy.is_a?(Location) %><%= render_original %><% end %>'
                     )

# Add organization attributes to org creation
Deface::Override.new(:virtual_path => "taxonomies/_step1",
                     :name => "add_organization_attributes_on_create",
                     :insert_after => 'erb[loud]:contains("text_f"):contains(":name")',
                     :partial => 'overrides/organizations/step_1_override')

# Add organization attributes to org edit
Deface::Override.new(:virtual_path => "taxonomies/_form",
                     :name => "add_organization_attributes_on_edit",
                     :insert_after => 'erb[loud]:contains("text_f"):contains(":name")',
                     :partial => 'overrides/organizations/edit_override')

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.0.2 app/overrides/add_organization_attributes.rb
katello-3.0.1 app/overrides/add_organization_attributes.rb
katello-3.0.0 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc7 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc5 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc4 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc3 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc2 app/overrides/add_organization_attributes.rb
katello-3.0.0.rc1 app/overrides/add_organization_attributes.rb