Author: jmorliaguet Date: Wed May 17 23:31:33 2006 New Revision: 3160 Modified: cpsskins/branches/paris-sprint-2006/ui/manager/themes_manager.pt
Log: - made it impossible to add / edit themes if they're not activated. Modified: cpsskins/branches/paris-sprint-2006/ui/manager/themes_manager.pt ============================================================================== --- cpsskins/branches/paris-sprint-2006/ui/manager/themes_manager.pt (original) +++ cpsskins/branches/paris-sprint-2006/ui/manager/themes_manager.pt Wed May 17 23:31:33 2006 @@ -2,12 +2,11 @@ <body> <div metal:fill-slot="body" tal:define="enabled view/isEnabled"> - <h4>Themes</h4> <tal:block define="themes view/listThemeInfo"> <ul> <li tal:repeat="theme themes"> - <a href="" + <a href="" tal:omit-tag="not:enabled" tal:content="theme/id" tal:attributes="href theme/edit_url" /> (<span tal:content="theme/title" />) @@ -15,11 +14,14 @@ </ul> <p tal:condition="not:themes">There are no themes</p> </tal:block> - <form action="./@@addTheme.html" method="post"> + <form action="./@@addTheme.html" method="post" tal:condition="enabled"> <p> <input type="submit" value="Add a theme" /> </p> </form> + <p tal:condition="not:enabled"> + Themes are deactived. Use the registration tab to activate them. + </p> </div> </body> </html> -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins