18F/identity-dashboard

View on GitHub
app/views/service_config_wizard/_radio_collection.html.erb

Summary

Maintainability
Test Coverage
<%# expected locals:
  [Method] form such that form is a valid instance of wizard_form
  [Symbol] db_fieldname such that the database has an associated column
  [Hash] inputs hash where key is the label and value is the input value
%>
<%= form.collection_radio_buttons(db_fieldname,
                                  inputs,
                                  :last, :first,
                                  item_wrapper_tag: :ul,
                                  item_wrapper_class: "usa-input-list") do |b| %>
  <li>
    <%= b.radio_button(class: "usa-radio__input") %>
    <%= b.label(class: "usa-radio__label")%>
  </li>
<% end %>