Project

General

Profile

Download (781 Bytes) Statistics
| Branch: | Tag: | Revision:
e14b6968 Daniel Lobato
<div class="fields">
<% @hostgroup.ancestors.map(&:group_parameters).flatten.each_with_index do |parameter, i| %>
e77dd577 Shimon Shtein
<% next if @hostgroup.group_parameters.map(&:name).include? parameter.name %>
<table class="row">
5b3879ff amirfefer
<thead>
e77dd577 Shimon Shtein
<tr>
5b3879ff amirfefer
<th class='col-md-4'><%= _("Name") %></th>
<th class='col-md-8'><%= _("Value") %></th>
</tr>
</thead>
<tr>
<td class="col-md-4">
e77dd577 Shimon Shtein
<%= text_field_tag("parent_parameter_#{i}_key", '', :class => "form-control", :placeholder => parameter.name) %>
</td>
5b3879ff amirfefer
<td class="col-md-8">
e77dd577 Shimon Shtein
<%= text_area_tag("parent_parameter_#{i}_value", '', :class => "form-control", :rows => 1, :placeholder => parameter.value) %>
</td>
</tr>
</table>
e14b6968 Daniel Lobato
<% end %>
</div>