codeforamerica/michigan-benefits

View on GitHub
app/views/introduction_change_office_location/edit.html.erb

Summary

Maintainability
Test Coverage
<% content_for :header_title, "Office Submission" %>

<div class="form-card">
  <header class="form-card__header">
    <div class="form-card__title">
      <%= t("snap.introduction_change_office_location.edit.title") %>
    </div>
  </header>

  <div class="form-card__content">
    <%= form_for @step, as: :step, builder: MbFormBuilder, url: current_path, method: :put do |f| %>
      <%= f.mb_radio_set :selected_office_location,
        label_text: t("snap.introduction_change_office_location.edit.title"),
        collection: [
          { value: "clio", label: "Clio Road" },
          { value: "union", label: "Union Street" },
        ],
        legend_class: "sr-only" %>
      <%= render 'shared/next_step' %>
    <% end %>
</div>
</div>