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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
5fcc42c2
Commit
5fcc42c2
authored
Jan 31, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support report tree in Anonymous Selection.
parent
2f4945f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
...lateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
+8
-4
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
View file @
5fcc42c2
...
@@ -385,16 +385,18 @@
...
@@ -385,16 +385,18 @@
is_report_opened python: int(not here.getSelection().isReportOpened());\n
is_report_opened python: int(not here.getSelection().isReportOpened());\n
requested_selection_name here/getRequestedSelectionName;\n
requested_selection_name here/getRequestedSelectionName;\n
url here/getUrl;\n
url here/getUrl;\n
selection_key here/getSelectionKey;\n
selection_key_param python:selection_key and (\'&selection_key=%s\' % selection_key) or \'\';\n
report_depth python: selection.getParams().get(\'report_depth\', request.get(\'report_depth\', 0))"
>
\n
report_depth python: selection.getParams().get(\'report_depth\', request.get(\'report_depth\', 0))"
>
\n
<tal:block
tal:repeat=
"i python: range(0, 6)"
>
\n
<tal:block
tal:repeat=
"i python: range(0, 6)"
>
\n
<a
href=
"?selection_name=default&selection_index=0&report_depth:int=0"
\n
<a
href=
"?selection_name=default&selection_index=0&report_depth:int=0"
\n
tal:attributes=
"href string:${url}?selection_name=${requested_selection_name}${index}&report_depth:int=${i};\n
tal:attributes=
"href string:${url}?selection_name=${requested_selection_name}${index}
${selection_key_param}
&report_depth:int=${i};\n
class python: test(i==report_depth, \'selected\', \'\');"
\n
class python: test(i==report_depth, \'selected\', \'\');"
\n
tal:content=
"i"
/>
\n
tal:content=
"i"
/>
\n
</tal:block>
-
\n
</tal:block>
-
\n
<a
\n
<a
\n
href=
"?selection_name=default&selection_index=0&is_report_opened:int=0"
\n
href=
"?selection_name=default&selection_index=0&is_report_opened:int=0"
\n
tal:attributes=
"href string:${url}?selection_name=${requested_selection_name}${index}&is_report_opened:int=${is_report_opened}"
\n
tal:attributes=
"href string:${url}?selection_name=${requested_selection_name}${index}
${selection_key_param}
&is_report_opened:int=${is_report_opened}"
\n
tal:content=
"python: is_report_opened and \'Show\' or \'Hide\'"
\n
tal:content=
"python: is_report_opened and \'Show\' or \'Hide\'"
\n
i18n:domain=
"ui"
i18n:translate=
""
>
Show
</a>
\n
i18n:domain=
"ui"
i18n:translate=
""
>
Show
</a>
\n
</th>
\n
</th>
\n
...
@@ -479,8 +481,10 @@
...
@@ -479,8 +481,10 @@
class=
"listbox-table-report-tree-selection-cell"
\n
class=
"listbox-table-report-tree-selection-cell"
\n
tal:define=
"section_name python: line.getDomainTitle()"
>
\n
tal:define=
"section_name python: line.getDomainTitle()"
>
\n
<a
tal:condition=
"section_name"
\n
<a
tal:condition=
"section_name"
\n
tal:define=
"method_id python: line.isOpen() and \'foldReport\' or \'unfoldReport\'"
\n
tal:define=
"method_id python: line.isOpen() and \'foldReport\' or \'unfoldReport\';\n
tal:attributes=
"href string:${method_id}?report_url=${line/getDomainUrl}&form_id=${form_id}&list_selection_name=${selection_name};\n
selection_key here/getSelectionKey;\n
selection_key_param python:selection_key and (\'&selection_key=%s\' % selection_key) or \'\'"
\n
tal:attributes=
"href string:${method_id}?report_url=${line/getDomainUrl}&form_id=${form_id}&list_selection_name=${selection_name}${selection_key_param};\n
class python:test(line.isOpen(), \'tree-open\', \'tree-closed\');\n
class python:test(line.isOpen(), \'tree-open\', \'tree-closed\');\n
style python:\'white-space: nowrap;; margin-left: %spx\' % (line.getDepth() * 15)"
\n
style python:\'white-space: nowrap;; margin-left: %spx\' % (line.getDepth() * 15)"
\n
tal:content=
"section_name"
/>
\n
tal:content=
"section_name"
/>
\n
...
...
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