From d960a2ced3809d2dfea2d00843d9980295bbb51b Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Thu, 20 Jul 2006 11:17:16 +0000 Subject: [PATCH] Add listbox mockups git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8625 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_web/my_custom_stuff.xml | 166 ++++++++ .../portal_skins/erp5_web/my_custom_task.xml | 364 ++++++++++++++++++ .../portal_skins/erp5_web/my_fake_search.xml | 173 +++++++++ bt5/erp5_web/bt/change_log | 1 + bt5/erp5_web/bt/revision | 2 +- 5 files changed, 705 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_stuff.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_task.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_fake_search.xml diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_stuff.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_stuff.xml new file mode 100644 index 0000000000..30ea9ce85e --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_stuff.xml @@ -0,0 +1,166 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block metal:define-macro="master">\n + <tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n + <tal:block metal:fill-slot="main_content">\n + <tal:block metal:define-slot="main">\n +\n +\n +\n +<h1>My Stuff</h1>\n +\n +<p>This page provides access to all documents which you have added to the system.</p>\n +\n +<table class="listbox">\n + <caption>My Documents</caption>\n + <thead>\n + <tr>\n + <th>Title</th>\n + <th>Creation Date</th>\n + <th>Last Modification</th>\n + <th>Theme</th>\n + <th>Programme</th>\n + <th>Service</th>\n + <th>Revision</th>\n + <th>State</th>\n + </tr>\n + </thead>\n +\n + <tfoot>\n + <tr>\n + <td colspan="8">\n + <a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n + <a class="pageNavigation" href="#" title="Previous Page: page 67"><<</a>\n + <form action="" method="GET">\n + <select>\n + <option value="#">Page 1</option>\n + <option value="#">Page 2</option>\n + <option value="#">Page 3</option>\n + <option value="#">…</option>\n + <option value="#">Page 67</option>\n + <option value="#" selected>Page 68</option>\n + <option value="#">Page 69</option>\n + <option value="#">…</option>\n + <option value="#">Page 411</option>\n + </select>\n + </form>\n + <a class="pageNavigation" href="#" title="Next Page: page 69">>></a>\n + <a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n + </td>\n + </tr>\n + </tfoot>\n +\n + <tbody>\n + <tr>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + <td class=""><input size="5" type="text"/></td>\n + </tr>\n + <tr>\n + <td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n + <td class="date">1/4/2006</td>\n + <td class="date">23/4/2006</td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="externalLink"><a href="">Direction des changements</a></td>\n + <td class="number">4</td>\n + <td class="published">Published</td>\n + </tr>\n + <tr tal:repeat="dummy python: range(9)">\n + <td class="mainDoc"><a href="">Compte Rendu</a></td>\n + <td class="date">14/1/2006</td>\n + <td class="date">8/3/2006</td>\n + <td class="externalLink"><a href="">Health</a></td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="number">4</td>\n + <td class="draft">Draft</td>\n + </tr>\n + </tbody>\n +\n +</table>\n +\n +\n +\n + </tal:block>\n + </tal:block>\n + </tal:block>\n +</tal:block>\n +\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_custom_stuff</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>XXX MOCKUP</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_task.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_task.xml new file mode 100644 index 0000000000..c214a173e9 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_custom_task.xml @@ -0,0 +1,364 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block metal:define-macro="master">\n + <tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n + <tal:block metal:fill-slot="main_content">\n + <tal:block metal:define-slot="main">\n +\n +\n +\n +<h1>My Tasks</h1>\n +\n +<p>This page contains all documents which require your attention. Documents are grouped by workflow and by worklist. It is advisable to access this page <u>everyday</u> in order to help\n +information flow quickly accross your organisation.</p>\n +\n +\n +<h2>Validation Workflow</h2>\n +\n +<p>The validation allows for making sure information entered into the system\n +has been validated by relevant agents before it is shared.</p>\n +\n +<table class="listbox">\n + <caption>Documents to Validate</caption>\n +\n + <thead>\n + <tr>\n + <th>Title</th>\n + <th>Creation Date</th>\n + <th>Last Modification</th>\n + <th>Theme</th>\n + <th>Programme</th>\n + <th>Service</th>\n + <th>Revision</th>\n + <th>State</th>\n + </tr>\n + </thead>\n +\n + <tfoot>\n + <tr>\n + <td colspan="8">\n + <a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n + <a class="pageNavigation" href="#" title="Previous Page: page 67"><<</a>\n + <form action="" method="GET">\n + <select>\n + <option value="#">Page 1</option>\n + <option value="#">Page 2</option>\n + <option value="#">Page 3</option>\n + <option value="#">…</option>\n + <option value="#">Page 67</option>\n + <option value="#" selected>Page 68</option>\n + <option value="#">Page 69</option>\n + <option value="#">…</option>\n + <option value="#">Page 411</option>\n + </select>\n + </form>\n + <a class="pageNavigation" href="#" title="Next Page: page 69">>></a>\n + <a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n + </td>\n + </tr>\n + </tfoot>\n +\n + <tbody>\n + <tr>\n + <td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n + <td class="date">1/4/2006</td>\n + <td class="date">23/4/2006</td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="externalLink"><a href="">Direction des changements</a></td>\n + <td class="number">4</td>\n + <td class="published">Published</td>\n + </tr>\n + <tr>\n + <td class="mainDoc"><a href="">Compte Rendu</a></td>\n + <td class="date">14/1/2006</td>\n + <td class="date">8/3/2006</td>\n + <td class="externalLink"><a href="">Health</a></td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="number">4</td>\n + <td class="draft">Draft</td>\n + </tr>\n + </tbody>\n +\n +</table>\n +\n +<table class="listbox">\n + <caption>Draft Documents</caption>\n +\n + <thead>\n + <tr>\n + <th>Title</th>\n + <th>Creation Date</th>\n + <th>Last Modification</th>\n + <th>Theme</th>\n + <th>Programme</th>\n + <th>Service</th>\n + <th>Revision</th>\n + <th>State</th>\n + </tr>\n + </thead>\n +\n + <tfoot>\n + <tr>\n + <td colspan="8">\n + <a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n + <a class="pageNavigation" href="#" title="Previous Page: page 67"><<</a>\n + <form action="" method="GET">\n + <select>\n + <option value="#">Page 1</option>\n + <option value="#">Page 2</option>\n + <option value="#">Page 3</option>\n + <option value="#">…</option>\n + <option value="#">Page 67</option>\n + <option value="#" selected>Page 68</option>\n + <option value="#">Page 69</option>\n + <option value="#">…</option>\n + <option value="#">Page 411</option>\n + </select>\n + </form>\n + <a class="pageNavigation" href="#" title="Next Page: page 69">>></a>\n + <a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n + </td>\n + </tr>\n + </tfoot>\n +\n + <tbody>\n + <tr>\n + <td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n + <td class="date">1/4/2006</td>\n + <td class="date">23/4/2006</td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="externalLink"><a href="">Direction des changements</a></td>\n + <td class="number">4</td>\n + <td class="published">Published</td>\n + </tr>\n + <tr>\n + <td class="mainDoc"><a href="">Compte Rendu</a></td>\n + <td class="date">14/1/2006</td>\n + <td class="date">8/3/2006</td>\n + <td class="externalLink"><a href="">Health</a></td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="number">4</td>\n + <td class="draft">Draft</td>\n + </tr>\n + </tbody>\n +\n +</table>\n +\n +\n +\n +<h2>Publication Workflow</h2>\n +\n +<p>The publication allows for making sure information entered into the system\n +has been reviewed by relevant agents before it is widely published.</p>\n +\n +\n +<table class="listbox">\n + <caption>Documents to Publish</caption>\n +\n + <thead>\n + <tr>\n + <th>Title</th>\n + <th>Creation Date</th>\n + <th>Last Modification</th>\n + <th>Theme</th>\n + <th>Programme</th>\n + <th>Service</th>\n + <th>Revision</th>\n + <th>State</th>\n + </tr>\n + </thead>\n +\n + <tfoot>\n + <tr>\n + <td colspan="8">\n + <a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n + <a class="pageNavigation" href="#" title="Previous Page: page 67"><<</a>\n + <form action="" method="GET">\n + <select>\n + <option value="#">Page 1</option>\n + <option value="#">Page 2</option>\n + <option value="#">Page 3</option>\n + <option value="#">…</option>\n + <option value="#">Page 67</option>\n + <option value="#" selected>Page 68</option>\n + <option value="#">Page 69</option>\n + <option value="#">…</option>\n + <option value="#">Page 411</option>\n + </select>\n + </form>\n + <a class="pageNavigation" href="#" title="Next Page: page 69">>></a>\n + <a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n + </td>\n + </tr>\n + </tfoot>\n +\n + <tbody>\n + <tr>\n + <td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n + <td class="date">1/4/2006</td>\n + <td class="date">23/4/2006</td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="externalLink"><a href="">Direction des changements</a></td>\n + <td class="number">4</td>\n + <td class="published">Published</td>\n + </tr>\n + <tr>\n + <td class="mainDoc"><a href="">Compte Rendu</a></td>\n + <td class="date">14/1/2006</td>\n + <td class="date">8/3/2006</td>\n + <td class="externalLink"><a href="">Health</a></td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="number">4</td>\n + <td class="draft">Draft</td>\n + </tr>\n + </tbody>\n +\n +</table>\n +\n +<table class="listbox">\n + <caption>Draft Documents</caption>\n +\n + <thead>\n + <tr>\n + <th>Title</th>\n + <th>Creation Date</th>\n + <th>Last Modification</th>\n + <th>Theme</th>\n + <th>Programme</th>\n + <th>Service</th>\n + <th>Revision</th>\n + <th>State</th>\n + </tr>\n + </thead>\n +\n + <tfoot>\n + <tr>\n + <td colspan="8">\n + <a class="pageNavigation" href="#" title="First Page: page 1">\xe2\x86\x90</a>\n + <a class="pageNavigation" href="#" title="Previous Page: page 67"><<</a>\n + <form action="" method="GET">\n + <select>\n + <option value="#">Page 1</option>\n + <option value="#">Page 2</option>\n + <option value="#">Page 3</option>\n + <option value="#">…</option>\n + <option value="#">Page 67</option>\n + <option value="#" selected>Page 68</option>\n + <option value="#">Page 69</option>\n + <option value="#">…</option>\n + <option value="#">Page 411</option>\n + </select>\n + </form>\n + <a class="pageNavigation" href="#" title="Next Page: page 69">>></a>\n + <a class="pageNavigation" href="#" title="Last Page: page 411">\xe2\x86\x92</a>\n + </td>\n + </tr>\n + </tfoot>\n +\n + <tbody>\n + <tr>\n + <td class="mainDoc"><a href="">Rapport sur les changements</a></td>\n + <td class="date">1/4/2006</td>\n + <td class="date">23/4/2006</td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="externalLink"><a href="">Direction des changements</a></td>\n + <td class="number">4</td>\n + <td class="published">Published</td>\n + </tr>\n + <tr>\n + <td class="mainDoc"><a href="">Compte Rendu</a></td>\n + <td class="date">14/1/2006</td>\n + <td class="date">8/3/2006</td>\n + <td class="externalLink"><a href="">Health</a></td>\n + <td class="emptyCell">-</td>\n + <td class="emptyCell">-</td>\n + <td class="number">4</td>\n + <td class="draft">Draft</td>\n + </tr>\n + </tbody>\n +\n +</table>\n +\n +\n + </tal:block>\n + </tal:block>\n + </tal:block>\n +</tal:block> + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_custom_task</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>XXX MOCKUP</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_fake_search.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_fake_search.xml new file mode 100644 index 0000000000..abfcaa116c --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/my_fake_search.xml @@ -0,0 +1,173 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block metal:define-macro="master">\n + <tal:block metal:use-macro="here/medicentre_section_master/macros/master">\n + <tal:block metal:fill-slot="main_content">\n + <tal:block metal:define-slot="main">\n +\n +\n +\n +\n +<div class="centeredInner searchBar">\n + <form method="POST">\n + <input class="text" type="text" value="tellus" size="40"/>\n + <input class="button" value="Chercher" type="submit"/>\n + <a href="advanced_search" class="tinyFont">Advanced search</a>\n + </form>\n +</div>\n +\n +\n +<div class="searchResultHeader">\n + <div>\n + <span class="left"><b>Search Results</b></span>\n + <span class="right">Resultats <b>1 - 10</b> sur un total de <b>40</b> pour <b>tellus</b>.</span>\n + </div>\n + <div class="clear"></div>\n +</div>\n +\n +\n +<ul class="searchResult">\n +\n + <li>\n + <div class="typeIcon">\n + <a href="#" title="Download original file"><img src="pictures/type-pdf.png"/></a>\n + </div>\n + <div class="detail">\n + <h4><a href="https://nexedi.com/dummy-section/lorem-ipsum-report" title="State: published - Version: 0.2 - Language: FR - Last Modification: 2006/02/26 - Ownership: Mr. McTree, John Smith">Lorem Ipsum Report</a></h4>\n + </div>\n + <div class="clear"></div>\n + </li>\n +\n + <li tal:repeat="dummy python: range(9)">\n + <div class="typeIcon">\n + <a href="#" title="Download original file"><img src="pictures/type-image.png"/></a>\n + </div>\n + <div class="detail">\n + <h4><a href="https://nexedi.com/dummy-section/lorem-ipsum-report" title="State: published - Version: 0.2 - Language: FR - Last Modification: 2006/02/26 - Ownership: Mr. McTree, John Smith">Lorem Ipsum Report</a></h4>\n + <p>\n + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris consectetuer, magna eu egestas elementum, eros <em>tellus</em> scelerisque dolor, molestie sollicitudin nibh mi porttitor elit. Proin velit metus, volutpat vel, laoreet at, rhoncus nec, tellus...<br/>\n + <span class="searchDetails">\n + <a href="#" title="Documents of the same reference">RT-DFP-3242-300A</a>\n + - v0.1 - fr - 23 feb 2006 -\n + </span>\n + <span class="relatedLinks">\n + <a href="#" title="Documents of the same programme">Programme</a> -\n + <a title="Documents in the same service" href="#">Service</a> -\n + <a href="#" title="Documents in the same theme">Theme</a>\n + </span>\n + <!--div class="doNotDisplay" name="searchDetails">\n + State: <span style="color:#078307; font-weight: bold;">published</span><br/>\n + Version: 0.2<br/>\n + Language: FR<br/>\n + Last Modification: 2006/02/26<br/>\n + Ownership: <a href="#">Mr. McTree</a>, <a href="#">John Smith</a><br/>\n + </div-->\n + </p>\n + </div>\n + <div class="clear"></div>\n + </li>\n +\n +</ul>\n +\n +\n +<div class="centeredInner searchPages">\n + Result Page:\n + <a href="#">1</a>\n + <a href="#">2</a>\n + <span class="selected">3</span>\n + <a href="#">4</a>\n + <a href="#">5</a>\n + <a href="#">6</a>\n + <a href="#">7</a>\n +</div>\n +\n +\n +<div class="centeredInner extendedSearchBar">\n + <form method="POST">\n + <input class="text" type="text" value="tellus" size="40"/>\n + <input class="button" value="Chercher" type="submit"/>\n + </form>\n + <p>\n + <a href="advanced_search">Search within results</a> |\n + <a href="advanced_search">Search Tips</a> |\n + <a href="advanced_search">Advanced search</a>\n + </p>\n +</div>\n +\n +\n +\n + </tal:block>\n + </tal:block>\n + </tal:block>\n +</tal:block> + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_fake_search</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>XXX MOCKUP</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/bt/change_log b/bt5/erp5_web/bt/change_log index 9a778c1156..9c0bcd00cf 100644 --- a/bt5/erp5_web/bt/change_log +++ b/bt5/erp5_web/bt/change_log @@ -1,6 +1,7 @@ 2006-07-20 Kevin * Add description on publication workflow. * In ListBox_asWebStyleHTML, use editable_field returned by the rendering of a listbox to get and apply the css style even if the table cell is empty. +* Add listbox mockups. 2006-06-15 Kevin * Move fulltext indexing ZSQLMethods to erp5_core. diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index fc9afb48e0..b44fe09a7a 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -59 \ No newline at end of file +65 \ No newline at end of file -- 2.30.9