Author: jmorliaguet
Date: Wed Oct 26 23:26:39 2005
New Revision: 28685

Modified:
   z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/edit_menu.pt
   z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/editing.css
Log:

- UI: the selected format is displayed as selected.



Modified: 
z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/edit_menu.pt
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/edit_menu.pt     
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/edit_menu.pt     
Wed Oct 26 23:26:39 2005
@@ -37,8 +37,11 @@
         <li tal:define="formats formattable/getFormats"
             tal:condition="formats"
             tal:repeat="format formats">
-          <a class="item format" i18n:translate=""
-             tal:attributes="href 
string:./@@edit-menu.html?format=${format/formatname}"
+          <a i18n:translate=""
+             tal:define="this_format_name format/formatname"
+             tal:attributes="class python: format_name == this_format_name and
+                            'itemselected format' or 'item format';
+               href string:./@@edit-menu.html?format=$this_format_name"
              tal:content="format/type:contenttype" />
         </li>
       </tal:block>

Modified: z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/editing.css
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/editing.css      
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/editing.css      
Wed Oct 26 23:26:39 2005
@@ -138,7 +138,8 @@
   text-transform: lowercase;
 }
 
-ul.buttons li a.item, ul.buttons li a.item:visited {
+ul.buttons li a.item, ul.buttons li a.item:visited,
+ul.buttons li a.itemselected {
   border-width: 1px;
   border-style: solid;
   border-color: #ccc #666 #666 #ccc;
@@ -155,7 +156,7 @@
   vertical-align: bottom;
 }
 
-ul.buttons li a.item:hover {
+ul.buttons li a.item:hover, ul.buttons li a.itemselected {
   background-color: #fff;
   border-color: #333 #ccc #ccc #333;
 }
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to