Sha256: 5a9299fd5ea742e5150612bb300d3bf9839303be7268c7a4419f3b39aefc3c39

Contents?: true

Size: 795 Bytes

Versions: 5

Compression:

Stored size: 795 Bytes

Contents

selector_text = "<%= select_f f, :salt_proxy_id, SmartProxy.unscoped.with_features('Salt').with_taxonomy_scope(@location,@organization, :path_ids), :id, :name,
                                 { :include_blank => blank_or_inherit_f(f, :salt_proxy) },
                                 { :label         => _('Salt Master') } %>"

Deface::Override.new(:virtual_path  => "hosts/_form",
                     :name          => "add_salt_proxy_to_host",
                     :insert_bottom => 'div#primary',
                     :text          =>  selector_text)

Deface::Override.new(:virtual_path  => "hostgroups/_form",
                     :name          => "add_salt_proxy_to_hostgroup",
                     :insert_bottom => 'div#primary',
                     :text          =>  selector_text)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_salt-1.1.0 app/overrides/salt_proxy_selector.rb
foreman_salt-1.0.0 app/overrides/salt_proxy_selector.rb
foreman_salt-0.0.4 app/overrides/salt_proxy_selector.rb
foreman_salt-0.0.3 app/overrides/salt_proxy_selector.rb
foreman_salt-0.0.2 app/overrides/salt_proxy_selector.rb