Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
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 f4684762
authored
Oct 12, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perabaikan button proses
1 parent
154aa7d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
opensipkd/tools/__init__.py
opensipkd/tools/buttons.py
opensipkd/tools/__init__.py
View file @
f468476
...
...
@@ -664,13 +664,18 @@ class FixLength(object):
return
v
def
get_spliter
(
self
,
ch
):
"""
2022-09-12 Perbaikan return jika ch is none
"""
s
=
''
for
name
,
size
,
typ
in
self
.
struct
:
v
=
self
.
get_value
(
name
,
typ
)
pad_func
=
typ
==
'N'
and
right
or
left
s
+=
pad_func
(
v
,
size
)
s
+=
ch
return
s
[:
-
1
]
if
ch
:
return
s
[:
-
1
]
return
s
def
get_dotted
(
self
):
return
self
.
get_spliter
(
'.'
)
...
...
opensipkd/tools/buttons.py
View file @
f468476
...
...
@@ -3,6 +3,7 @@ from pyramid.i18n import TranslationStringFactory
_
=
TranslationStringFactory
(
'button'
)
import
pyramid.i18n
as
i18
btn_add
=
Button
(
'add'
,
title
=
_
(
'Add'
),
css_class
=
"btn-success"
)
btn_view
=
Button
(
'view'
,
title
=
_
(
'View'
),
css_class
=
"btn-info"
)
btn_edit
=
Button
(
'edit'
,
title
=
_
(
'Edit'
),
css_class
=
"btn-success"
)
...
...
@@ -14,6 +15,11 @@ btn_filter = Button('filter', title=_('Filter'), css_class="btn-info")
btn_cancel
=
Button
(
'cancel'
,
title
=
_
(
'Cancel'
),
css_class
=
"btn-warning"
)
btn_reset
=
Button
(
'reset'
,
title
=
_
(
'Reset'
),
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_recall
=
Button
(
'recall'
,
title
=
_
(
'Recall'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_draft
=
Button
(
'draft'
,
title
=
_
(
'Draft'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_close
=
Button
(
'close'
,
title
=
_
(
'Close'
),
css_class
=
"btn-danger"
)
btn_print
=
Button
(
'print'
,
title
=
_
(
'Print'
),
css_class
=
"btn-info"
,
type
=
"button"
)
...
...
@@ -49,8 +55,7 @@ btn_next = Button('next', title=_('Next'), css_class="btn-success")
btn_send
=
Button
(
'send'
,
title
=
_
(
'Send'
),
css_class
=
"btn-success"
)
btn_search
=
Button
(
'search'
,
title
=
_
(
'Search'
),
css_class
=
"btn-success"
)
btn_proses
=
Button
(
'proses'
,
title
=
_
(
'Process'
),
css_class
=
"btn-info"
,
type
=
"button"
)
btn_proses
=
Button
(
'proses'
,
title
=
_
(
'Process'
),
css_class
=
"btn-info"
)
inquiry_button
=
[
btn_inquiry
,
btn_cancel
]
payment_button
=
[
btn_payment
,
btn_cancel
]
...
...
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