[Zope3-Users] Customisation of addform

Florian Lindner mailinglists at xgm.de
Sun Nov 28 03:48:24 EST 2004


Hello,
I've a standard addform which looks like that (the HTML source which was 
filled in the body slot of the page macro. (shortened)

   <div>
   <div>
     <form 
action="http://localhost:8080/++skin++centershock/eventfolder/+/AddCSEvent.html%3D"
           method="post" enctype="multipart/form-data">
       <div>
         <h3>Add CSEvent</h3>

       <div class="row">
           <div class="label">
             <label for="field.name" title="Short name">Name</label>
           </div>
           <div class="field"><input class="textType" id="field.name" 
name="field.name" size="20" type="text" value=""  /></div>
           </div>


         <div class="separator"></div>
         <div class="separator"></div>

       </div>
       <br /><br />
       <div class="row">
         <div class="controls"><hr />

           <input type="submit" value="Refresh" />
           <input type="submit" value="Add"
                  name="UPDATE_SUBMIT" />

         </div>
       </div>

       <div class="separator"></div>
     </form>
   </div>

   </div>


What possibilities do I have to modify this form?

1) Modifiy the page macro, use CSS.
2) Using an alternate template (ZCML: template), maybe using ZCML: 
class_ for custom widgets.
3) Changing ZCML: title, menu, label, fields
4) ...??

Anything else I forgot?

Thanks,
Florian




More information about the Zope3-users mailing list