Project

General

Profile

« Previous | Next » 

Revision 2de7832d

Added by Ohad Levy over 10 years ago

fixes #3099 - Adding parameters to locations and organizations

View differences:

app/views/common_parameters/_parameter.html.erb
<div class="fields">
<table class="row">
<tr class="form-group <%= 'error' if f.object.errors.any? %>">
<td class="col-md-3">
<%= content_tag(:input, '', :class => "form-control", :disabled => true, :value => _('Global'), :type=> :text ) if controller_name =~ /(host|hostgroup)/ %>
<% if controller_name =~ /(host|hostgroup)/ %>
<td class="col-md-2">
<%= content_tag(:input, '', :class => "form-control", :disabled => true, :value => _('Global'), :type=> :text ) %>
</td>
<% end %>
<td class="col-md-2">
<%= f.text_field(:name, :class => "form-control", :disabled => (not authorized_via_my_scope("host_editing", "edit_params")), :placeholder => _("Name")) %>
</td>

Also available in: Unified diff