foreman/app/views/common_parameters/_inherited_parameters.html.erb @ bf4a13d3
298756ca | Amos Benari | <table class="table table-condensed" id="inherited_parameters">
|
|
<thead>
|
|||
<tr>
|
|||
bf4a13d3 | Walden Raines | <th class='col-md-3'><%= _("Scope") %></th>
|
|
<th class='col-md-2'><%= _("Name") %></th>
|
|||
<th class='col-md-7'><%= _("Value") %></th>
|
|||
4d4557e9 | Joseph Magen | <th><%= _('Actions') %></th>
|
|
298756ca | Amos Benari | </tr>
|
|
</thead>
|
|||
<tbody>
|
|||
4d4557e9 | Joseph Magen | <% inherited_parameters.keys.sort.each do |name| %>
|
|
298756ca | Amos Benari | <tr>
|
|
bf4a13d3 | Walden Raines | <%= "<td class='col-md-2' rowspan='#{inherited_parameters.size}'>#{_('Global')}</td>".html_safe if name == inherited_parameters.first[0]%>
|
|
<td class='col-md-2'><%= content_tag :span, name, :id=>"name_#{name}", :class => "col-md-2" %></td>
|
|||
<td class='col-md-6'><%= parameter_value_field inherited_parameters[name] %></td>
|
|||
298756ca | Amos Benari | <td>
|
|
9d69fc8f | Dominic Cleal | <%= link_to_function(_("override"), "override_param(this)", :title => _("Override this value"),
|
|
bf4a13d3 | Walden Raines | :'data-tag' => 'override', :class =>"btn btn-default" ) if authorized_via_my_scope("host_editing", "create_params") %>
|
|
298756ca | Amos Benari | </tr>
|
|
4d4557e9 | Joseph Magen | <% end %>
|
|
298756ca | Amos Benari | </tbody>
|
|
</table>
|