Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
vanisha
/
log
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4025cf2a
authored
2023-06-02 11:17:57 +0530
by
vanisha
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
date filter done.
1 parent
324da609
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
templates/cron_logs_view.mustache
templates/cron_logs_view.mustache
View file @
4025cf2
...
...
@@ -9,22 +9,18 @@
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-md-4 m-b-3"
>
<div
class=
"input-group mb-3"
>
<div
class=
"input-group-prepend"
style=
"display: block;padding: 10px;text-align: justify;width: 25em;"
>
<label
for=
"date_filter"
>
Date
</label>
<input
type=
"date"
id=
"date_filter"
class=
"form-control"
aria-label=
"Default"
aria-describedby=
"date_filter"
>
<span
id=
"date_filter_div"
></span>
</div>
<div
id=
"date_filter_error_div"
></div>
</div>
<div
class=
"col-md-4 m-b-3"
>
<div>
<div
class=
"input-group-prepend"
style=
"display: block;padding: 10px;text-align: justify;width: 25em;margin-top: 30px;"
>
<button
id=
"filter_logs"
class=
"btn btn-primary"
type=
"button"
title=
"Filter"
>
Filter
<span
class=
"icon-stack"
><i
style=
"line-height: 0.5em;"
class=
"icon-filter icon-stack-base"
aria-hidden=
"true"
></i>
<i
style=
"line-height: 0.2em;"
class=
"icon-add"
></i></span></button>
</div>
</div>
</div>
</div>
<div
class=
"container"
>
...
...
@@ -60,19 +56,19 @@ var log_DataTable = "";
]
});
$
(
'#
view_slots_filter'
).
click
(
function
()
{
$
(
'#
filter_logs'
).
click
(
function
()
{
var
date
=
$
(
"#date_filter"
).
val
();
if
((
date
==
''
))
{
var
alert_message
=
'<p style="color: red;">*
Please select date filter
.</p>'
;
if
((
'#date_filter_
error_
div'
).
length
!=
0
)
{
$
(
'#date_filter_
error_
div'
).
empty
();
var
alert_message
=
'<p style="color: red;">*
Date is mandatory
.</p>'
;
if
((
'#date_filter_div'
).
length
!=
0
)
{
$
(
'#date_filter_div'
).
empty
();
}
$
(
'#date_filter_
error_
div'
).
append
(
alert_message
);
$
(
'#date_filter_div'
).
append
(
alert_message
);
}
else
{
if
((
'#date_filter_
error_
div'
).
length
!=
0
)
{
$
(
'#date_filter_
error_
div'
).
empty
();
if
((
'#date_filter_div'
).
length
!=
0
)
{
$
(
'#date_filter_div'
).
empty
();
}
$
.
ajax
({
method
:
"GET"
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment