BathHacked/energy-sparks

View on GitHub
app/views/admin/amr_data_feed_configs/edit.html.erb

Summary

Maintainability
Test Coverage
<h1><%= @configuration.description %></h1>

<%= simple_form_for [:admin, @configuration] do |f| %>
  <%= f.input :description, as: :string, hint: 'A human-readable name for the configuration' %>
  <%= f.input :notes, as: :rich_text_area, label: 'Notes',
                      hint: 'Provide additional notes about when the configuration is used' %>
  <%= f.input :import_warning_days,
              hint: 'This is the number of days after which meter data using this configuration will be considered to be running behing. Used to drive admin import notification emails' %>
  <%= f.input :missing_readings_limit,
              hint: 'This is the maximum number of missing data points allowed in a day, above which the entire day will be ignored (without reporting). For row per reading formats this will currently always be set to 1 unless a number is configured here.' %>
  <%= f.submit 'Update', class: 'btn' %>
<% end %>