schrodingersbox/meter_cat

View on GitHub
app/views/meter_cat/meters/_form.html.erb

Summary

Maintainability
Test Coverage
<%= form_tag('', :method => :get) do %>
    <p>
        <%= label_tag(:names, t(:names, :scope => :meter_cat)) %>
        <%= select_tag(:names, options_for_select(all_names, names), :multiple => true, :size => all_names.size) %>
    </p>

    <p>
        <%= label_tag(:date, t(:date, :scope => :meter_cat)) %>
        <%= select_date(date, :prefix => :date, :order => [ :month, :day, :year ]) %>
    </p>

    <p>
        <%= label_tag(:days, t(:days, :scope => :meter_cat)) %>
        <%= text_field_tag(:days, days, :size => 4) %>
    </p>

    <p>
        <%= label_tag(:format, t(:format, :scope => :meter_cat)) %>
        <%= radio_button_tag(:format, 'html', true) %>
        <%= t(:html, :scope => :meter_cat) %>
        <%= radio_button_tag(:format, 'csv')  %>
        <%= t(:csv, :scope => :meter_cat) %>
    </p>

      <%= submit_tag(t(:search, :scope => :meter_cat)) %>
<% end %>