foreman/app/views/lookup_keys/_values.html.erb @ 09ce8a63
09ce8a63 | Ori Rabin | <table class="table table-condensed <%= 'hidden' unless f.object.lookup_values.present? %>">
|
|
<thead>
|
|||
<tr>
|
|||
<th colspan='2' class='col-md-6'><%= _('Attribute type') %>
|
|||
<span class="help-inline">
|
|||
<%= popover("", _("Matcher is a combination of an attribute and its value, if they match, the value below would be provided.<br> You may use any attribute Foreman knows about, such as facts etc for example: <code> domain = example.com </code> or <code> is_virtual = true</code>."),
|
|||
:title => _("Explain matchers")).html_safe %>
|
|||
</span></th>
|
|||
<th class='col-md-4'><%= _('Value') %></th>
|
|||
<th></th>
|
|||
<% if is_param %>
|
|||
<th class='col-md-2'><%= _('Use Puppet default') %>
|
|||
<span class="help-inline"> <%= use_puppet_default_help() %></span>
|
|||
</th>
|
|||
<% end %>
|
|||
<th></th>
|
|||
</tr>
|
|||
</thead>
|
|||
<tbody>
|
|||
<%= f.fields_for :lookup_values do |lookup_values| %>
|
|||
<%= render 'lookup_keys/value', :f => lookup_values, :is_param => is_param, :is_template => false %>
|
|||
<% end %>
|
|||
</tbody>
|
|||
</table>
|
|||
<%= new_child_fields_template(f, :lookup_values, { :partial => "lookup_keys/value", :form_builder_attrs => { :is_param => is_param, :is_template => true } }) %>
|
|||
<%= add_child_link '+ ' + _("Add Matcher"), :lookup_values, { :title => _('add a new matcher') } %>
|