Skip to content

Commit

Permalink
Merge pull request #181 from scientist-softserv/i162-hide-pdf-form-fi…
Browse files Browse the repository at this point in the history
…elds

🐛 Hide PDF form fields on descriptions tab
  • Loading branch information
kirkkwang authored Nov 16, 2023
2 parents 77b9c0b + 2f88bc3 commit 85e73f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/records/edit_fields/_default.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<%# OVERRIDE: HydraEditor 5.0.5 to support hidden fields %>
<% return if f.object.try(:hidden?, key) %>

<% if f.object.multiple? key %>
<%= f.input key, as: :multi_value, input_html: { class: 'form-control' }, required: f.object.required?(key) %>
<% else %>
<%= f.input key, required: f.object.required?(key) %>
<% end %>

0 comments on commit 85e73f7

Please sign in to comment.