Revision 5b3879ff
Added by Amir Fefer over 8 years ago
app/views/common_parameters/_parameter.html.erb | ||
---|---|---|
<table class="row">
|
||
<tbody>
|
||
<tr class="form-group <%= 'has-error' if f.object.errors.any? %>">
|
||
<% if controller_name =~ /(host|hostgroup)/ %>
|
||
<td class="col-md-3">
|
||
<%= content_tag(:input, '', :class => "form-control", :disabled => true, :value => _('Global'), :type=> :text ) %>
|
||
</td>
|
||
<% end %>
|
||
<td class="col-md-2">
|
||
<td class="col-md-4">
|
||
<%= f.text_field(:name, :class => "form-control", :disabled => disabled, :placeholder => _("Name")) %>
|
||
</td>
|
||
<td class="col-md-4 value">
|
||
<td class="col-md-5 value">
|
||
<% if f.object.hidden_value? %>
|
||
<%= f.password_field(:value, :class => 'form-control',
|
||
:disabled => disabled,
|
||
... | ... | |
<td class="col-md-1">
|
||
<%= fullscreen_button("$(this).parent().prev().find('textarea')") unless f.object.hidden_value? %>
|
||
</td>
|
||
<td>
|
||
<td class="col-md-2">
|
||
<%= f.check_box(:hidden_value,
|
||
:class => 'hidden_value_textarea_switch',
|
||
:onchange => 'turn_textarea_switch(this)',
|
Also available in: Unified diff
Fixes #11461 - Remove 'global scope' column in host/hostgroup parameters form