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