[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/zopetop/widget_macros.pt
Added missing 'widget_rows' macros so that the skin is not
completely
Sidnei da Silva
sidnei at awkly.org
Tue Jul 6 15:03:13 EDT 2004
Log message for revision 26125:
Added missing 'widget_rows' macros so that the skin is not completely
broken. We should revisit this eventually.
Reindent and remove whitespace.
-=-
Modified: Zope3/trunk/src/zope/app/zopetop/widget_macros.pt
===================================================================
--- Zope3/trunk/src/zope/app/zopetop/widget_macros.pt 2004-07-06 19:03:04 UTC (rev 26124)
+++ Zope3/trunk/src/zope/app/zopetop/widget_macros.pt 2004-07-06 19:03:13 UTC (rev 26125)
@@ -1,233 +1,253 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html i18n:domain="zope">
-<head>
- <link href="zopetopBasic.css" rel="stylesheet" type="text/css" />
- <link href="zopetopStructure.css" rel="stylesheet" type="text/css" />
- <link href="zopetopWidgets.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
+ <head>
+ <link href="zopetopBasic.css" rel="stylesheet" type="text/css" />
+ <link href="zopetopStructure.css" rel="stylesheet" type="text/css" />
+ <link href="zopetopWidgets.css" rel="stylesheet" type="text/css" />
+ </head>
+ <body>
+ <metal:block define-macro="widget_rows">
+ <div class="row" tal:repeat="widget view/widgets">
+ <metal:block define-macro="widget_row">
+ <div class="label"
+ tal:condition="widget/label|nothing">
+ <label for="field.name" title="The widget's hint"
+ tal:attributes="for widget/name; title widget/hint"
+ tal:content="widget/label">The Label</label>
+ </div>
+ <div class="field" tal:content="structure widget">
+ <input type="text" style="width:100%"/>
+ </div>
+ <div class="error" tal:define="error widget/error"
+ tal:condition="error" tal:content="structure error">
+ The Error
+ </div>
+ </metal:block>
+ </div>
+ </metal:block>
-<div class="user" metal:define-macro="logged_user" i18n:translate="">
- Logged in as
- <span tal:replace="request/principal/title" i18n:name="user_title">
- dtremea</span>
-</div>
+ <div class="user" metal:define-macro="logged_user" i18n:translate="">
+ Logged in as
+ <span tal:replace="request/principal/title" i18n:name="user_title">
+ dtremea</span>
+ </div>
-<div class="box" id="navigationTree" metal:define-macro="navigation_box">
- <metal:tree use-macro="context/@@standard_macros/navigation_tree_box" />
-</div>
-<div class="box" id="commonTasks"
- tal:define="view context/@@commonTasks|nothing"
- tal:condition="view/strip|nothing"
- metal:define-macro="commontasks_box">
+ <div class="box" id="navigationTree" metal:define-macro="navigation_box">
+ <metal:tree use-macro="context/@@standard_macros/navigation_tree_box" />
+ </div>
- <h5 i18n:translate="">Common Tasks</h5>
+ <div class="box" id="commonTasks"
+ tal:define="view context/@@commonTasks|nothing"
+ tal:condition="view/strip|nothing"
+ metal:define-macro="commontasks_box">
- <div class="body" tal:content="structure view">
- CommonTasks
- </div>
-</div>
+ <h5 i18n:translate="">Common Tasks</h5>
-<div class="box" metal:define-macro="services_box">
- <h5 i18n:translate="">Services</h5>
- <div class="body">
- <div class="content even">
- <img src="user_accounts.gif" width="22" height="28"
- tal:attributes="src context/++resource++user_accounts.gif"
- alt="user accounts" i18n:attributes="alt"/>
- <span i18n:translate="">User Accounts</span>
+ <div class="body" tal:content="structure view">
+ CommonTasks
+ </div>
</div>
- <div class="content odd">
- <img src="control_panels.gif" width="24" height="28"
- tal:attributes="src context/++resource++control_panels.gif"
- alt="control panels" i18n:attributes="alt"/>
- <span i18n:translate="">Control Panels</span>
+
+ <div class="box" metal:define-macro="services_box">
+ <h5 i18n:translate="">Services</h5>
+ <div class="body">
+ <div class="content even">
+ <img src="user_accounts.gif" width="22" height="28"
+ tal:attributes="src context/++resource++user_accounts.gif"
+ alt="user accounts" i18n:attributes="alt"/>
+ <span i18n:translate="">User Accounts</span>
+ </div>
+ <div class="content odd">
+ <img src="control_panels.gif" width="24" height="28"
+ tal:attributes="src context/++resource++control_panels.gif"
+ alt="control panels" i18n:attributes="alt"/>
+ <span i18n:translate="">Control Panels</span>
+ </div>
+ <div class="content even">
+ <img src="system_security.gif" width="23" height="28"
+ tal:attributes="src context/++resource++system_security.gif"
+ alt="system security" i18n:attributes="alt" />
+ <span i18n:translate="">System Security</span>
+ </div>
+ <div class="content odd">
+ <img src="add_more.gif" width="26" height="28"
+ tal:attributes="src context/++resource++add_more.gif"
+ alt="add more" i18n:attributes="alt" />
+ <span i18n:translate="">Add More</span>
+ </div>
+ </div>
</div>
- <div class="content even">
- <img src="system_security.gif" width="23" height="28"
- tal:attributes="src context/++resource++system_security.gif"
- alt="system security" i18n:attributes="alt" />
- <span i18n:translate="">System Security</span>
- </div>
- <div class="content odd">
- <img src="add_more.gif" width="26" height="28"
- tal:attributes="src context/++resource++add_more.gif"
- alt="add more" i18n:attributes="alt" />
- <span i18n:translate="">Add More</span>
- </div>
- </div>
-</div>
-<table metal:define-macro="explorer_box" align="center" class="box" width="150">
- <thead>
- <tr>
- <th align="center" class="boxtop" i18n:translate="">Root Folder</th>
- <th class="empty"> </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td colspan="2" class="odd"><a href="#">
- <img src="plus.gif" width="19" height="25"
- tal:attributes="src context/++resource++plus.gif"
- alt="+" />
- <img src="closed_folder.gif" width="26" height="25"
- tal:attributes="src context/++resource++closed_folder.gif"
- alt="folder" />
- Folder Name</a>
- </td>
- </tr>
- <tr>
- <td colspan="2" class="odd"><a href="#">
- <img src="plus.gif" width="19" height="25"
- tal:attributes="src context/++resource++plus.gif"
- alt="+" />
- <img src="closed_folder.gif" width="26" height="25"
- tal:attributes="src context/++resource++closed_folder.gif"
- alt="folder" />
- Folder Name</a>
- </td>
- </tr>
- <tr>
- <td colspan="2" class="even"><a href="#">
- <img src="minus.gif" width="19" height="25"
- tal:attributes="src context/++resource++minus.gif"
- alt="-" />
- <img src="closed_folder.gif" width="26" height="25"
- tal:attributes="src context/++resource++closed_folder.gif"
- alt="folder" />
- Folder Name</a>
- </td>
- </tr>
- </tbody>
- </table>
+ <table metal:define-macro="explorer_box" align="center" class="box" width="150">
+ <thead>
+ <tr>
+ <th align="center" class="boxtop" i18n:translate="">Root Folder</th>
+ <th class="empty"> </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="2" class="odd"><a href="#">
+ <img src="plus.gif" width="19" height="25"
+ tal:attributes="src context/++resource++plus.gif"
+ alt="+" />
+ <img src="closed_folder.gif" width="26" height="25"
+ tal:attributes="src context/++resource++closed_folder.gif"
+ alt="folder" />
+ Folder Name</a>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="odd"><a href="#">
+ <img src="plus.gif" width="19" height="25"
+ tal:attributes="src context/++resource++plus.gif"
+ alt="+" />
+ <img src="closed_folder.gif" width="26" height="25"
+ tal:attributes="src context/++resource++closed_folder.gif"
+ alt="folder" />
+ Folder Name</a>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="even"><a href="#">
+ <img src="minus.gif" width="19" height="25"
+ tal:attributes="src context/++resource++minus.gif"
+ alt="-" />
+ <img src="closed_folder.gif" width="26" height="25"
+ tal:attributes="src context/++resource++closed_folder.gif"
+ alt="folder" />
+ Folder Name</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
- <table metal:define-macro="search_box" align="center" class="box"
- width="150">
- <thead>
- <tr>
- <th align="center" class="boxtop">Search</th>
- <th class="empty"> </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td colspan="2" nowrap="nowrap">
- <form name="search">
- <input type="text" size="15" style="width: 85%;" />
- <input type="submit" value="Go" style="width: 15%;" />
- </form>
- </td>
- </tr>
- </tbody>
- </table>
+ <table metal:define-macro="search_box" align="center" class="box"
+ width="150">
+ <thead>
+ <tr>
+ <th align="center" class="boxtop">Search</th>
+ <th class="empty"> </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="2" nowrap="nowrap">
+ <form name="search">
+ <input type="text" size="15" style="width: 85%;" />
+ <input type="submit" value="Go" style="width: 15%;" />
+ </form>
+ </td>
+ </tr>
+ </tbody>
+ </table>
- <div class="box"
- tal:define="views context/@@view_get_menu/zmi_views|nothing"
- tal:condition="views"
- metal:define-macro="views_box">
+ <div class="box"
+ tal:define="views context/@@view_get_menu/zmi_views|nothing"
+ tal:condition="views"
+ metal:define-macro="views_box">
- <h5 i18n:translate="">Views</h5>
+ <h5 i18n:translate="">Views</h5>
- <div class="body">
- <div class="content" tal:repeat="view views">
- <a href="" tal:attributes="href view/action"
- tal:content="view/title">
- View
- </a>
- </div>
- </div>
- </div>
+ <div class="body">
+ <div class="content" tal:repeat="view views">
+ <a href="" tal:attributes="href view/action"
+ tal:content="view/title">
+ View
+ </a>
+ </div>
+ </div>
+ </div>
- <div class="box"
- tal:define="actions context/@@view_get_menu/zmi_actions|nothing"
- tal:condition="actions"
- metal:define-macro="actions_box">
+ <div class="box"
+ tal:define="actions context/@@view_get_menu/zmi_actions|nothing"
+ tal:condition="actions"
+ metal:define-macro="actions_box">
- <h5 i18n:translate="">Actions</h5>
+ <h5 i18n:translate="">Actions</h5>
- <div class="body">
- <div class="content" tal:repeat="action actions">
- <a href="" tal:attributes="href action/action"
- tal:content="action/title">
- Action
- </a>
- </div>
- </div>
- </div>
+ <div class="body">
+ <div class="content" tal:repeat="action actions">
+ <a href="" tal:attributes="href action/action"
+ tal:content="action/title">
+ Action
+ </a>
+ </div>
+ </div>
+ </div>
- <div class="box"
- tal:define="view context/@@MetaDataBox|nothing"
- tal:condition="view/strip|nothing"
- metal:define-macro="metadata_box">
+ <div class="box"
+ tal:define="view context/@@MetaDataBox|nothing"
+ tal:condition="view/strip|nothing"
+ metal:define-macro="metadata_box">
- <h5 i18n:translate="">Metadata</h5>
+ <h5 i18n:translate="">Metadata</h5>
- <div class="body">
- <div class="content" tal:content="structure view">
- Some metadata
- </div>
- </div>
- </div>
+ <div class="body">
+ <div class="content" tal:content="structure view">
+ Some metadata
+ </div>
+ </div>
+ </div>
-<div class="breadcrumbs" metal:define-macro="content_header_bar">
- <span i18n:translate="">Location:</span>
- <span
- metal:define-macro="breadcrumbs"
+ <div class="breadcrumbs" metal:define-macro="content_header_bar">
+ <span i18n:translate="">Location:</span>
+ <span
+ metal:define-macro="breadcrumbs"
tal:omit-tag=""
- tal:repeat="breadcrumb context/@@absolute_url/breadcrumbs"> <a href=""
- tal:attributes="href string:${breadcrumb/url}/@@manage"
- tal:content="string:${breadcrumb/name}/"
- >name</a></span>
+ tal:repeat="breadcrumb context/@@absolute_url/breadcrumbs">
+ <a href=""
+ tal:attributes="href string:${breadcrumb/url}/@@manage"
+ tal:content="string:${breadcrumb/name}/"
+ >name</a></span>
+ </div>
-</div>
+ <div class="itemViews"
+ metal:define-macro="zmi_views">
+ <tal:block repeat="view context/@@view_get_menu/zmi_views">
+ <a href=""
+ tal:attributes="href view/action;
+ class view/selected;"
+ tal:content="view/title"
+ i18n:translate="">
+ label
+ </a>
+ </tal:block>
+ </div>
-<div class="itemViews"
- metal:define-macro="zmi_views">
- <tal:block repeat="view context/@@view_get_menu/zmi_views">
- <a href=""
- tal:attributes="href view/action;
- class view/selected;"
- tal:content="view/title"
- i18n:translate="">
- label
- </a>
- </tal:block>
-</div>
-
-<div class="actions"
- metal:define-macro="zmi_actions"
- tal:define="actions context/@@view_get_menu/zmi_actions">
- <span tal:condition="actions"
- tal:omit-tag="">
- <a href="#"
- tal:repeat="info actions"
- tal:attributes="href info/action"
- tal:content="info/title"
- i18n:translate="">
- Action name
- </a>
- </span>
- <span class="help">
- <a href="#">
+ <div class="actions"
+ metal:define-macro="zmi_actions"
+ tal:define="actions context/@@view_get_menu/zmi_actions">
+ <span tal:condition="actions"
+ tal:omit-tag="">
+ <a href="#"
+ tal:repeat="info actions"
+ tal:attributes="href info/action"
+ tal:content="info/title"
+ i18n:translate="">
+ Action name
+ </a>
+ </span>
+ <span class="help">
+ <a href="#">
<span i18n:translate="">Help</span>
<img src="help.gif" width="25" height="25"
tal:attributes="src context/++resource++help.gif"
alt="help" />
</a>
- </span>
+ </span>
-</div>
+ </div>
-<div metal:define-macro="footer"
- tal:define="view context/@@MetaDataBox|nothing"
- class="footer">
- <div tal:condition="view/strip|nothing"
- class="metadata" tal:content="structure view" />
- <div i18n:translate="">Powered by Zope</div>
-</div>
+ <div metal:define-macro="footer"
+ tal:define="view context/@@MetaDataBox|nothing"
+ class="footer">
+ <div tal:condition="view/strip|nothing"
+ class="metadata" tal:content="structure view" />
+ <div i18n:translate="">Powered by Zope</div>
+ </div>
-</body>
+ </body>
</html>
More information about the Zope3-Checkins
mailing list