Author: madarche Date: Mon Oct 16 15:26:29 2006 New Revision: 49613 Modified: CPS3/products/CPSSchemas/trunk/CHANGES CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_image_render.pt CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_photo_render.pt Log: - Added a maxlength attribute to conform to the rule "Fiche 1.4 : Pour chacune des images de la page, les textes dans l'attribut ALT font-ils moins de 60 caractères ?" cf. http://www.accessiweb.org/fr/guide_accessiweb/guide-accessiweb-fiche-1-4.html - Rationalized a bit variable names. Modified: CPS3/products/CPSSchemas/trunk/CHANGES ============================================================================== --- CPS3/products/CPSSchemas/trunk/CHANGES (original) +++ CPS3/products/CPSSchemas/trunk/CHANGES Mon Oct 16 15:26:29 2006 @@ -6,7 +6,10 @@ - Bug fixes: ~~~~~~~~~~ -- +- Added a maxlength attribute to conform to the rule + "Fiche 1.4 : Pour chacune des images de la page, les textes dans l'attribut + ALT font-ils moins de 60 caractères ?" + cf. http://www.accessiweb.org/fr/guide_accessiweb/guide-accessiweb-fiche-1-4.html New internal features: ~~~~~~~~~~~~~~~~~~~~~~ - Modified: CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_image_render.pt ============================================================================== --- CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_image_render.pt (original) +++ CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_image_render.pt Mon Oct 16 15:26:29 2006 @@ -1,11 +1,12 @@ <tal:block define="mode options/mode; - id here/getWidgetId; + id here/getHtmlWidgetId; fields here/fields; current_filename options/current_filename; empty_file options/empty_file; session_file options/session_file; mimetype options/mimetype; size options/size; + title options/title; content_url options/content_url; last_modified options/last_modified; content_url_nocache string:${content_url}?nocache=${last_modified}; @@ -62,5 +63,16 @@ </tal:block> </metal:block> + <tal:block condition="python:len(fields) > 1"> + <p> + <tal:block i18n:translate="cpsschemas_image_title"> + Image title : + </tal:block> + <input type="text" size="30" maxlength="60" + tal:attributes="name string:${id}_title; + value title" /> + </p> + </tal:block> + </tal:block> </tal:block> Modified: CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_photo_render.pt ============================================================================== --- CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_photo_render.pt (original) +++ CPS3/products/CPSSchemas/trunk/skins/cps_schemas/widget_photo_render.pt Mon Oct 16 15:26:29 2006 @@ -1,6 +1,5 @@ <tal:block define="mode options/mode; - id here/getWidgetId; - value_name here/getHtmlWidgetId; + id here/getHtmlWidgetId; fields here/fields; current_filename options/current_filename; empty_file options/empty_file; @@ -88,11 +87,11 @@ </tal:block> <tal:block condition="python:len(fields) > 2 and 'position' in configurable"> - <p tal:define="name here/getHtmlWidgetId"> + <p> <tal:block i18n:translate="cpsschemas_render_position"> Render position </tal:block> - <select tal:attributes="name string:${value_name}_rposition"> + <select tal:attributes="name string:${id}_rposition"> <option tal:repeat="op here/all_render_positions" tal:attributes="selected python:op == rposition; value op" @@ -107,8 +106,8 @@ <tal:block i18n:translate="cpsschemas_image_title"> Image title : </tal:block> - <input type="text" size="30" - tal:attributes="name string:${value_name}_title; + <input type="text" size="30" maxlength="60" + tal:attributes="name string:${id}_title; value title" /> </p> </tal:block> @@ -119,7 +118,7 @@ Photo subtitle : </tal:block> <input type="text" size="30" - tal:attributes="name string:${value_name}_subtitle; + tal:attributes="name string:${id}_subtitle; value subtitle" /> </p> </tal:block>
This page is a mailing archive for one of the Nuxeo projects.
[2009/07/02] Nuxeo Launches Nuxeo Document Management Cloud Edition For Easy-To-Use and Secure Document Management
[2009/06/29] Nuxeo Expands Global Operations in Exclusive Strategic Agreement with Kisiwa[2009/06/29] Nuxeo DM - Updated user guide and The "website" feature screencast available ![2009/06/08] Gilbane Conference - Eric Barroca's Presentation slides