Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lisa Casino
slapos.core
Commits
da6a02ed
Commit
da6a02ed
authored
Jan 18, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Add gadget for show download Link on Invoice List
parent
f8109ef7
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
708 additions
and
3 deletions
+708
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
..._page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
+14
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
...page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_html.html
..._page_module/rjs_gadget_slapos_invoice_printout_html.html
+16
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_html.xml
...b_page_module/rjs_gadget_slapos_invoice_printout_html.xml
+324
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_js.js
.../web_page_module/rjs_gadget_slapos_invoice_printout_js.js
+28
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_js.xml
...web_page_module/rjs_gadget_slapos_invoice_printout_js.xml
+320
-0
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
...jio/bt/template_keep_last_workflow_history_only_path_list
+2
-0
master/bt5/slapos_jio/bt/template_path_list
master/bt5/slapos_jio/bt/template_path_list
+2
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.js
View file @
da6a02ed
...
...
@@ -36,6 +36,19 @@
title
:
"
Status Date
"
,
type
:
"
DateTimeField
"
};
}
if
(
1
||
(
result
.
data
.
rows
[
i
].
hasOwnProperty
(
"
id
"
)))
{
value
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
download
=
{
css_class
:
""
,
description
:
"
Download Invoice
"
,
hidden
:
0
,
"
default
"
:
{
jio_key
:
value
},
key
:
"
download
"
,
url
:
"
gadget_slapos_invoice_printout.html
"
,
title
:
"
Download
"
,
type
:
"
GadgetField
"
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
...
...
@@ -73,7 +86,7 @@
[
'
title
'
,
'
Title
'
],
[
'
start_date
'
,
'
Date
'
],
[
'
total_price
'
,
'
Price
'
],
[
'
translated_simulation_state_title
'
,
'
State
'
],
[
'
translated_simulation_state_title
'
,
'
Payment
'
],
[
'
download
'
,
'
Download
'
]
];
return
form_list
.
render
({
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_invoice_list_js.xml
View file @
da6a02ed
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
2.62908.46353.64494
</string>
</value>
<value>
<string>
96
4.59121.50434.9079
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
151
4389653.92
</float>
<float>
151
6299992.78
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_html.html
0 → 100644
View file @
da6a02ed
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Background
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_slapos_invoice_printout.js"
></script>
<body>
<button
data-i18n=
"loading"
type=
"submit"
class=
"responsive ui-btn ui-icon-spinner ui-icon-spin ui-btn-icon-center ui-disabled"
style=
"border:none;"
>
loading
</button>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_html.xml
0 → 100644
View file @
da6a02ed
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_js.js
0 → 100644
View file @
da6a02ed
/*globals console, window, rJS, RSVP, loopEventListener, i18n, $*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
gadget_klass
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareMethod
(
"
getContent
"
,
function
()
{
return
{};
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
return
gadget
.
getElement
()
.
push
(
function
(
element
)
{
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
hateoas_url
)
{
var
link
=
"
<a href=
"
+
hateoas_url
+
"
/
"
+
options
.
value
.
jio_key
+
"
/SaleInvoiceTransaction_viewSlapOSPrintout> <img src='pdf_icon.png'></img> </a>
"
;
element
.
innerHTML
=
link
;
return
element
;
});
});
});
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_invoice_printout_js.xml
0 → 100644
View file @
da6a02ed
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
View file @
da6a02ed
...
...
@@ -128,5 +128,7 @@ web_page_module/rjs_tv4_min_js
web_page_module/rjs_vkbeautify_js
web_page_module/rjs_gadget_erp5_page_slap_upgrade_decision_view_js
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js
web_page_module/rjs_gadget_slapos_invoice_printout_js
web_page_module/rjs_gadget_slapos_invoice_printout_html
web_site_module/hostingjs
web_site_module/hostingjs/**
\ No newline at end of file
master/bt5/slapos_jio/bt/template_path_list
View file @
da6a02ed
...
...
@@ -116,6 +116,8 @@ web_page_module/rjs_gadget_slapos_installation_status_html
web_page_module/rjs_gadget_slapos_installation_status_js
web_page_module/rjs_gadget_slapos_instance_status_html
web_page_module/rjs_gadget_slapos_instance_status_js
web_page_module/rjs_gadget_slapos_invoice_printout_html
web_page_module/rjs_gadget_slapos_invoice_printout_js
web_page_module/rjs_gadget_slapos_network_status_html
web_page_module/rjs_gadget_slapos_network_status_js
web_page_module/rjs_gadget_slapos_panel_html
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment