Sha256: f18be43122c9a7790289740f7a06b20152ba34e1d87ca9953807ee4e5cec9e9d
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