Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
144
Merge Requests
144
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
420b79ad
Commit
420b79ad
authored
Oct 17, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_project_ui: new skin folder with project quick view form and scripts
parent
114174a0
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1442 additions
and
0 deletions
+1442
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_assignedPersons.py
.../portal_skins/erp5_web_project/Project_assignedPersons.py
+20
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_assignedPersons.xml
...portal_skins/erp5_web_project/Project_assignedPersons.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_bugs.py
...emplateItem/portal_skins/erp5_web_project/Project_bugs.py
+30
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_bugs.xml
...mplateItem/portal_skins/erp5_web_project/Project_bugs.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getQuickViewUrl.py
.../portal_skins/erp5_web_project/Project_getQuickViewUrl.py
+19
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getQuickViewUrl.xml
...portal_skins/erp5_web_project/Project_getQuickViewUrl.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getRenderJSExtraInfoParameterList.py
..._web_project/Project_getRenderJSExtraInfoParameterList.py
+10
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getRenderJSExtraInfoParameterList.xml
...web_project/Project_getRenderJSExtraInfoParameterList.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_lastTestResult.py
...m/portal_skins/erp5_web_project/Project_lastTestResult.py
+33
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_lastTestResult.xml
.../portal_skins/erp5_web_project/Project_lastTestResult.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_taskReports.py
...Item/portal_skins/erp5_web_project/Project_taskReports.py
+28
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_taskReports.xml
...tem/portal_skins/erp5_web_project/Project_taskReports.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasks.py
...mplateItem/portal_skins/erp5_web_project/Project_tasks.py
+24
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasks.xml
...plateItem/portal_skins/erp5_web_project/Project_tasks.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasksToAssigne.py
...m/portal_skins/erp5_web_project/Project_tasksToAssigne.py
+24
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasksToAssigne.xml
.../portal_skins/erp5_web_project/Project_tasksToAssigne.xml
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview.xml
...rtal_skins/erp5_web_project/Project_viewQuickOverview.xml
+138
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview/my_info_gadget_field.xml
...roject/Project_viewQuickOverview/my_info_gadget_field.xml
+261
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.css
...portal_skins/erp5_web_project/gadget_project_info.css.css
+77
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.xml
...portal_skins/erp5_web_project/gadget_project_info.css.xml
+28
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.html.html
...rtal_skins/erp5_web_project/gadget_project_info.html.html
+62
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.html.xml
...ortal_skins/erp5_web_project/gadget_project_info.html.xml
+28
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
...m/portal_skins/erp5_web_project/gadget_project_info.js.js
+136
-0
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.xml
.../portal_skins/erp5_web_project/gadget_project_info.js.xml
+28
-0
No files found.
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_assignedPersons.py
0 → 100644
View file @
420b79ad
project_title
=
context
.
getTitle
()
portal_type
=
'Person'
person_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
destination_project_title
=
project_title
)]
person_list
=
[
line
for
line
in
context
.
objectValues
(
portal_type
=
"Person"
)]
'''
print person_list
for x in person_list:
print x.getTitle()
return printed
'''
if
not
person_list
:
return
"0"
count
=
len
(
person_list
)
return
count
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_assignedPersons.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_assignedPersons
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_bugs.py
0 → 100644
View file @
420b79ad
project_title
=
context
.
getTitle
()
portal_type
=
'Bug'
import
time
time
.
sleep
(
5
)
state_list
=
[
'confirmed'
]
if
(
closed
):
state_list
=
[
'delivered'
,
'stopped'
]
from
DateTime
import
DateTime
now
=
DateTime
()
now_minus_7
=
now
-
7
catalog_kw
=
{}
#{'creation_date': {'query': (now_minus_7, now), 'range': 'minmax'}}
bug_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
destination_project_title
=
project_title
,
simulation_state
=
state_list
,
**
catalog_kw
)]
'''
print bug_list
for x in bug_list:
print x.getTitle()
return printed
'''
if
not
bug_list
:
return
"0"
count
=
len
(
bug_list
)
return
count
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_bugs.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
closed=0
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_bugs
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getQuickViewUrl.py
0 → 100644
View file @
420b79ad
from
Products.ERP5Type.Log
import
log
request
=
context
.
REQUEST
if
url_dict
:
jio_key
=
context
.
getRelativeUrl
()
return
{
'command'
:
'display'
,
'options'
:
{
'jio_key'
:
jio_key
,
'editable'
:
False
},
'view_kw'
:
{
'view'
:
'Project_viewQuickOverview'
,
'jio_key'
:
jio_key
,
}
}
elif
url_dict
:
return
{}
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getQuickViewUrl.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
brain, url_dict=False, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_getQuickViewUrl
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getRenderJSExtraInfoParameterList.py
0 → 100644
View file @
420b79ad
"""
================================================================================
Return parameters to correctly display the RenderJS gadget
================================================================================
"""
# parameters
# ------------------------------------------------------------------------------
# context_url: relative url of the context calling this script
return
[(
'project_title'
,
context
.
getTitle
()),
(
'jio_key'
,
context
.
getRelativeUrl
())]
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_getRenderJSExtraInfoParameterList.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_getRenderJSExtraInfoParameterList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_lastTestResult.py
0 → 100644
View file @
420b79ad
import
time
time
.
sleep
(
4
)
project_title
=
context
.
getTitle
()
portal_type
=
'Benchmark Result'
state_list
=
[
'failed'
,
'stopped'
,
'public_stopped'
]
#from DateTime import DateTime
#now = DateTime()
#now_minus_7 = now - 7
#catalog_kw = {'creation_date': {'query': (now_minus_7, now), 'range': 'minmax'}}
catalog_kw
=
{}
bug_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
source_project_title
=
project_title
,
#simulation_state=state_list,
**
catalog_kw
)]
return
"PASSED"
print
bug_list
for
x
in
bug_list
:
print
x
.
getTitle
()
print
x
.
getStringIndex
()
return
printed
if
not
bug_list
:
return
"0"
count
=
len
(
bug_list
)
return
count
return
last_finished_test
.
getStringIndex
()
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_lastTestResult.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
closed=0
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_lastTestResult
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_taskReports.py
0 → 100644
View file @
420b79ad
project_title
=
context
.
getTitle
()
portal_type
=
'Task Report'
state_list
=
[
'confirmed'
]
if
(
closed
):
state_list
=
[
'delivered'
,
'stopped'
,
'draft'
]
from
DateTime
import
DateTime
now
=
DateTime
()
now_minus_7
=
now
-
7
catalog_kw
=
{
'creation_date'
:
{
'query'
:
(
now_minus_7
,
now
),
'range'
:
'minmax'
}}
task_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
source_project_title
=
project_title
,
#simulation_state=state_list,
simulation_state
=
'draft'
,
**
catalog_kw
)]
'''
print task_list
for x in task_list:
print x.getTitle()
return printed
'''
if
not
task_list
:
return
"0"
count
=
len
(
task_list
)
return
count
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_taskReports.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
closed=0
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_taskReports
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasks.py
0 → 100644
View file @
420b79ad
project_title
=
context
.
getTitle
()
portal_type
=
'Task'
state_list
=
[
'planned'
,
'ordered'
,
'confirmed'
]
from
DateTime
import
DateTime
now
=
DateTime
()
now_minus_7
=
now
-
7
#catalog_kw = {'creation_date': {'query': (now_minus_7, now), 'range': 'minmax'}}
task_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
source_project_title
=
project_title
,
simulation_state
=
state_list
)]
'''
print task_list
for x in task_list:
print x.getTitle()
print x.getSourceTitle()
return printed
'''
if
not
task_list
:
return
"0"
count
=
len
(
task_list
)
return
count
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasks.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_tasks
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasksToAssigne.py
0 → 100644
View file @
420b79ad
project_title
=
context
.
getTitle
()
portal_type
=
'Task'
state_list
=
[
'draft'
,
'planned'
,
'ordered'
,
'confirmed'
]
from
DateTime
import
DateTime
now
=
DateTime
()
now_minus_7
=
now
-
7
#catalog_kw = {'creation_date': {'query': (now_minus_7, now), 'range': 'minmax'}}
task_list
=
[
x
for
x
in
context
.
portal_catalog
(
portal_type
=
portal_type
,
source_project_title
=
project_title
,
simulation_state
=
state_list
)
if
x
.
getSourceTitle
()
==
None
]
'''
print task_list
for x in task_list:
print x.getTitle()
print x.getSourceTitle()
return printed
'''
if
not
task_list
:
return
"0"
count
=
len
(
task_list
)
return
count
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_tasksToAssigne.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_tasksToAssigne
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ERP5 Form"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
Base_edit
</string>
</value>
</item>
<item>
<key>
<string>
encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<list>
<string>
left
</string>
<string>
right
</string>
<string>
center
</string>
<string>
bottom
</string>
<string>
hidden
</string>
</list>
</value>
</item>
<item>
<key>
<string>
groups
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
my_info_gadget_field
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
left
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
right
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Project_viewQuickOverview
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
<value>
<string>
POST
</string>
</value>
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
Project_view
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
<value>
<string>
form_view
</string>
</value>
</item>
<item>
<key>
<string>
row_length
</string>
</key>
<value>
<int>
4
</int>
</value>
</item>
<item>
<key>
<string>
stored_encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Project
</string>
</value>
</item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
update_action
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/Project_viewQuickOverview/my_info_gadget_field.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"GadgetField"
module=
"Products.ERP5Form.GadgetField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_info_gadget_field
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
<item>
<key>
<string>
no_validator
</string>
</key>
<value>
<string>
Does not support this operation.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
data_url
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
gadget_url
</string>
</key>
<value>
<string>
gadget_project_info.html
</string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
js_sandbox
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
renderjs_extra
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
my_info_gadget_field
</string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.Project_getRenderJSExtraInfoParameterList()
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.css
0 → 100644
View file @
420b79ad
#generate-rss
{
padding
:
5.5pt
;
margin-right
:
12pt
;
background-color
:
#FF6600
;
border-color
:
#FF6600
;
color
:
#FFFFFF
;
border-radius
:
0.325em
;
border-width
:
0.5px
;
border-style
:
solid
;
min-width
:
6em
;
line-height
:
1.5
;
display
:
none
;
text-align
:
center
;
width
:
fit-content
;
}
.restore-button
{
padding
:
6pt
;
margin-right
:
12pt
;
background-color
:
#FF6600
;
color
:
#FFFFFF
;
border-radius
:
0.325em
;
border-width
:
0.5px
;
border-style
:
solid
;
min-width
:
8em
;
line-height
:
1.5
;
}
#wrap1
iframe
{
height
:
100%
;
}
#wrap2
iframe
{
height
:
100%
;
}
.gadget-content
.ui-field-contain
.graph-spinner
{
position
:
relative
;
top
:
100px
;
width
:
120px
;
}
.gadget-content
.ui-field-contain
.count-spinner
{
top
:
20px
;
width
:
120px
;
}
.gadget-content
.ui-field-contain
.bottom
.first-line-buttons
{
-webkit-appearance
:
none
;
margin-top
:
0
;
margin-bottom
:
20px
;
}
button
:disabled
{
background-color
:
#FFC9A4
;
}
input
[
type
=
"submit"
]
{
-webkit-appearance
:
none
;
}
.gadget-content
a
.first-line-buttons
{
padding
:
6pt
;
margin-top
:
30pt
;
margin-right
:
12pt
;
background-color
:
#FF6600
;
color
:
#FFFFFF
;
border-radius
:
0.325em
;
border-width
:
1px
;
border-style
:
solid
;
min-width
:
8em
;
}
.worklist-title
{
color
:
#777777
;
margin-top
:
10px
;
}
\ No newline at end of file
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.css.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget_project_info.css
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/css
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.html.html
0 → 100644
View file @
420b79ad
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Project info gadget
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<!-- <script src="handlebars.js" type="text/javascript"></script>
<script id="panel-template-body-list" type="text/x-handlebars-template"></script>-->
<script
src=
"gadget_project_info.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"gadget_project_info.css"
>
</head>
<body>
<h1></h1>
<div
class=
"ui-field-contain"
style=
"top:50px;"
>
<div
class=
"bottom"
>
<a
id=
"forum_link"
target=
"_blank"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Forum"
disabled
>
Forum
</a>
<a
id=
"description_link"
target=
"_blank"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Project Description"
disabled
>
Project Description
</a>
<a
id=
"rss_link"
target=
"_blank"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Generate RSS"
disabled
>
Generate RSS
</a>
</div>
</div>
<div
class=
"ui-field-contain"
style=
"top:100px;"
>
<p>
<a
id=
"task_link"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Tasks"
disabled
>
Tasks:
</a>
<span
id=
"task_count"
>
...
</span><span>
opened /
</span>
<span
id=
"unassigned_task_count"
>
...
</span><span
style=
"margin-right:50px;"
>
unassigend
</span>
<a
id=
"report_link"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Task Reports"
disabled
>
Task Reports:
</a>
<span
id=
"report_count"
>
...
</span><span>
opened /
</span>
<span
id=
"closed_report_count"
>
...
</span><span>
recently closed
</span>
</p>
</div>
<div
class=
"ui-field-contain"
style=
"top:150px;"
>
<p>
<a
id=
"bug_link"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Bugs"
disabled
>
Bugs:
</a>
<span
id=
"bug_count"
>
...
</span><span>
opened
</span>
<span
id=
"closed_bug_count"
>
...
</span><span>
recently closed
</span>
</p>
</div>
<div
class=
"ui-field-contain"
style=
"top:200px;"
>
<p>
<a
id=
"test_result_link"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Last test result"
disabled
>
Last test result:
</a>
<span
id=
"last_test_result"
style=
"margin-right:50px;"
>
...
</span>
<a
id=
"test_suite_link"
class=
"first-line-buttons ui-disabled"
data-i18n=
"[value]Test suite"
disabled
>
Test suite
</a>
</p>
</div>
<!--
<div class="ui-field-contain">
<div class="left" style="height:50%; width:100%">
<div class="ui-icon-spinner ui-btn-icon-notext first-loader graph-spinner"></div>
<div id="wrap1" style="height:300px;"></div>
</div>
<div class="right" style="height:50%; width:100%">
<div class="ui-icon-spinner ui-btn-icon-notext first-loader graph-spinner"></div>
<div id="wrap2" style="height:300px;"></div>
</div>
</div>
-->
</body>
</html>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.html.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget_project_info.html
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.js
0 → 100644
View file @
420b79ad
/*jslint nomen: true, indent: 2 */
/*global window, rJS, RSVP, document, FileReader, Blob, jIO, //Handlebars,
lockGadgetInQueue, unlockGadgetInQueue, unlockGadgetInFailedQueue*/
(
function
(
window
,
rJS
,
RSVP
,
document
,
FileReader
,
Blob
,
jIO
,
//Handlebars,
lockGadgetInQueue
,
unlockGadgetInQueue
,
unlockGadgetInFailedQueue
)
{
"
use strict
"
;
/*var gadget_klass = rJS(window),
template_element = gadget_klass.__template_element,
panel_template_body_list = Handlebars.compile(template_element
.getElementById("panel-template-body-list")
.innerHTML);*/
function
enableLink
(
link_element
,
url
)
{
link_element
.
href
=
url
;
link_element
.
disabled
=
false
;
link_element
.
classList
.
remove
(
"
ui-disabled
"
);
}
function
generateLink
(
gadget
,
link_element
,
command
,
options
)
{
//return gadget.getUrlFor({command: 'display', options: {page: "validator_form"}})
return
gadget
.
getUrlFor
({
command
:
command
,
options
:
options
})
/*.push(function (result) {
return gadget.translateHtml(
panel_template_body_list({
"form_href": result
})
);
})*/
.
push
(
function
(
result
)
{
enableLink
(
link_element
,
result
);
});
}
function
generateInfo
(
gadget
,
span_element
,
info_url
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
url
:
info_url
,
dataType
:
'
text
'
});
})
.
push
(
function
(
evt
)
{
return
evt
.
target
.
responseText
.
split
(
'
\n
'
);
})
.
push
(
function
(
result
)
{
span_element
.
innerHTML
=
result
;
});
}
rJS
(
window
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
console
.
log
(
"
PROJECT INFO GADGET render options:
"
);
console
.
log
(
options
);
var
state_dict
=
{
jio_key
:
options
.
jio_key
||
""
,
//HACK
forum_link
:
options
.
forum_link
||
"
https://www.erp5.com/group_section/forum
"
,
description_link
:
options
.
description_link
||
"
https://www.erp5.com/project_section/nexedi-erp5
"
,
project_title
:
options
.
project_title
};
return
this
.
changeState
(
state_dict
);
})
.
onStateChange
(
function
(
modification_dict
)
{
var
gadget
=
this
,
base_site
=
window
.
location
.
origin
+
window
.
location
.
pathname
,
project_url
=
base_site
+
modification_dict
.
jio_key
;
gadget
.
element
.
querySelectorAll
(
"
h1
"
)[
0
].
innerHTML
=
modification_dict
.
project_title
;
enableLink
(
document
.
getElementById
(
"
forum_link
"
),
modification_dict
.
forum_link
);
enableLink
(
document
.
getElementById
(
"
description_link
"
),
modification_dict
.
description_link
);
generateLink
(
gadget
,
document
.
getElementById
(
"
bug_link
"
),
'
display
'
,
{
'
jio_key
'
:
'
bug_module
'
,
'
page
'
:
'
form
'
,
'
view
'
:
'
view
'
,
'
field_listbox_sort_list:json
'
:
[[
"
delivery.start_date
"
,
"
descending
"
]],
//'field_listbox_column_list:json': ["title", "default_destination_section_title"],
'
extended_search
'
:
'
translated_simulation_state_title: "Open"
'
});
generateInfo
(
gadget
,
document
.
getElementById
(
"
bug_count
"
),
project_url
+
"
/Project_bugs
"
);
generateInfo
(
gadget
,
document
.
getElementById
(
"
closed_bug_count
"
),
project_url
+
"
/Project_bugs?closed=1
"
);
generateLink
(
gadget
,
document
.
getElementById
(
"
task_link
"
),
'
display
'
,
{
'
jio_key
'
:
'
task_module
'
,
'
page
'
:
'
form
'
,
'
view
'
:
'
view
'
,
'
field_listbox_sort_list:json
'
:
[[
"
delivery.start_date
"
,
"
descending
"
]]
//,
//'field_listbox_column_list:json': ["title", "default_destination_section_title"],
//'extended_search': 'translated_simulation_state_title: "Open"'
});
generateInfo
(
gadget
,
document
.
getElementById
(
"
task_count
"
),
project_url
+
"
/Project_tasks
"
);
generateInfo
(
gadget
,
document
.
getElementById
(
"
unassigned_task_count
"
),
project_url
+
"
/Project_tasksToAssigne
"
);
generateLink
(
gadget
,
document
.
getElementById
(
"
report_link
"
),
'
display
'
,
{
'
jio_key
'
:
'
task_report_module
'
,
'
page
'
:
'
form
'
,
'
view
'
:
'
view
'
,
'
field_listbox_sort_list:json
'
:
[[
"
delivery.start_date
"
,
"
descending
"
]]
//,
//'field_listbox_column_list:json': ["title", "default_destination_section_title"],
//'extended_search': 'translated_simulation_state_title: "Open"'
});
generateInfo
(
gadget
,
document
.
getElementById
(
"
report_count
"
),
project_url
+
"
/Project_taskReports
"
);
generateInfo
(
gadget
,
document
.
getElementById
(
"
closed_report_count
"
),
project_url
+
"
/Project_taskReports?closed=1
"
);
generateLink
(
gadget
,
document
.
getElementById
(
"
test_result_link
"
),
'
display
'
,
{
'
jio_key
'
:
'
test_result_module
'
,
'
page
'
:
'
form
'
,
'
view
'
:
'
view
'
,
'
field_listbox_sort_list:json
'
:
[[
"
delivery.start_date
"
,
"
descending
"
]]
});
generateInfo
(
gadget
,
document
.
getElementById
(
"
last_test_result
"
),
project_url
+
"
/Project_lastTestResult
"
);
generateLink
(
gadget
,
document
.
getElementById
(
"
test_suite_link
"
),
'
display
'
,
{
'
jio_key
'
:
'
test_suite_module
'
,
'
page
'
:
'
form
'
,
'
view
'
:
'
view
'
,
'
field_listbox_sort_list:json
'
:
[[
"
delivery.start_date
"
,
"
descending
"
]]
});
})
.
declareMethod
(
'
getContent
'
,
function
()
{
return
{};
})
.
declareMethod
(
'
checkValidity
'
,
function
()
{
return
true
;
});
}(
window
,
rJS
,
RSVP
,
document
,
FileReader
,
Blob
,
jIO
,
//Handlebars,
lockGadgetInQueue
,
unlockGadgetInQueue
,
unlockGadgetInFailedQueue
));
\ No newline at end of file
bt5/erp5_web_project_ui/SkinTemplateItem/portal_skins/erp5_web_project/gadget_project_info.js.xml
0 → 100644
View file @
420b79ad
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget_project_info.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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