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 59fadecd
authored
Aug 06, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan menu button api
1 parent
3202f892
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
opensipkd/base/views/base_views_api.py
opensipkd/models/menus.py
opensipkd/base/views/base_views_api.py
View file @
59fadec
...
@@ -73,9 +73,9 @@ class BaseApi(object):
...
@@ -73,9 +73,9 @@ class BaseApi(object):
row
.
permissions
):
row
.
permissions
):
continue
continue
buttons
.
append
(
Button
(
row
.
kode
,
title
=
row
.
nama
,
type
=
"button"
,
buttons
.
append
(
Button
(
row
.
kode
,
title
=
row
.
title
,
type
=
"button"
,
value
=
row
.
url
,
icon
=
row
.
icon
,
value
=
row
.
url
,
icon
=
row
.
icon
,
))
attributes
=
dict
(
method
=
row
.
url
)))
#
attributes=dict(method=row.url)))
return
tuple
(
buttons
)
return
tuple
(
buttons
)
def
update_headers
(
self
,
headers
):
def
update_headers
(
self
,
headers
):
...
...
opensipkd/models/menus.py
View file @
59fadec
...
@@ -27,6 +27,7 @@ class Menus(Base, NamaModel):
...
@@ -27,6 +27,7 @@ class Menus(Base, NamaModel):
class_name
=
Column
(
String
(
256
))
class_name
=
Column
(
String
(
256
))
need_login
=
Column
(
SmallInteger
,
server_default
=
"1"
)
need_login
=
Column
(
SmallInteger
,
server_default
=
"1"
)
permissions
=
Column
(
String
(
128
),
server_default
=
""
)
permissions
=
Column
(
String
(
128
),
server_default
=
""
)
title
=
Column
(
String
(
256
))
children
=
relationship
(
children
=
relationship
(
"Menus"
,
backref
=
backref
(
'parent'
,
remote_side
=
[
id
]))
"Menus"
,
backref
=
backref
(
'parent'
,
remote_side
=
[
id
]))
...
...
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