Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Commits
9075802a
Commit
9075802a
authored
2 weeks ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
fix: Display of form for new observation
parent
9c7daf23
Branches
develop
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/templates/observationForm.ftl
+6
-6
6 additions, 6 deletions
src/main/webapp/templates/observationForm.ftl
with
6 additions
and
6 deletions
src/main/webapp/templates/observationForm.ftl
+
6
−
6
View file @
9075802a
...
...
@@ -87,7 +87,7 @@
</#
if
>
<#
if
observation
.observationTimeSeries
?
has_content
>
displayObservationTimeSeriesInfo
()
displayObservationTimeSeriesInfo
(
"${observation.cropOrganismId}"
,
"${observation.organismId}"
,
"${observation.locationPointOfInterestId}"
)
</#
if
>
//
A
ctivating
file
selection
...
...
@@ -143,14 +143,14 @@
*
Crop, pest and location should not be editable for observations belonging to time series. We avoid displaying
*
form elements in these cases, and rather display the values statically.
*
/
function displayObservationTimeSeriesInfo()
{
document
.getElementById
(
"cropDisplayName"
)
.innerHTML
=
nameForCropOrganismId
(
"${observation.
cropOrganismId
}"
)
;
document
.getElementById
(
"pestDisplayName"
)
.innerHTML
=
nameForOrganismId
(
"${observation.
organismId
}"
)
;
function displayObservationTimeSeriesInfo(
cropOrganismId, organismId, locationPointOfInterestId
)
{
document
.getElementById
(
"cropDisplayName"
)
.innerHTML
=
nameForCropOrganismId
(
cropOrganismId
)
;
document
.getElementById
(
"pestDisplayName"
)
.innerHTML
=
nameForOrganismId
(
organismId
)
;
fetchPOIs
(
function
(
allPois
)
{
const
locationName
=
nameForLocationPointOfInterestId
(
"${observation.
locationPointOfInterestId
}"
,
allPois
)
;
const
locationName
=
nameForLocationPointOfInterestId
(
locationPointOfInterestId
,
allPois
)
;
document
.getElementById
(
"locationDisplayName"
)
.innerHTML
=
locationName
||
null
;
})
;
initLocationMap
(
"${observation.
locationPointOfInterestId
}"
)
initLocationMap
(
locationPointOfInterestId
)
}
function getDataSchema(organismId, organizationId)
{
...
...
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