Author: jmorliaguet Date: Fri Jun 9 19:02:15 2006 New Revision: 3379 Added: cpsskins/branches/paris-sprint-2006/ui/screens/common/content_factory.pt (contents, props changed) Removed: cpsskins/branches/paris-sprint-2006/ui/screens/common/portlet_factory.pt Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt
Log: - rename portlet-factory as content-factory Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml ============================================================================== --- cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml (original) +++ cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml Fri Jun 9 19:02:15 2006 @@ -50,8 +50,8 @@ /> <page - name="portletFactory.html" - template="portlet_factory.pt" + name="content-factory.html" + template="content_factory.pt" /> <page Added: cpsskins/branches/paris-sprint-2006/ui/screens/common/content_factory.pt ============================================================================== --- (empty file) +++ cpsskins/branches/paris-sprint-2006/ui/screens/common/content_factory.pt Fri Jun 9 19:02:15 2006 @@ -0,0 +1,15 @@ +<tal:block define="portlets context/@@view_get_menu/cpsskins_add_portlet" + condition="portlets"> + <tal:block repeat="portlet portlets"> + <div class="factory" + tal:define="title portlet/title" + tal:attributes="type_name portlet/action"> + <img class="icon" i18n:attributes="title" + tal:attributes="title title; + src string:++resource++${portlet/icon}" /> + <span class="title" tal:content="title" /> — + <span class="description" tal:content="portlet/description" /> + <div style="clear:both"></div> + </div> + </tal:block> +</tal:block> Modified: cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py ============================================================================== --- cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py (original) +++ cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py Fri Jun 9 19:02:15 2006 @@ -186,10 +186,10 @@ }, # the portlet factory at the bottom of the screen - 'portlet-factory': { - 'id': 'portlet-factory', + 'content-factory': { + 'id': 'content-factory', 'data': { - 'url': '@@portletFactory.html', + 'url': '@@content-factory.html', }, }, @@ -342,7 +342,7 @@ 'perspectives': ['wysiwyg'], 'controllers': ['main-editor-perspectives', 'disable-links', 'page-mode-perspectives', 'element-mover', - 'portlet-factory', 'main-editor-actions', + 'content-factory', 'main-editor-actions', 'menu-actions'], }, @@ -355,7 +355,7 @@ 'perspectives': ['layout'], 'controllers': ['main-editor-perspectives', 'disable-links', 'page-mode-perspectives', 'element-mover', - 'portlet-factory', 'main-editor-actions', + 'content-factory', 'main-editor-actions', 'menu-actions'], }, @@ -368,7 +368,7 @@ 'model': 'content-author', 'perspectives': ['content-author'], 'controllers': ['main-editor-perspectives', 'element-mover', - 'portlet-factory', 'disable-links', 'menu-actions'] + 'content-factory', 'disable-links', 'menu-actions'] }, # the site manager screen @@ -445,14 +445,14 @@ }, # Bottom area - 'portlet-factory': { - 'id': 'portlet-factory', + 'content-factory': { + 'id': 'content-factory', 'widget': { 'type': 'panel', }, - 'model': 'portlet-factory', + 'model': 'content-factory', 'perspectives': ['page-designer', 'content-author'], - 'controllers': ['main-editor-perspectives', 'portlet-factory'], + 'controllers': ['main-editor-perspectives', 'content-factory'], }, # Contextual menu @@ -548,8 +548,8 @@ }, # portlet factory at the bottom of the screen [ ][ ][ ][ ] ... - 'portlet-factory': { - 'id': 'portlet-factory', + 'content-factory': { + 'id': 'content-factory', 'type': 'drag-and-drop', 'dragging': { 'source': 'factory', Modified: cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt ============================================================================== --- cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt (original) +++ cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt Fri Jun 9 19:02:15 2006 @@ -58,11 +58,11 @@ <!-- left panel --> <td class="toolbox"> <ins class="model" - tal:content="python: model('portlet-factory')" /> + tal:content="python: model('content-factory')" /> <ins class="view" - tal:content="python: view('portlet-factory')" /> + tal:content="python: view('content-factory')" /> <ins class="controller" - tal:content="python: controller('portlet-factory')" /> + tal:content="python: controller('content-factory')" /> </td> <!-- rendered pages --> <td id="canvasArea" valign="top"> -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins