From edae952e7e21eff7a2807deea70fc4001700b567 Mon Sep 17 00:00:00 2001 From: Xiaoming Hu Date: Thu, 12 Dec 2024 10:52:44 +0100 Subject: [PATCH 1/2] add the ID attribute for each extended metadata attribute for Javascript code to select --- app/views/extended_metadata/_extended_metadata_fields.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/extended_metadata/_extended_metadata_fields.html.erb b/app/views/extended_metadata/_extended_metadata_fields.html.erb index 15721b5b78..7841dc37d8 100644 --- a/app/views/extended_metadata/_extended_metadata_fields.html.erb +++ b/app/views/extended_metadata/_extended_metadata_fields.html.erb @@ -1,5 +1,5 @@ <% extended_metadata_type.extended_metadata_attributes.each do |attribute| %> -
+
<%= extended_metadata_form_field_for_attribute(attribute,resource, parent_resource) %> <% unless attribute.description.nil? %> <%= extended_metadata_attribute_description(attribute.description) %> From d93d270f2ff37a7eb5288a7d4197830e04fd1c70 Mon Sep 17 00:00:00 2001 From: Xiaoming Hu Date: Thu, 19 Dec 2024 15:56:32 +0100 Subject: [PATCH 2/2] rename the id of the wrapper div --- app/views/extended_metadata/_extended_metadata_fields.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/extended_metadata/_extended_metadata_fields.html.erb b/app/views/extended_metadata/_extended_metadata_fields.html.erb index 7841dc37d8..673da078a1 100644 --- a/app/views/extended_metadata/_extended_metadata_fields.html.erb +++ b/app/views/extended_metadata/_extended_metadata_fields.html.erb @@ -1,5 +1,5 @@ <% extended_metadata_type.extended_metadata_attributes.each do |attribute| %> -
+
" class="form-group"> <%= extended_metadata_form_field_for_attribute(attribute,resource, parent_resource) %> <% unless attribute.description.nil? %> <%= extended_metadata_attribute_description(attribute.description) %>