Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c938662
authored
Dec 11, 2024
by
Ari Agung Prasetiyo
Committed by
Ari Agung Prasetiyo
Dec 11, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update filter range tanggal detable
1 parent
9097cc10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
opensipkd/detable/detable.py
opensipkd/detable/detable.py
View file @
3c93866
...
...
@@ -407,6 +407,20 @@ class DeTable(field.Field):
elif
isinstance
(
f
.
typ
,
colander
.
Date
):
html
+=
f
'<div class="form-group" {txt}>'
html
+=
f
'<label class="form-label" style="font-size:12px">{f.title}</label>'
html
+=
f
'<div class="input-group input-daterange" style="padding: 3px 0px 7px !important;">'
html
+=
f
'<input type="date" class="form-control {self.tableid}-control-filter hasDatePicker"'
html
+=
f
'data-index={field_index} placeholder="{f.title} Awal"'
html
+=
f
'name="{col_id}" id="{col_id}-min"/>'
html
+=
f
'<div class="input-group-addon">-</div>'
html
+=
f
'<input type="date" class="form-control {self.tableid}-control-filter hasDatePicker"'
html
+=
f
'data-index={field_index} placeholder="{f.title} Akhir" '
html
+=
f
'name="{col_id}" id="{col_id}-max" /></span>'
html
+=
f
'</div>'
html
+=
f
'</div>'
"""
awal
html += f'<div class="form-group" {txt}>'
html += f'<div class="input-group">'
html += f'<span class="input-group-addon">{f.title}</span>'
html += f'<span class="input-group-addon"><input type="date" class="form-control {self.tableid}-control-filter hasDatePicker"'
...
...
@@ -417,6 +431,8 @@ class DeTable(field.Field):
html += f'name="{col_id}" id="{col_id}-max" /></span>'
html += f'</div>'
html += f'</div>'
"""
# html += """
# <script type="text/javascript">
...
...
Write
Preview
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