Revision b3424682
Added by Tom Caspy about 9 years ago
app/views/puppetclasses/_class_parameters.html.erb | ||
---|---|---|
# Plus, we make the class name available from javascript without having to look at any previous row.
|
||
content_tag :span, puppetclass.name, :'data-property' => 'class'
|
||
end %>
|
||
<td><%= content_tag :span, key.key, :class => "col-md-2", :'data-property' => 'name' %></td>
|
||
<td>
|
||
<%= content_tag :span, key.key, :class => "col-md-2 #{"override-param" if key.overridden?(obj)}", :'data-property' => 'name' %></td>
|
||
<td><%= obj.class.model_name == "Host" ? host_key_with_diagnostic(obj, value_hash, key) : hostgroup_key_with_diagnostic(obj, key)%></td>
|
||
<td>
|
||
<%= link_to_function(_("override"), "override_class_param(this)", :title => _("Override this value"),
|
||
:'data-tag' => 'override', :class =>"btn btn-default") if authorized_via_my_scope("host_editing", "create_params") %>
|
||
:'data-tag' => 'override', :class =>"btn btn-default") if authorized_via_my_scope("host_editing", "create_params") && !key.overridden?(obj) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
fixes #4424 - overriden attributes get overridden in the UI
(cherry picked from commit 0575b5b0a07c59c443bf2be663cb67d6a5e40f19)