Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
1a8f4cf9
Commit
1a8f4cf9
authored
2 years ago
by
Kapil Patel
Browse files
Options
Downloads
Patches
Plain Diff
remove button show also for first location
parent
326a6c60
Branches
bug/fix-remove-button-for-location
No related tags found
1 merge request
!142
Draft: Remove button show also for first location
Pipeline
#6738
failed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hyrax/app/assets/stylesheets/rdms.scss
+4
-0
4 additions, 0 deletions
hyrax/app/assets/stylesheets/rdms.scss
hyrax/app/views/records/edit_fields/_based_near.html.erb
+14
-0
14 additions, 0 deletions
hyrax/app/views/records/edit_fields/_based_near.html.erb
with
18 additions
and
0 deletions
hyrax/app/assets/stylesheets/rdms.scss
+
4
−
0
View file @
1a8f4cf9
...
@@ -250,4 +250,8 @@ form .field-wrapper label[required="required"]::after {
...
@@ -250,4 +250,8 @@ form .field-wrapper label[required="required"]::after {
#documents
.table
{
#documents
.table
{
margin-bottom
:
50px
;
margin-bottom
:
50px
;
}
.location-section
.listing
li
.remove
{
display
:
block
!
important
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
hyrax/app/views/records/edit_fields/_based_near.html.erb
0 → 100644
+
14
−
0
View file @
1a8f4cf9
<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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment