diff --git a/hyrax/app/assets/stylesheets/rdms.scss b/hyrax/app/assets/stylesheets/rdms.scss index fff5c32caee8b741c26e67394374f225bb83aac2..3f339811233122220bceb429986bee21e3caa122 100644 --- a/hyrax/app/assets/stylesheets/rdms.scss +++ b/hyrax/app/assets/stylesheets/rdms.scss @@ -250,4 +250,8 @@ form .field-wrapper label[required="required"]::after { #documents .table { margin-bottom: 50px; +} + +.location-section .listing li .remove{ + display: block !important; } \ No newline at end of file diff --git a/hyrax/app/views/records/edit_fields/_based_near.html.erb b/hyrax/app/views/records/edit_fields/_based_near.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..3ab5dc60e57b8911c6b20d041a8185377976578c --- /dev/null +++ b/hyrax/app/views/records/edit_fields/_based_near.html.erb @@ -0,0 +1,14 @@ +<div class="location-section"> + <%= f.input key, + as: :controlled_vocabulary, + placeholder: 'Search for a location', + input_html: { + class: 'form-control', + data: { 'autocomplete-url' => "/authorities/search/geonames", + 'autocomplete' => key } + }, + ### Required for the ControlledVocabulary javascript: + wrapper_html: { data: { 'autocomplete-url' => "/authorities/search/geonames", + 'field-name' => key }}, + required: f.object.required?(key) %> +</div> \ No newline at end of file