Commit 7f4e98aa authored by Yusei Tahara's avatar Yusei Tahara

2008-01-28 yusei

* Update ListBox_asHTML and erp5.css for new listbox option(anchor mode).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18890 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db3a0f51
......@@ -65,6 +65,7 @@
is_domain_tree_supported here/isDomainTreeSupported;\n
is_report_tree_supported here/isReportTreeSupported;\n
show_select_column here/showSelectColumn;\n
\t show_anchor_column here/showAnchorColumn;\n
show_search_line here/showSearchLine;\n
">\n
<!-- ListBox starts here. -->\n
......@@ -243,6 +244,7 @@
</tal:block>\n
</select>\n
</td>\n
<td class="AnchorColumn" tal:condition="show_anchor_column" class="Data">&nbsp;</td>\n
<td tal:condition="show_select_column"\n
class="Data" style="width: 50px; text-align: center; vertical-align: middle">\n
<input id="listbox_check_all" type="image"\n
......@@ -292,7 +294,7 @@
tal:attributes="id python: show_search_line and (\'%s_search_line\' % field_id) or (\'%s_report_depth_line\' % field_id)">\n
<tal:block tal:condition="is_report_tree_mode">\n
<td class="Data" style="width: 50px; text-align: left; vertical-align: middle" colspan="1"\n
tal:attributes="colspan python: show_search_line and 1 or (len(here.getSelectedColumnList()) + show_select_column + 1)"\n
tal:attributes="colspan python: show_search_line and 1 or (len(here.getSelectedColumnList()) + show_select_column + show_anchor_column + 1)"\n
tal:define="index python: selection_index is not None and \'&amp;selection_index=%s\' % selection_index or \'\';\n
is_report_opened python: int(not here.getSelection().isReportOpened());\n
url here/getUrl"><tal:block tal:repeat="i python: range(0, 6)">&nbsp;<a href="?selection_name=default&amp;selection_index=0&amp;report_depth:int=0"\n
......@@ -303,6 +305,7 @@
i18n:domain="ui" i18n:translate="">Show</a>\n
</td>\n
</tal:block>\n
<td class="AnchorColumn" tal:condition="show_anchor_column">&nbsp;</td>\n
<td tal:condition="python: show_select_column and show_search_line"\n
class="Data" style="width: 50px; text-align: center; vertical-align: middle">\n
<input id="listbox_select" type="image" src="exec16.png"\n
......@@ -329,7 +332,8 @@
\n
<tal:block tal:repeat="line line_list" tal:define="checked_uid_set here/getCheckedUidSet">\n
<tr id="listbox_data_line_0" class="DataA"\n
tal:define="css python: test(repeat[\'line\'].index % 2, \'DataB\', \'DataA\')"\n
tal:define="css python: test(repeat[\'line\'].index % 2, \'DataB\', \'DataA\');\n
render_result line/render;"\n
tal:attributes="id string:${field_id}_data_line_${repeat/line/index}; class css">\n
<td tal:condition="is_report_tree_mode" class="DataA" align="left" valign="middle"\n
tal:attributes="class css"\n
......@@ -339,7 +343,10 @@
tal:attributes="href string:${method_id}?report_url=${line/getDomainUrl}&amp;form_id=${form_id}&amp;list_selection_name=${selection_name}"\n
tal:content="structure python: \'%s%s&nbsp;%s\' % (\'&nbsp;&nbsp;\' * line.getDepth(), line.isOpen() and \'-\' or \'+\', section_name)" />\n
</td>\n
<td tal:condition="here/showSelectColumn"\n
<td class="AnchorColumn" tal:condition="python:show_anchor_column and len(render_result)" class="Data" style="width: 20px;">\n
<a href="#" tal:attributes="href python:render_result[0][4]"><img src="document_icon.gif" tal:attributes="src string:${portal_url_string}/images/line_clickable.png" /></a>\n
</td>\n
<td tal:condition="show_select_column"\n
class="DataA" style="width: 50px; text-align: center; vertical-align: middle"\n
tal:attributes="class css">\n
<input tal:condition="python: not line.isSummary() and line.getObject() is not None"\n
......@@ -349,7 +356,7 @@
id string:${field_id}_cb_${line/getUid}" />\n
<tal:block tal:condition="python: line.isSummary() or line.getObject() is None"></tal:block>\n
</td>\n
<tal:block tal:repeat="value line/render">\n
<tal:block tal:repeat="value render_result">\n
<td tal:define="html python: value[0];\n
original_value python: value[1];\n
error python: value[2]"\n
......@@ -369,6 +376,7 @@
<tr tal:condition="here/showStat" id="listbox_stat_line"\n
tal:attributes="id string:${field_id}_stat_line">\n
<td tal:condition="is_report_tree_mode" class="Data">&nbsp;</td>\n
<td class="AnchorColumn" tal:condition="show_anchor_column" class="Data">&nbsp;</td>\n
<td tal:condition="show_select_column" class="Data">&nbsp;</td>\n
<tal:block tal:repeat="value here/getStatValueList">\n
<td class="Data" align="left"\n
......
......@@ -1089,7 +1089,14 @@ fieldset.bottom .field .input {\n
border-collapse: collapse;\n
border-color: <dtml-var document_border_color>;\n
border-style: solid;\n
border-width: 1px;\n
border-top-width: 0px;\n
border-bottom-width: 1px;\n
border-left-width: 1px;\n
border-right-width: 1px;\n
}\n
\n
.ListContent #listbox_label_line td.Data {\n
border-top-width: 1px;\n
}\n
\n
.ListContent #listbox_label_line {\n
......@@ -1099,11 +1106,14 @@ fieldset.bottom .field .input {\n
}\n
\n
.ListContent #listbox_stat_line {\n
color: inherit;\n
background-color: <dtml-var listbox_stat_background_color>;\n
}\n
\n
.ListContent #listbox_stat_line td.Data {\n
border-top-width: 1px;\n
border-top-style: solid;\n
border-color: <dtml-var document_border_color>;\n
color: inherit;\n
background-color: <dtml-var listbox_stat_background_color>;\n
}\n
\n
.ListContent tr.DataA {\n
......@@ -1139,6 +1149,14 @@ fieldset.bottom .field .input {\n
padding-right: 1px;\n
}\n
\n
td.AnchorColumn {\n
!important\n
border-style:none;\n
border-color:<dtml-var document_border_color>;\n
background-color:<dtml-var document_background_color>;\n
border-width:0;\n
}\n
\n
/* Web Page White Background */\n
\n
.document div.page {\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Image" module="OFS.Image"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts01537524.75</string> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>line_clickable.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9gBHBAZDnWI0hoAAAD1SURBVCjP
pZMhUsRAEEV/KI6SM+C5AAKHW4UDF4VGYFBUYSgMYguPiuQKexVg+v8/YRATQ1VCNuzYrvf690xP
07YtDjlHc4XuqS9Xj2/lX4LuuS9hwSI2d9uyWkAZFhEUsgMXNw9llcAiSCMrMKRPkMTZ9W3ZWxAU
rISBCZKQFSCJ001X9k4wMEEREAMKwQqYxMn55S/J8ZTgOz5gCjYhCXaCSYgBi8sJNMImYX5VWIHs
Os5iAqt2ExNM1xRBWAm7/rVZFpCQCblephmT8KyAEXAm8jizyUl4PkEmHGl8gcCu3zarFun95b6R
6ir/BQNAc+hv/AH2PNy7iEOjfQAAAABJRU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>15</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>373</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2008-01-28 yusei
* Update ListBox_asHTML and erp5.css for new listbox option(anchor mode).
2008-01-16 aurel
* sort on listbox column is now a POST and no longer a GET
......
490
\ No newline at end of file
491
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment