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

Version Path
foreman_salt-1.1.0 app/overrides/foreman/salt_modules/_host_tab_pane.html.erb
foreman_salt-1.0.0 app/overrides/foreman/salt_modules/_host_tab_pane.html.erb
foreman_salt-0.0.4 app/overrides/foreman/salt_modules/_host_tab_pane.html.erb
foreman_salt-0.0.3 app/overrides/foreman/salt_modules/_host_tab_pane.html.erb