Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
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
VIPSWeb
Commits
05927bfb
Commit
05927bfb
authored
8 months ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
feat: Styling updates (mostly)
parent
5e166ce3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
+30
-35
30 additions, 35 deletions
...els/templates/cerealblotchmodels/barleynetblotchform.html
with
30 additions
and
35 deletions
cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
+
30
−
35
View file @
05927bfb
...
...
@@ -23,6 +23,7 @@
{% endcomment %}
{% load i18n %}
{% block title %}{% trans "Barley net blotch" %}{% endblock %}
{% block customCSS %}
<!--[if lte IE 9]>
<style type="text/css">#oldIEWarning{display: block !important;}</style>
...
...
@@ -30,26 +31,25 @@
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://logic.testvips.nibio.no/css/3rdparty/leaflet.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://logic.testvips.nibio.no/css/mapModal.css"
/>
<style
type=
"text/css"
>
<style>
input
#latitude
,
input
#longitude
{
width
:
30%
;
display
:
inline-block
;
margin
:
10px
10px
10px
0
px
;
}
select
#weatherStationId
{
margin
:
10px
10px
10px
0
;
}
select
#weatherStationId
{
width
:
60%
;
display
:
inline-block
;
margin
:
10px
10px
10px
0
px
;
}
.main-label
{
margin
:
10px
10px
10px
0
;
}
.main-label
{
font-size
:
1.8rem
;
font-weight
:
500
!important
;
}
.space
{
}
.space
{
margin-top
:
40px
;
}
</style>
}
</style>
{% endblock %}
{% block content %}
...
...
@@ -73,7 +73,7 @@
<div
class=
"col-md-6"
>
<input
type=
"hidden"
name=
"timeZone"
value=
"Europe/Oslo"
/>
<div
class=
"form-group"
>
<label
class=
"main-label"
for=
"weatherdataType"
>
Jeg vil bruke værdata
</label>
<label
class=
"main-label"
>
Jeg vil bruke værdata
</label>
<div
class=
"radio"
>
<label>
<input
type=
"radio"
name=
"weatherdataType"
id=
"coordinates"
value=
"coordinates"
checked
onchange=
"displayCoordinatesInput()"
>
...
...
@@ -109,34 +109,34 @@
</div>
<div
class=
"form-group"
>
<label
for=
"sowingDate"
>
{% trans "Sowing date" %}
</label>
<input
type=
"date"
name=
"sowingDate"
class=
"form-control"
max=
"{{max_sowing_date|date:'Y-m-d'}}"
onblur=
"validateField(this);"
placeholder=
"Sådato"
/>
<input
type=
"date"
id=
"sowingDate"
name=
"sowingDate"
class=
"form-control"
max=
"{{max_sowing_date|date:'Y-m-d'}}"
onblur=
"validateField(this);"
placeholder=
"Sådato"
/>
<span
class=
"help-block"
id=
"{{ form_id }}_sowingDate_validation"
></span>
</div>
<div
class=
"form-group"
>
<label>
Vekstskifte
</label><br>
<input
type=
"checkbox"
name=
"sameCropAsLastSeason"
/>
Jeg dyrket bygg på samme skifte i fjor
<br/>
<label
for=
"sameCropAsLastSeason"
>
Vekstskifte
</label><br>
<input
type=
"checkbox"
id=
"sameCropAsLastSeason"
name=
"sameCropAsLastSeason"
/>
Jeg dyrket bygg på samme skifte i fjor
<br/>
<span
class=
"help-block"
id=
"{{ form_id }}_sameCropAsLastSeason_validation"
></span>
</div>
<div
class=
"form-group"
>
<label>
Jordarbeiding
</label><br>
<input
type=
"checkbox"
name=
"plowed"
/>
Jeg har pløyd
<br/>
<label
for=
"plowed"
>
Jordarbeiding
</label><br>
<input
type=
"checkbox"
id=
"plowed"
name=
"plowed"
/>
Jeg har pløyd
<br/>
<span
class=
"help-block"
id=
"{{ form_id }}_plowed_validation"
></span>
</div>
</div>
<div
class=
"col-md-6
form-group
"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<label
class=
"main-label"
for=
"observationDate"
>
Observasjonsdato
</label>
<input
type=
"date"
name=
"observationDate"
class=
"form-control"
/>
<label
for=
"observationDate"
class=
"main-label"
for=
"observationDate"
>
Observasjonsdato
</label>
<input
type=
"date"
id=
"observationDate"
name=
"observationDate"
class=
"form-control"
/>
<span
class=
"help-block"
id=
"{{ form_id }}_observationDate_validation"
></span>
</div>
<div
class=
"form-group"
>
<label
for
=
"observationValue"
>
{% trans "
%
Infected leaves" %}
</label>
<input
type=
"number"
name=
"observationValue"
class=
"form-control"
min=
"0"
max=
"100"
/>
<label
for=
"observationValue"
>
{% trans "
%
Infected leaves" %}
</label>
<input
type=
"number"
id=
"observationValue"
name=
"observationValue"
class=
"form-control"
min=
"0"
max=
"100"
/>
<span
class=
"help-block"
id=
"{{ form_id }}_observationValue_validation"
></span>
</div>
<div
class=
"form-group space"
>
<label
class=
"main-label"
for=
"sprayingDate
"
>
Sprøytedato
</label>
<input
type=
"date"
name=
"sprayingDate"
class=
"form-control"
/>
<label
for=
"sprayingDate"
class=
"main-label
"
>
Sprøytedato
</label>
<input
type=
"date"
id=
"sprayingDate"
name=
"sprayingDate"
class=
"form-control"
/>
<span
class=
"help-block"
id=
"{{ form_id }}_sprayingDate_validation"
></span>
</div>
<div
class=
"form-group"
>
...
...
@@ -147,7 +147,7 @@
</div>
<div
class=
"form-group"
>
<label
for=
"preparationDose"
>
og preparatdose (ml/daa)
</label>
<input
type=
"number"
name=
"preparationDose"
class=
"form-control"
/>
<input
type=
"number"
id=
"preparationDose"
name=
"preparationDose"
class=
"form-control"
/>
<span
class=
"help-block"
id=
"{{ form_id }}_preparationDose_validation"
></span>
</div>
...
...
@@ -225,12 +225,8 @@
const
optionIndex
=
Array
.
from
(
selectWeatherstationElement
.
options
).
findIndex
(
option
=>
option
.
value
==
selectedId
);
if
(
optionIndex
!==
-
1
)
{
selectWeatherstationElement
.
selectedIndex
=
optionIndex
;
}
else
{
console
.
error
(
`No matching option found for poi.id=
${
selectedId
}
`
);
}
}
else
{
console
.
info
(
"
New point selected
"
,
poiData
);
}
}
}
}
window
.
openCoordinatesMap
=
()
=>
{
...
...
@@ -280,11 +276,10 @@
poiMapInstance
.
openModal
(
selectedPoiId
);
})
.
catch
(
error
=>
{
console
.
error
(
'
Unable to
open map
'
,
error
);
console
.
error
(
'
Unable to
retrieve weatherstation geojson
'
,
error
);
});
}
window
.
displayWeatherstationInput
=
()
=>
{
document
.
getElementById
(
"
weatherstation
"
).
checked
=
true
;
document
.
getElementById
(
'
input-weatherstation
'
).
style
.
display
=
"
block
"
;
...
...
@@ -542,4 +537,4 @@
});
</script>
{% endblock %}
\ No newline at end of file
{% endblock %}
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