[Zope-CVS] CVS: Products/CompositePage/www -
	addCompositeForm.zpt:1.1 addSlotForm.zpt:1.1
	composite.gif:1.1 comptool.gif:1.1 sample_template.zpt:1.1
    Shane Hathaway 
    shane at zope.com
       
    Fri Sep 26 17:21:07 EDT 2003
    
    
  
Update of /cvs-repository/Products/CompositePage/www
In directory cvs.zope.org:/tmp/cvs-serv25375/www
Added Files:
	addCompositeForm.zpt addSlotForm.zpt composite.gif 
	comptool.gif sample_template.zpt 
Log Message:
Added the CompositePage product.
CompositePage is like the PageDesign product, but simplified, and now based
on PDLib, a Javascript drag and drop / context menu library.
=== Added File Products/CompositePage/www/addCompositeForm.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h2 tal:define="form_title string:Add Composite"
    tal:replace="structure here/manage_form_title">Form Title</h2>
<p class="form-help">
Composites (from the CompositePage product) let you design pages
using a drag and drop interface with context menus.
</p>
<form action="manage_addComposite" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Title
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="title" size="50" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <div class="form-optional">
    Create sample template
    </div>
    </td>
    <td align="left" valign="top">
    <input type="checkbox" name="create_sample" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    </td>
    <td align="left" valign="top">
    <div class="form-element">
    <input class="form-element" type="submit" name="submit"
     value=" Add " /> 
    </div>
    </td>
  </tr>
</table>
</form>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
=== Added File Products/CompositePage/www/addSlotForm.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h2 tal:define="form_title string:Add Slot"
    tal:replace="structure here/manage_form_title">Form Title</h2>
<p class="form-help">
Slots contain elements for composites.
</p>
<form action="manage_addSlot" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
  <tr>
    <td align="left" valign="top">
    <div class="form-label">
    Id
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="id" size="40" />
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    </td>
    <td align="left" valign="top">
    <div class="form-element">
    <input class="form-element" type="submit" name="submit"
     value=" Add " /> 
    </div>
    </td>
  </tr>
</table>
</form>
<form action="manage_generateSlots" method="POST">
 <input type="submit" name="submit"
   value="Generate all slots used by the template" />
</form>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
=== Added File Products/CompositePage/www/composite.gif ===
  <Binary-ish file>
=== Added File Products/CompositePage/www/comptool.gif ===
  <Binary-ish file>
=== Added File Products/CompositePage/www/sample_template.zpt ===
<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body>
<table border="4" width="100%">
<tr>
<th colspan="3">
<h2>
Composite Page Example
</h2>
</th>
</tr>
<tr>
<td width="25%" valign="top">
Left column
<div class="column-element" tal:repeat="element here/slots/left/multiple|nothing"
     tal:content="structure element">
Element here...
</div>
</td>
<td width="50%" valign="top">
Middle column
<div class="main-element" tal:repeat="element here/slots/middle/multiple|nothing"
     tal:content="structure element">
Element here...
</div>
</td>
<td width="50%" valign="top">
Small ad
<table border="1" width="100%">
<tr>
<td tal:content="structure here/slots/small_ad/single|default">
 
</td>
</tr>
</table>
Right column
<div class="column-element" tal:repeat="element here/slots/right/multiple|nothing"
     tal:content="structure element">
Element here...
</div>
</td>
</tr>
</table>
<br />
<div align="center">
Copyrights and trademarks
<div tal:content="structure here/slots/bottom/single|default">
</div>
</div>
  </body>
</html>
    
    
More information about the Zope-CVS
mailing list