sul-dlss/argo

View on GitHub
app/components/manage_release/collection_form_component.html.erb

Summary

Maintainability
Test Coverage
<div class='mb-3'>
  <label>What should be released/withdrawn?</label>
  <div class='radio'>
    <label class='radio-inline'>
      <%= form.radio_button(:what, 'collection', checked: true) %>
      This collection and all its members*
    </label>
    <label class='radio-inline'>
      <%= form.radio_button(:what, 'self') %>
      Only this collection description but not any of its members
    </label>
  </div>
</div>
<div class='mb-3'>
  <label>Should it be released or withdrawn?</label>
  <div class='radio'>
    <label class='radio-inline'>
      <%= form.radio_button(:tag, true, checked: true) %>
      Release it
    </label>
    <label class='radio-inline'>
      <%= form.radio_button(:tag, false) %>
      Do not release it (withdraw)
    </label>
  </div>
</div>
<p class='form-text'>* Any members that have their own overriding release information will not be affected</p>
<div class='mb-3'>
  <%= form.select :to, Constants::RELEASE_TARGETS, {}, class: 'form-select' %>
</div>
<%= form.hidden_field('who', value: current_user.sunetid) %>