Skip to content

Commit

Permalink
added supplemental field
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAdm committed Aug 6, 2024
1 parent 3b3108b commit d0a8707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/documents/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<% if @document.supplemental == true %>
<%= f.input :usage, label: "Document type", collection: Document.usages.keys.map(&:to_sym), required: true %>
<% else %>
<%= f.hidden_field :supplemental, value: @document.supplemental %>
<%= f.hidden_field :usage, value: :thesis %>
<% end %>

Expand Down

0 comments on commit d0a8707

Please sign in to comment.