Revision bf4a13d3
Added by Walden Raines over 10 years ago
app/helpers/lookup_keys_helper.rb | ||
---|---|---|
value, origin = hostgroup.inherited_lookup_value key
|
||
original_value = key.value_before_type_cast value
|
||
diagnostic_helper = popover(_("Additional info"), _("<b>Description:</b> %{desc}<br><b>Type:</b> %{type}<br> <b>Matcher:</b> %{matcher}") % { :desc => key.description, :type => key.key_type, :matcher => origin})
|
||
content_tag :div, :class => ['control-group', 'condensed'] do
|
||
content_tag :div, :class => ['form-group', 'condensed'] do
|
||
row_count = original_value.to_s.lines.count rescue 1
|
||
text_area_tag("value_#{key.key}", original_value, :rows => row_count == 0 ? 1 : row_count,
|
||
:class => ['span5'], :'data-property' => 'value', :disabled => true) +
|
||
content_tag(:span, :class => "help-inline") { diagnostic_helper }
|
||
:class => ['col-md-5'], :'data-property' => 'value', :disabled => true) +
|
||
content_tag(:span, :class => "help-block") { diagnostic_helper }
|
||
end
|
||
end
|
||
|
||
... | ... | |
end
|
||
end
|
||
|
||
content_tag :div, :class => ['control-group', 'condensed'] + diagnostic_class do
|
||
content_tag :div, :class => ['form-group', 'condensed'] + diagnostic_class do
|
||
row_count = original_value.to_s.lines.count rescue 1
|
||
text_area_tag("value_#{key.key}", original_value, :rows => row_count == 0 ? 1 : row_count,
|
||
:class => ['span5'], :'data-property' => 'value', :disabled => true) +
|
||
content_tag(:span, :class => "help-inline") { diagnostic_helper }
|
||
:class => ['col-md-5'], :'data-property' => 'value', :disabled => true) +
|
||
content_tag(:span, :class => "help-block") { diagnostic_helper }
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Fixes #3811 updating to bootstrap 3