Sha256: 3482b2004fb92ed5d6d19b9d49461e3cdd60804c070298e2470ab9788bcfefc8

Contents?: true

Size: 1.29 KB

Versions: 27

Compression:

Stored size: 1.29 KB

Contents

<% resource_type ||= pagelet.opts[:resource_type] %>
<% obj = (subject.puppet || subject.build_puppet) if %i[host hostgroup].include?(resource_type) %>
<% if resource_type == :host %>
<span id="puppet_klasses_reload_url" data-url="<%= foreman_puppet.hostgroup_or_environment_selected_hosts_path %>"></span>
<% elsif resource_type == :hostgroup %>
<span id="puppet_klasses_reload_url" data-url="<%= foreman_puppet.environment_selected_hostgroups_path %>"></span>
<% end %>
<% if @environment.present? || obj.environment.present? %>
  <% if accessible_resource_records('ForemanPuppet::ConfigGroup').exists? %>
    <%= render 'foreman_puppet/config_groups/config_groups_selection', obj: obj, resource_type: resource_type %>
  <% end %>

  <%= render 'foreman_puppet/puppetclasses/class_selection', obj: obj, resource_type: resource_type %>

  <fieldset id="puppet_klasses_parameters" data-url="<%= foreman_puppet.url_for(controller: resource_type.to_s.pluralize.to_sym, action: :puppetclass_parameters, only_path: true) %>">
    <h2><%= _('Puppet Class Parameters') %></h2>
    <%= render 'foreman_puppet/puppetclasses/classes_parameters', obj: subject %>
  </fieldset>
<% else %>
  <%= alert(class: alert_class(:info),
            header: _('Notice'),
            text: _('Please select an environment first')) %>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.4.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-7.0.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.3.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.2.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.1.1 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-5.1.3 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.1.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.0.1 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-6.0.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-5.1.2 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-4.1.1 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-5.1.1 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-5.1.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-4.1.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-4.0.4 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-5.0.0 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-4.0.3 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-4.0.2 app/views/hosts/_form_puppet_enc_tab.html.erb
foreman_puppet-3.0.7 app/views/hosts/_form_puppet_enc_tab.html.erb