Project

General

Profile

Download (1.01 KB) Statistics
| Branch: | Tag: | Revision:
<table class="table table-condensed" id="inherited_parameters">
<thead>
<tr>
<th class='col-md-3'><%= _("Name") %></th>
<th class='col-md-8'><%= _("Value") %></th>
<th><%= _('Actions') %></th>
</tr>
</thead>
<% if inherited_parameters.present? %>
<tbody>
<% keys = inherited_parameters.keys.sort %>
<% keys.each do |name| %>
<tr class="<%="override-param" if @host.host_parameters.map(&:name).include?(name)%>">
<td><%= content_tag :span, name, :id => "name_#{name}"%>
</td>
<td><%= parameter_value_field inherited_parameters[name] %></td>
<td>
<%= link_to_function(_("override"), "override_param(this)", :title => _("Override this value"),
:'data-tag' => 'override', :class => "btn btn-default") if authorized_via_my_scope("host_editing", "create_params") && !@host.host_parameters.map(&:name).include?(name) %>
</td>
</tr>
<% end %>
</tbody>
<% end %>
</table>
(2-2/11)