Revision bf4a13d3
Added by Walden Raines over 10 years ago
app/views/common_parameters/_parameter.html.erb | ||
---|---|---|
<div class="fields">
|
||
<div class="control-group <%= 'error' if f.object.errors.any? %>">
|
||
<%= content_tag(:input, '', :class => "span2", :disabled => true, :value => _('Global'), :type=> :text ) if controller_name =~ /(host|hostgroup)/ %>
|
||
<%= f.text_field(:name, :class => "span2", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %>
|
||
<%= f.text_area(:value, :class => "span5", :rows => line_count(f, :value), :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value")) %>
|
||
<span class="help-inline">
|
||
<div class="form-group <%= 'error' if f.object.errors.any? %>">
|
||
<%= content_tag(:input, '', :class => "col-md-2", :disabled => true, :value => _('Global'), :type=> :text ) if controller_name =~ /(host|hostgroup)/ %>
|
||
<%= f.text_field(:name, :class => "col-md-2", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %>
|
||
<%= f.text_area(:value, :class => "col-md-5", :rows => line_count(f, :value), :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Value")) %>
|
||
<span class="help-block">
|
||
<%= link_to_remove_fields("remove", f) if authorized_via_my_scope("host_editing", "destroy_params") %>
|
||
</span>
|
||
<span class="help-block">
|
Also available in: Unified diff
Fixes #3811 updating to bootstrap 3