<%= form_tag trend_path, :method => :put do %>
<% if @trend.is_a?(ForemanStatistics::FactTrend) %>
<%= _("Fact Name") %> |
<%= _("Display Name") %> |
<%= fields_for "trend[]", @trend do |f| %>
<%= @trend.fact_name %>
|
<%= f.text_field :name %>
|
<% end %>
<% end %>
Value |
<%= _("Display Name") %> |
<% @trend.values.each do |trend| %>
<%= fields_for "trend[]", trend do |f| %>
<%= render 'fields', :f => f, :trend => trend %>
<% end %>
<% end %>
<%= link_to(_("Cancel"), trends_path, :class => "btn btn-default") %>
<%= submit_tag _("Submit"), :class => "btn-primary btn" %>
<% end %>