<%= select f, :mode, [ {gettext("Total"), :total}, {gettext("Per kWh"), :per_kwh}, {gettext("Per Minute"), :per_minute} ] %>
<%= text_input f, :cost, class: "input", type: :number, inputmode: :decimal, step: 0.01, placeholder: gettext("Enter charge cost"), autofocus: true %>
<%= error_tag(f, :cost) %>