Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b705d457
authored
Jan 07, 2025
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan detable
1 parent
808b8a58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
opensipkd/base/views/base_views.py
opensipkd/detable/detable.py
opensipkd/detable/templates/detable.pt
opensipkd/base/views/base_views.py
View file @
b705d45
...
...
@@ -430,9 +430,8 @@ class BaseView(object):
if
k
in
select_list
.
keys
():
vals
=
select_list
[
k
]
for
r
in
vals
:
if
r
[
0
]
==
res
[
k
]:
res
[
k
]
=
r
[
1
]
""
if
r
and
str
(
r
)
==
str
(
res
[
k
]):
res
[
k
]
=
vals
[
r
]
# for k, v in d.items():
# if k in url and v:
# link = "/".join([self.home, nik_url, v])
...
...
opensipkd/detable/detable.py
View file @
b705d45
...
...
@@ -428,7 +428,7 @@ class DeTable(field.Field):
html
+=
f
'placeholder="{f.title}" {txt}/>'
html
+=
'<option value="">Semua</option>'
if
type
(
wg_select_val
)
==
list
:
wg_select_val
=
dict
(
list
)
wg_select_val
=
dict
(
wg_select_val
)
for
key
in
wg_select_val
:
html
+=
f
'<option value="{key}">{wg_select_val[key]}</option>'
...
...
opensipkd/detable/templates/detable.pt
View file @
b705d45
This diff is collapsed.
Click to expand it.
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