Commit 59fadecd by aagusti

perbaikan menu button api

1 parent 3202f892
......@@ -73,9 +73,9 @@ class BaseApi(object):
row.permissions):
continue
buttons.append(Button(row.kode, title=row.nama, type="button",
value=row.url, icon=row.icon,
attributes=dict(method=row.url)))
buttons.append(Button(row.kode, title=row.title, type="button",
value=row.url, icon=row.icon,))
# attributes=dict(method=row.url)))
return tuple(buttons)
def update_headers(self, headers):
......
......@@ -27,6 +27,7 @@ class Menus(Base, NamaModel):
class_name = Column(String(256))
need_login = Column(SmallInteger, server_default="1")
permissions = Column(String(128), server_default="")
title = Column(String(256))
children = relationship(
"Menus", backref=backref('parent', remote_side=[id]))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!