Project

General

Profile

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