Sha256: 7a62ea9d0cef2b2c037abf84aeba0a25d6e1ecb865ad3276c79c0f36cc211e72

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

selector_text = "<%= select_f f, :salt_environment_id, ForemanSalt::SaltEnvironment.all, :id, :name,
                                 { :include_blank => blank_or_inherit_f(f, :salt_environment) },
                                 { :label => _('Salt Environment'), :onchange => 'update_salt_states(this)', :'data-url' => salt_environment_selected_hostgroups_path,
                                   :'data-host-id' => (@host || @hostgroup).id, :help_inline => :indicator} %>"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_salt-3.0.2 app/overrides/salt_environment_hostgroup_selector.rb
foreman_salt-3.0.1 app/overrides/salt_environment_hostgroup_selector.rb
foreman_salt-3.0.0 app/overrides/salt_environment_hostgroup_selector.rb
foreman_salt-2.1.0 app/overrides/salt_environment_hostgroup_selector.rb