[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZMI/www - dialog_macros.pt:1.1 view_macros.pt:1.1 standard_macros.pt:NONE

Steve Alexander steve@cat-box.net
Tue, 22 Oct 2002 15:35:00 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/www
In directory cvs.zope.org:/tmp/cvs-serv30515/python/Zope/App/ZMI/www

Added Files:
	dialog_macros.pt view_macros.pt 
Removed Files:
	standard_macros.pt 
Log Message:
Changed standard_macros to provide macros aggregated from view_macros.pt
and also from dialog_macros.pt.

Introduced the notion of a "dialog", which is like a normal ZMI view, 
except that management tabs (and other such links to views) are missing.
This makes all the links on the Add-form work.
You make something a dialog by using the macro standard_macros/dialog
rather than standard_macros/page.



=== Added File Zope3/lib/python/Zope/App/ZMI/www/dialog_macros.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:define-macro="dialog">
<head metal:use-macro="views/standard_macros/head" />

<body>
  <span metal:use-macro="views/standard_macros/breadcrumbs" />

  <div metal:define-slot="body">
     <p>Body here</p>
  </div>

  <div metal:use-macro="views/standard_macros/footer" />
</body>
</html>



=== Added File Zope3/lib/python/Zope/App/ZMI/www/view_macros.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:define-macro="page">
<head metal:define-macro="head">
  <title 
    metal:define-slot="title"
    tal:content="options/getTitle|view/getTitle|context/getTitle|default"
    >Zope</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="/@@/zopetopBasic.css" rel="stylesheet" type="text/css"
        tal:attributes="href string:/@@/zopetopBasic.css" />
  <link href="/@@/zopetopWidgets.css" rel="stylesheet" type="text/css"
        tal:attributes="href string:/@@/zopetopWidgets.css" />
  <link href="/@@/zopetopStructure.css" rel="stylesheet" type="text/css"
        tal:attributes="href string:/@@/zopetopStructure.css" />
  <div metal:define-slot="headers">
  </div>
</head>
<body>

  <table metal:define-macro="zmi_tabs"><tr>
    <td tal:repeat="view views/ZMIUtility/getZMIViews">
    <a href="" tal:attributes="href view/action" tal:content="view/title">
	label</a>
    </td>
   </tr></table>

   <span
       metal:define-macro="breadcrumbs"
       tal:repeat="breadcrumb context/@@absolute_url/breadcrumbs">
      <a href="" 
         tal:attributes="href 
                    string:${breadcrumb/url}/@@SelectedManagementView.html"
         tal:content="string:${breadcrumb/name}/"
         >name</a>&nbsp</span>

  <div metal:define-slot="body">
     <p>Body here</p>
  </div>

  <div metal:define-macro="footer">
  <p>User: <span tal:replace="request/user/getTitle">User</span><p>
  </div>
</body>
</html>


=== Removed File Zope3/lib/python/Zope/App/ZMI/www/standard_macros.pt ===