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
8e7445c5
Commit
8e7445c5
authored
5 years ago
by
Bhabesh Bhabani Mukhopadhyay
Browse files
Options
Downloads
Patches
Plain Diff
JQuery Datepicker and datatable information removed
JQuery Datepicker replaced by html 5 'date' component.
parent
6aa8702a
No related branches found
No related tags found
1 merge request
!7
Eplevikler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cydiapomonella/templates/cydiapomonella/index.html
+27
-13
27 additions, 13 deletions
cydiapomonella/templates/cydiapomonella/index.html
with
27 additions
and
13 deletions
cydiapomonella/templates/cydiapomonella/index.html
+
27
−
13
View file @
8e7445c5
{% extends "base.html" %}
{% load static %}
{% load staticfiles %}
{% comment %}
#
...
...
@@ -48,8 +44,16 @@
{% endblock %}
{% block customCSS %}
<style>
.navbar-default
{
background-color
:
#fff
;
border-color
:
#fff
;
}
</style>
{% endblock %}
{% block customJS %}
{% csrf_token %}
<script
type=
"text/javascript"
>
var
CONST_TIMEZONE
=
'
Europe/Oslo
'
;
var
dateToday
=
new
Date
();
...
...
@@ -62,6 +66,7 @@
var
jsonMeasurdData
=
""
;
$
(
function
(){
document
.
getElementById
(
'
idTxtDateInput
'
).
setAttribute
(
"
max
"
,
JSON
.
stringify
(
dateYesterday
).
substring
(
1
,
11
));
$
(
'
#idTxtDateInput
'
).
removeClass
(
'
hasDatepicker
'
);
});
...
...
@@ -95,6 +100,7 @@
}
/* Date input to get heat sum calculation */
/*
$('#idTxtDateInput').datepicker({
dateFormat: 'yy-mm-dd',
showOn: "both",
...
...
@@ -104,6 +110,13 @@
funDtPickerHeatSum();
}
});
*/
$
(
'
#idTxtDateInput
'
).
change
(
function
(){
funDtPickerHeatSum
();
});
/* On change of drop down for weather stations */
$
(
'
#weatherStationId
'
).
change
(
function
(){
...
...
@@ -135,7 +148,8 @@
jsonHourlyData
=
getAjaxHourlyData
(
jsonParamUrlDataHourly
);
$
(
'
#idTxtDateInput
'
).
datepicker
(
"
setDate
"
,
dateStartDate
);
//$('#idTxtDateInput').datepicker("setDate",dateStartDate);
document
.
querySelector
(
"
#idTxtDateInput
"
).
valueAsDate
=
dateStartDate
;
/*Calling function to calculate and place heatsum value based upon date placed on datepicker*/
funDtPickerHeatSum
();
...
...
@@ -316,7 +330,7 @@
if
(
$
.
trim
(
weatherData
))
{
$
(
'
#idTableWeather
'
).
DataTable
({
"
sDom
"
:
'
<t><"
col-sm-5"i><"
clearfix">
'
,
"
sDom
"
:
'
<t><"clearfix">
'
,
"
lengthMenu
"
:
[[
50
,
-
1
],
[
"
All
"
]],
"
aaData
"
:
weatherData
,
"
aoColumns
"
:
...
...
@@ -491,11 +505,11 @@
{% block content %}
<center>
<div
class=
"
alert alert-info"
role=
"alert"
>
<h
3
>
Calculate the risk of attack by apple wrap
</h
3
>
</div>
</center>
<div
class=
"
col-md-12"
>
<h
1
>
Calculate the risk of attack by apple wrap
</h
1
>
</div>
<div
class=
"container-fluid"
>
<div
class=
"row "
>
...
...
@@ -571,7 +585,7 @@
<div
class=
"form-group form-inline"
>
<label
for=
"nameTxtDateInput"
>
Calculate heat sum from Date:
</label>
<input
id=
"idTxtDateInput"
name=
"nameTxtDateInput"
class=
"
notranslate form-control"
readonly
/>
<input
id=
"idTxtDateInput"
name=
"nameTxtDateInput"
class=
"
form-control"
type=
"date"
placeholder=
"yyyy-mm-dd"
onkeydown=
"return false"
value=
"2020-01-01"
/>
</div>
<!-- button type="submit" class="btn btn-default">Submit</button -->
</form>
...
...
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