Project

General

Profile

« Previous | Next » 

Revision b3ac878a

Added by Tomer Brisker over 8 years ago

Fixes #11466, #11462 - Improve layout of textareas

View differences:

app/views/common_parameters/_parent_parameter.html.erb
<div class="fields">
<% @hostgroup.ancestors.map(&:group_parameters).flatten.each_with_index do |parameter, i| %>
<% next if @hostgroup.group_parameters.map(&:name).include? parameter.name %>
<table class="row">
<thead>
<table class="table">
<thead>
<tr>
<th class='col-md-4'><%= _("Name") %></th>
<th class='col-md-8'><%= _("Value") %></th>
</tr>
</thead>
</thead>
<% @hostgroup.ancestors.map(&:group_parameters).flatten.each_with_index do |parameter, i| %>
<% next if @hostgroup.group_parameters.map(&:name).include? parameter.name %>
<tr>
<td class="col-md-4">
<td>
<%= text_field_tag("parent_parameter_#{i}_key", '', :class => "form-control", :placeholder => parameter.name) %>
</td>
<td class="col-md-8">
<%= text_area_tag("parent_parameter_#{i}_value", '', :class => "form-control no-stretch", :rows => 1, :placeholder => parameter.value) %>
<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>
</td>
</tr>
</table>
<% end %>
<% end %>
</table>
</div>

Also available in: Unified diff