UNC-Libraries/hy-c

View on GitHub
app/views/records/edit_fields/_date_other.html.erb

Summary

Maintainability
Test Coverage
<% if f.object.multiple? key %>
  <%= f.input :date_other, as: :multi_value, html5: true, placeholder: "Date Format YYYY-MM-DD",
              input_html: { class: 'date-input', value: f.object.date_other || '' } %>
<% else %>
  <%= f.input :date_other, as: :date, html5: true, placeholder: "Date Format YYYY-MM-DD",
              input_html: { class: 'date-input', value: f.object.date_other || '' } %>
<% end %>