rubyforgood/casa

View on GitHub
app/components/form/hour_minute_duration_component.html.erb

Summary

Maintainability
Test Coverage
<div class="row input-style-1">
  <div class="col-12 col-md">
    <%= @form.label :duration_hours, "Hour(s)" %>
    <%= @form.number_field :duration_hours,
      min: 0,
      class: "form-control",
      style: "background:white",
      value: @hour_value,
      required: true %>
  </div>
  <div class="col-12 col-md">
    <%= @form.label :duration_minutes, "Minute(s)" %>
    <%= @form.number_field :duration_minutes,
      min: 0,
      class: "form-control",
      style: "background:white",
      value: @minute_value,
      required: true %>
  </div>
</div>