[Zope-CVS] CVS: Products3/RotterdamSprint - add.pt:1.1
Bernhard Buehlmann
b.buehlmann@4teamwork.ch
Wed, 4 Dec 2002 08:28:26 -0500
Update of /cvs-repository/Products3/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv29888
Added Files:
add.pt
Log Message:
added add.pt for object factory
=== Added File Products3/RotterdamSprint/add.pt ===
<html metal:use-macro="views/standard_macros/dialog">
<head>
<style metal:fill-slot="headers" type="text/css">
.Selector {
width: 10px;
}
.TypeIcon {
width: 20px;
}
.TypeName {
text-align: left;
}
.TypeDescription {
text-align: left;
font-style: italic;
}
</style>
</head>
<body>
<div metal:fill-slot="body">
<form action="action.html" method="POST">
<table class="TypeListing" cellpadding="3">
<caption>Add Content</caption>
<!--
** listAddableInfo returns a sequence of mappings, containing:
** 'id' : the ID of the addable type
** 'title' : the title of the addable type
** 'description' : the description of the addable type
-->
<tbody tal:repeat="info view/addingInfo">
<tr>
<td class="Selector">
<input type="radio" name="type_name"
tal:attributes="value info/action; id info/action" />
</td>
<td class="TypeName">
<label style="font-weight: bold;"
tal:attributes="for info/action">
<span tal:replace="info/title" >Folder</span>
</label>
<div class="TypeDescription" tal:content="info/description">
Folders are generic containers for content, including other
folders.
</div>
</td>
</tr>
</tbody>
<tbody tal:condition="nothing">
<tr>
<td class="Selector">
<input type="radio" name="type_name" value="" />
</td>
<td class="TypeName">
<img alt="Folder" src="../../ZMI/www/document_icon.gif" />
Document
</td>
</tr>
<tr>
<td class="Selector"><br /></td>
<td class="TypeDescription">
Documents are simple textual content.
</td>
</tr>
</tbody>
<tr>
<td><br/></td>
<td>
<input type="text" name="id" tal:condition="view/namesAccepted" />
<input type="submit" value=" Add " />
</td>
</tr>
</table>
</form>
</div>
</body>
</html>