Sha256: 69f72f1a682ca52eab815c0e1bb7c7649e191fce98caab88d5443c774760bdaf

Contents?: true

Size: 488 Bytes

Versions: 11

Compression:

Stored size: 488 Bytes

Contents

<%= form_for @trend do |f| %>
  <%= base_errors_for @trend %>
  <% types = trendable_types %>
  <%= selectable_f f, :trendable_type, types, { }, :place_holder => _('Please Select'), :onchange => 'tfm.trends.trendTypeSelected(this)' %>
  <%= select_f(f, :trendable_id, FactName.no_timestamp_fact, :id, :name, { :include_blank => true }, :disabled => types.first[1] != 'FactName') %>
  <%= text_f f, :name, :disabled => types.first[1] != 'FactName' %>
  <%= submit_or_cancel f %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_statistics-2.1.0 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-2.0.1 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-2.0.0 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-1.2.0 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-1.1.1 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-1.1.0 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-1.0.0 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-0.1.3 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-0.1.2 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-0.1.1 app/views/foreman_statistics/trends/_form.html.erb
foreman_statistics-0.1.0 app/views/foreman_statistics/trends/_form.html.erb