pax_global_header 0000666 0000000 0000000 00000000064 13456342174 0014523 g ustar 00root root 0000000 0000000 52 comment=b0d269b1f6f770be087f2139d81f05953d676c02
erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/ 0000775 0000000 0000000 00000000000 13456342174 0022375 5 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/ 0000775 0000000 0000000 00000000000 13456342174 0023067 5 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/ 0000775 0000000 0000000 00000000000 13456342174 0025605 5 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/ 0000775 0000000 0000000 00000000000 13456342174 0031014 5 ustar 00root root 0000000 0000000 web_page_module/ 0000775 0000000 0000000 00000000000 13456342174 0034053 5 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem gadget_e5g_ecrm_field_listbox_widget_html.html 0000664 0000000 0000000 00000005132 13456342174 0045241 0 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/web_page_module
Listbox Compact Widget
gadget_e5g_ecrm_field_listbox_widget_html.xml 0000664 0000000 0000000 00000024150 13456342174 0045076 0 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/web_page_module
-
_Access_contents_information_Permission
Anonymous
Assignee
Assignor
Associate
Auditor
Manager
Owner
-
_Add_portal_content_Permission
Assignor
Manager
-
_Change_local_roles_Permission
Assignor
Manager
-
_Modify_portal_content_Permission
Manager
-
_View_Permission
Anonymous
Assignee
Assignor
Associate
Auditor
Manager
Owner
-
content_md5
-
content_type
text/html
-
default_reference
gadget_e5g_ecrm_field_listbox_widget.html
-
description
-
id
gadget_e5g_ecrm_field_listbox_widget_html
-
language
en
-
portal_type
Web Page
-
short_title
-
title
Gadget E5G Ecrm Field Listbox Widget
-
version
001
-
workflow_history
AAAAAAAAAAI=
-
data
-
document_publication_workflow
AAAAAAAAAAM=
-
edit_workflow
AAAAAAAAAAQ=
-
processing_status_workflow
AAAAAAAAAAU=
-
action
publish
-
actor
sven
-
comment
-
error_message
-
time
-
validation_state
published
-
action
edit
-
actor
zope
-
comment
-
error_message
-
serial
943.10714.65040.56234
-
state
current
-
time
-
action
detect_converted_file
-
actor
sven
-
comment
-
error_message
-
external_processing_state
converted
-
serial
0.0.0.0
-
time
gadget_e5g_ecrm_field_listbox_widget_js.js 0000664 0000000 0000000 00000013045 13456342174 0044363 0 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/web_page_module /*global window, rJS, RSVP, Handlebars */
/*jslint nomen: true, indent: 2 */
(function (window, rJS, RSVP, Handlebars) {
"use strict";
/////////////////////////////////////////////////////////////////
// api handlebars
/////////////////////////////////////////////////////////////////
// listbox_widget_header = {
// "left_link_list": [
// {"link_title": [string], "link_href": [string]}
// ],
// "listbox_title": [string],
// "right_link_list": [
// {"link_title": [string], "link_href": [string]}
// ]
// }
// listbox_widget_search = {
// "search_title": [string]
// }
// listbox_widget_table = {
// "column_list": [
// {"column_title": [string]}
// ]
// }
// listbox_widget_table_partial = {
// "table_row_list": [{
// "table_cell_list": [
// {{"cell_title": [string], "cell_href": [string]}
// ]
// }]
// }
/////////////////////////////////////////////////////////////////
// templates
/////////////////////////////////////////////////////////////////
var gadget_klass = rJS(window),
templater = gadget_klass.__template_element,
listbox_widget_header = Handlebars.compile(
templater.getElementById("listbox-widget-header").innerHTML
),
listbox_widget_table = Handlebars.compile(
templater.getElementById("listbox-widget-table").innerHTML
),
listbox_widget_table_partial = Handlebars.registerPartial(
"listbox-widget-table-partial",
templater.getElementById("listbox-widget-table-partial").innerHTML
);
/////////////////////////////////////////////////////////////////
// some methods
/////////////////////////////////////////////////////////////////
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
.ready(function (my_gadget) {
my_gadget.property_dict = {};
})
.ready(function (my_gadget) {
return my_gadget.getElement()
.push(function (my_element) {
my_gadget.property_dict.element = my_element;
});
})
/////////////////////////////////////////////////////////////////
// published methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
// acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("whoWantToDisplayThis", "whoWantToDisplayThis")
.declareAcquiredMethod("translateHtml", "translateHtml")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod('render', function (my_option_dict) {
var gadget = this,
content = '',
result;
// store initial configuration and query
gadget.property_dict.initial_query
= gadget.property_dict.initial_query || my_option_dict.gadget_query;
gadget.property_dict.option_dict =
gadget.property_dict.option_dict || my_option_dict;
return new RSVP.Queue()
.push(function () {
return gadget.jio_allDocs(my_option_dict.gadget_query);
})
.push(function (my_result) {
var link_list = [],
i_len,
i;
result = my_result;
for (i = 0, i_len = result.data.total_rows; i < i_len; i += 1) {
link_list.push(gadget.whoWantToDisplayThis(result.data.rows[i].id));
}
return RSVP.all(link_list);
})
.push(function (my_link_list) {
var query = gadget.property_dict.option_dict.gadget_query,
column_list = [],
table_row_list = [],
table_cell_list,
i_len,
i,
j_len,
j;
// build handlebars object
// loop select_list to build columns
for (i = 0, i_len = query.select_list.length; i < i_len; i += 1) {
column_list.push({"column_title": query.select_list[i]});
}
for (j = 0, j_len = result.data.total_rows; j < j_len; j += 1) {
table_cell_list = [];
for (i = 0, i_len = query.select_list.length; i < i_len; i += 1) {
table_cell_list.push({
"cell_href": my_link_list[j],
"cell_title": result.data.rows[j].value[query.select_list[i]]
});
}
table_row_list.push({"table_cell_list": table_cell_list});
}
content += listbox_widget_header({
"listbox_title": my_option_dict.gadget_title,
"right_link_list": [{
"link_title": "All",
"link_href": gadget.property_dict.option_dict.gadget_portal_link
}]
});
content += listbox_widget_table({
"column_list": column_list,
"table_row_list": table_row_list
});
return gadget.translateHtml(content);
})
.push(function (my_translated_html) {
gadget.property_dict.element.querySelector(".custom-grid .ui-body-c")
.innerHTML = my_translated_html;
return gadget;
});
});
/////////////////////////////////////////////////////////////////
// declared service
/////////////////////////////////////////////////////////////////
}(window, rJS, RSVP, Handlebars));
gadget_e5g_ecrm_field_listbox_widget_js.xml 0000664 0000000 0000000 00000023734 13456342174 0044555 0 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/web_page_module
-
_Access_contents_information_Permission
Anonymous
Assignee
Assignor
Associate
Auditor
Manager
Owner
-
_Add_portal_content_Permission
Assignor
Manager
-
_Change_local_roles_Permission
Assignor
Manager
-
_Modify_portal_content_Permission
Manager
-
_View_Permission
Anonymous
Assignee
Assignor
Associate
Auditor
Manager
Owner
-
content_md5
-
default_reference
gadget_e5g_ecrm_field_listbox_widget.js
-
description
-
id
gadget_e5g_ecrm_field_listbox_widget_js
-
language
en
-
portal_type
Web Script
-
short_title
-
title
Gadget E5G Ecrm Field Listbox Widget JS
-
version
001
-
workflow_history
AAAAAAAAAAI=
-
data
-
document_publication_workflow
AAAAAAAAAAM=
-
edit_workflow
AAAAAAAAAAQ=
-
processing_status_workflow
AAAAAAAAAAU=
-
action
publish
-
actor
sven
-
comment
-
error_message
-
time
-
validation_state
published
-
action
edit
-
actor
zope
-
comment
-
error_message
-
serial
943.9410.37394.25582
-
state
current
-
time
-
action
detect_converted_file
-
actor
sven
-
comment
-
error_message
-
external_processing_state
converted
-
serial
0.0.0.0
-
time
gadget_e5g_ecrm_page_front_html.html 0000664 0000000 0000000 00000000702 13456342174 0043171 0 ustar 00root root 0000000 0000000 erp5-b0d269b1f6f770be087f2139d81f05953d676c02-bt5-erp5_web_ecrm/bt5/erp5_web_ecrm/PathTemplateItem/web_page_module
E-Procurement Frontpage