Sha256: 2c32120ab974cfcd6430a3270435fa2d565498a8146502f3aaed1c32e611f531
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 Bytes
Contents
<% @inherited_salt_modules = [] if @inherited_salt_modules.blank? %> <div class="tab-pane" id="salt_modules"> <div class="row"> <div class="col-md-4"> <h3>Inherited States</h3> <ul> <% @inherited_salt_modules.sort.each do |salt_module| -%> <li title="Inherited from hostgroup"><%= salt_module.name -%></li> <% end -%> </ul> </div> <div class="col-md-8"> <h3>Salt States</h3> <% if @inherited_salt_modules.blank? -%> <%= multiple_selects f, :salt_module, ::ForemanSalt::SaltModule, @salt_modules.try(:map, &:id), :label => "" %> <% else -%> <%= multiple_selects f, :salt_module, ::ForemanSalt::SaltModule.where('id NOT IN (?)', @inherited_salt_modules.map(&:id)), @salt_modules.try(:map, &:id), :label => "" %> <% end -%> </div> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems