Sha256: 89375c5d059212506948cce06b2f4e62ba599e49484125e8ef17566519d90c2e
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
<%= javascript 'trends' %> <% title _("Edit Trend %s") @trend.to_label %> <div class="span6"> <% form_tag trend_path, :method => :put do %> <% if @trend.is_a?(FactTrend) %> <table class="table"> <th style="width: 40%"><%= _("Fact Name") %></th><th style="width: 60%"><%= _("Display Name") %></th> <tr> <%= fields_for "trend[]", @trend do |f| %> <td> <%= @trend.fact_name %> </td> <td> <%= f.text_field :name %> </td> <% end %> </tr> </table> <% end %> <table class="table"> <th style="width: 40%">Value</th><th style="width: 60%"><%= _("Display Name") %></th> <% @trend.values.each do |trend| %> <tr> <%= fields_for "trend[]", trend do |f| %> <%= render 'fields', :f => f, :trend => trend %> <% end %> </tr> <% end %> </table> <%= link_to(_("Cancel"), trends_path, :class => "btn") %> <%= submit_tag _("Submit"), :class => "btn-primary btn" %> <% end %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems