Sha256: 9e8526a441f6103d3f95afc2e749553842cb6160e22bf9b71a7a81710f01729d
Contents?: true
Size: 1.82 KB
Versions: 47
Compression:
Stored size: 1.82 KB
Contents
<% lookup_keys = overridable_puppet_lookup_keys(puppetclass, obj) %> <% lookup_keys.each_with_index do |lookup_key, index| %> <% lookup_value = lookup_value(obj, lookup_key) %> <% # LookupValue#match is generated automatically by Host#lookup_values_attributes= # from the name, so don't present errors directly to the user. Any validation # errors should also be visible against the Host#name field. if lookup_value.errors[:match].any? logger.debug("Ignoring #{lookup_value.inspect} match errors: #{lookup_value.errors[:match]}") lookup_value.errors.delete(:match) end %> <% overridden = lookup_key.overridden?(obj) %> <% error = lookup_value.errors %> <tr id="puppetclass_<%= puppetclass.id %>_params[<%= lookup_key.id %>]" class="fields <%= 'overridden' if overridden %>"> <%= content_tag(:td, puppetclass.name, :rowspan => lookup_keys.size, :class => "ellipsis") if index == 0 %> <td class="ellipsis param_name"> <%= lookup_key.key %> </td> <td <%= "class=has-error" if error.present? %>> <div class="input-group"> <%= puppet_lookup_key_with_diagnostic(obj, lookup_key, lookup_value) %> <span class="input-group-btn"> <%= hidden_toggle(lookup_key.hidden_value?, 'font', 'font', true) if lookup_key.hidden_value? %> <%= fullscreen_button("$(this).parent().prev()") unless lookup_key.key_type == "boolean" %> <%= puppet_override_toggle(overridden) %> </span> </div> <%= content_tag(:span, error.full_messages.to_sentence, :class => "help-block") if error.present? %> </td> <td class="ca"> <%= omit_puppet_lookup_check_box(lookup_key, lookup_value, !overridden) %> <%= hidden_puppet_lookup_value_fields(lookup_key, lookup_value, !overridden) %> </td> </tr> <% end %>
Version data entries
47 entries across 47 versions & 1 rubygems