Commit bb9e9db0 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Add dtml form for creating ERP5Catlog object

parent 6ab023a5
......@@ -148,7 +148,7 @@ RESERVED_KEY_LIST = ('where_expression', 'sort-on', 'sort_on', 'sort-order', 'so
valid_method_meta_type_list = ('Z SQL Method', 'LDIF Method', 'Script (Python)') # Nicer
manage_addSQLCatalogForm = DTMLFile('dtml/addSQLCatalog',globals())
manage_addERP5CatalogForm = DTMLFile('dtml/addERP5Catalog',globals())
# Here go uid buffers
# Structure:
......@@ -351,7 +351,7 @@ class ERP5Catalog(Folder):
)
# Declarative Constructors
constructors = (manage_addERP5Catalog,)
constructors = (manage_addERP5CatalogForm, manage_addERP5Catalog,)
__ac_permissions__= (
('Manage ZCatalog Entries',
......
<dtml-comment>
Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
This software is subject to the provisions of the Zope Public License,
Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
FOR A PARTICULAR PURPOSE
</dtml-comment>
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add ERP5Catalog',
help_product='ERP5Catalog',
)">
<FORM ACTION="manage_addERP5Catalog" 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="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>
<dtml-var manage_page_footer>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment