Skip to content

Commit

Permalink
remove the hardcoded hasCreator and publisher inputs in submission from
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jul 28, 2023
1 parent f88e8d1 commit ce7dae5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/views/submissions/_form_content.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,9 @@
= attribute_form_group_container('location', required: true) do
= render partial: 'submissions/submission_location_form'

%div#key-properties-card.mt-4.agents-inputs
%div#key-properties-card.mt-4
= metadata_section('key-properties', 'Key properties', collapsed: false) do
= form_group_attribute("URI", required: true)
= form_group_attribute("identifier", required: true)
= attribute_form_group_container("hasCreator", required: true) do
= render NestedAgentSearchInputComponent.new(agents: @submission.hasCreator , agent_type: 'person', name_prefix: object_name+'[hasCreator]',
parent_id: '')
= attribute_form_group_container("publisher", required: true) do
= render NestedAgentSearchInputComponent.new(agents: @submission.publisher , agent_type: '', name_prefix: object_name+'[publisher]',
parent_id: '')

= form_group_attribute("deprecated")
= form_group_attribute("hasOntologySyntax") do
%p
Expand Down

0 comments on commit ce7dae5

Please sign in to comment.