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