[Zope-CMF] Problems displaying Registration Form

Norman Khine norman@khine.net
Mon, 13 May 2002 21:40:26 +0000


This is a multi-part message in MIME format.
--------------070607060308010201020100
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,
I have extended the Registration form for the CMF, but am having some 
really weird problems with it - this being that when I test the 
join_form, from the portal_skins/customs/join_form the zpt functions 
correctly (what I mean is I have enable the user to add their password) 
BUT, when I try to view the form from the main site I can only view the 
option where the CMF site mails the password to the Member.

I have checked and unchecked this several times, closed the browser and 
opened it again, but I get the same results.

Can anyone please look at the ZPT and please help me as I am baffled as 
to what is going on.

Many thanks

Norman

--------------070607060308010201020100
Content-Type: text/html;
 name="join_form_new"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="join_form_new"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
      lang="en-US"
      metal:use-macro="here/main_template/macros/master">

<body>

<div metal:fill-slot="main"
tal:define="errors python:request.get('errors', {})" ><form class="group"
  action="register"
  method="post"
  tal:define="allowEnterPassword here/portal_properties/validate_email|nothing;"> 
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<h1>Please register</h1>
<p> By registering with us, you will have your own account with the possibility 
  to have personalized content, and you will be able to add your own documents, 
  images and files to the site. <br>
  <br>
</p>
</td>
</tr>

<input type="hidden" name="last_visit:date2" value="ZopeTime"
       tal:attributes="value here/ZopeTime">
<input type="hidden" name="prev_visit:date2" value="ZopeTime"
       tal:attributes="value here/ZopeTime">
<tr>
<td bgcolor="#F7C768">&nbsp;&nbsp;&nbsp;<b>Personal Profile
</b></td>
</tr>
<tr>
<td align="center"> 
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td width="25%" align="left">Title</td>
<td width="25%" align="left">
<div class="row"
   tal:define="error_title errors/title | nothing;
	       title request/title | nothing;" >
   <span class="field"
	 tal:attributes="class python:test(error_title, 'field error', 'field')" >

	 <div tal:condition="error_title"
	       tal:replace="error_title" />
      
	 <input type="text" name="field_title" size="5"
	      value="title"  
	      tal:attributes="value title">
</span>
</div>
</td>
    <td width="25%" align="left">First Name</td>
    <td width="25%" align="left">

<div class="row"
     tal:define="error_firstname errors/ | nothing;
		 firstname request/firstname | nothing;" >
<span class="field"
	  tal:attributes="class python:test(error_firstname, 'field error', 'field')" >

     <div tal:condition="error_firstname"
	      tal:replace="error_firstname" />
      
       <input type="text" name="field_firstname" size="25"
	       value="firstname"
	       tal:attributes="value firstname">
</span>
</div>
</td>
</tr>
<tr> 
<td align="left">Initials</td>
<td width="25%" align="left">

<div class="row"
     tal:define="error_initials errors/initials | nothing;
		 initials request/initials | nothing;" >
<span class="field"
	  tal:attributes="class python:test(error_initials, 'field error', 'field')" >

<div tal:condition="error_initials"
	      tal:replace="error_initials" />

     <input type="text" name="field_initials" size="5"
	     value="initials" 
	      tal:attributes="value initials">
</span>
</div>
</td>
    <td align="left">Surname</td>
    <td width="25%" align="left">

 <div class="row"
     tal:define="error_lastname errors/lastname | nothing;
		 lastname request/lastname | nothing;" >
 <span class="field"
	  tal:attributes="class python:test(error_lastname, 'field error', 'field')" >
   <div tal:condition="error_lastname"
	      tal:replace="error_lastname" />
      <input type="text" name="field_lastname" size="25"
	       value="lastname"
	       tal:attributes="value lastname">
    </span>
 </div>
</td>
  </tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#F7C768">&nbsp;&nbsp;&nbsp;<b>Account Information</b></td>
</tr>
<tr>
<td align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="25%" align="left">Login Name</td>
    <td width="25%" align="left">

 <div class="row"
     tal:define="error_username errors/username | nothing;
		 username request/username | nothing;" >
 <span class="field"
	tal:attributes="class python:test(error_username, 'field error', 'field')" >
   <div tal:condition="error_username"
	      tal:replace="error_username" />
      <input type="text" name="field_username" size="25"
	     value="username"  
	     tal:attributes="value username">
  </span>
</div>    
</td>
    <td width="25%" align="left">&nbsp;</td>
    <td width="25%" align="left">&nbsp;</td>
  </tr>
  <tr> 
    <td align="left">Email Address</td>
    <td width="25%" align="left">

<div class="row"
     tal:define="error_email errors/email | nothing;
		 email request/email | nothing;" >
    
  <span class="field"
	  tal:attributes="class python:test(error_email, 'field error', 'field')" >
	<div tal:condition="error_email "
	      tal:replace="error_email " />

	<input type="text"
	       name="field_email"
	       size="25"
	       tal:attributes="value email">
    </span>
</div> 
<div class="row"
     tal:condition="not: allowEnterPassword"
     tal:define="error_password errors/password | nothing;
		 password request/password | nothing;" >
    <span class="label required">Password</span>
    <span class="field"
	  tal:attributes="class python:test(error_password, 'field error', 'field')" >
       <div tal:condition="error_password "
	      tal:replace="error_password " />
	<input type="password"
	       name="field_password"
	       size="10"
	       value=""
	       tal:attributes="value password" />
    </span>
<span class="info">
    Enter the password you want. Minimum 5 characters.
    </span>
</div>

<div class="row"
     tal:condition="not: allowEnterPassword"
     tal:define="error_confirm errors/confirm | nothing;
		 confirm request/confirm | nothing;" >
    <span class="label required">Confirm Password</span>
    <span class="field"
	 tal:attributes="class python:test(error_confirm, 'field error', 'field')" >
	<span tal:condition="error_confirm"
	      tal:replace="error_confirm" />
	<input type="password"
	       name="field_confirm"
	       size="10"
	       value=""
	       tal:attributes="value confirm" />
    </span>
    <span class="info">
    Re-enter the password. Make sure the passwords are identical.
    </span>
</div>

<div class="row" tal:condition="not: allowEnterPassword">
    <span class="label">Mail Password?</span>
    <span class="field">
	<input type="checkbox" class="noborder" name="field_mail_me" size="30" id="cb_mailme" che
cked />
	<label for="cb_mailme">Yes, mail me my password</label>
    </span>
    <span class="info">
    Check this box to have your password
    delivered to your mailbox, so you won't lose it.
    </span>
</div>

<div class="row" tal:condition="allowEnterPassword">
    <span class="label">NOTE</span>
    <span class="field">
    This portal has been configured to automatically generate and
    email you a password to complete the registration process.
    </span>
    <span class="info">
    </span>
</div>

</td>
<td align="left">URL</td>
<td width="25%" align="left">

<div class="row"
     tal:define="error_urllink errors/urllink | nothing;
		 urllink request/urllink | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_urllink, 'field error', 'field')" >
<div tal:condition="error_urllink"
	      tal:replace="error_urllink" />
      <input type="text" name="field_urllink" size="25"
	     value="urllink"  
	     tal:attributes="value urllink">
    </span>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#F7C768">&nbsp;&nbsp;&nbsp;<b>Company Information</b></td>
</tr>
<tr>
<td align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="25%" align="left">Company Name</td>
    <td width="25%" align="left">
<div class="row"
     tal:define="error_companyname errors/companyname | nothing;
		 companyname request/companyname | nothing;" > 
<span class="field"
	  tal:attributes="class python:test(error_companyname, 'field error', 'field')" > 
<div tal:condition="error_companyname"
	      tal:replace="error_companyname" />
      <input type="text" name="field_companyname" size="25"
	     value="companyname"  
	     tal:attributes="value companyname">
</span>
</div>
      </td>
    <td width="25%" align="left">&nbsp;</td>
    <td width="25%" align="left">&nbsp;</td>
  </tr>
  <tr> 
    <td align="left">Street Name</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_street errors/street | nothing;
		 street request/street | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_street, 'field error', 'field')" >
<div tal:condition="error_street"
	      tal:replace="error_street" />
      <input type="text" name="field_street" size="25"
	     value="street"  
	     tal:attributes="value street">
</span>
</div>
</td>
    <td align="left">Town/City</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_town errors/town | nothing;
		 town request/town | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_town, 'field error', 'field')" > <div tal:condition="error_town"
	      tal:replace="error_town" />
      <input type="text" name="field_town" size="25"
	      value="town" 
	      tal:attributes="value town">
</span>
</div>           </td>
  </tr>
  <tr>
    <td align="left">Post Code</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_postcode errors/ | nothing;
		 postcode request/ | nothing;" > 
<span class="field"
	  tal:attributes="class python:test(error_postcode, 'field error', 'field')" > 
<div tal:condition="error_postcode"
	      tal:replace="error_postcode" />
      <input type="text" name="field_postcode" size="8"
	     value="postcode"  
	     tal:attributes="value postcode">
</span>
</div>
</td>
    <td align="left">County</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_fullname errors/fullname | nothing;
		 fullname request/fullname | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_fullname, 'field error', 'field')" > <div tal:condition="error_fullname"
	      tal:replace="error_fullname" />
      <input type="text" name="field_fullname" size="25"
	       tal:attributes="value fullname"></span></div></td>
  </tr>
  <tr>
    <td align="left">Country</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_fullname errors/fullname | nothing;
		 fullname request/fullname | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_fullname, 'field error', 'field')" > <div tal:condition="error_fullname"
	      tal:replace="error_fullname" />
      <input type="text" name="field_fullname" size="25"
	       tal:attributes="value fullname"></span></div></td>
    <td align="left">Date of Incorporation</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_fullname errors/fullname | nothing;
		 fullname request/fullname | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_fullname, 'field error', 'field')" > <div tal:condition="error_fullname"
	      tal:replace="error_fullname" />
      <input type="text" name="field_fullname" size="25"
	       tal:attributes="value fullname"></span></div></td>
  </tr>
  <tr>
    <td align="left">Company Registration No</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_fullname errors/fullname | nothing;
		 fullname request/fullname | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_fullname, 'field error', 'field')" > <div tal:condition="error_fullname"
	      tal:replace="error_fullname" />
      <input type="text" name="field_fullname" size="25"
	       tal:attributes="value fullname"></span></div></td>
    <td align="left">VAT No (if you are VAT registered)</td>
    <td width="25%" align="left"><div class="row"
     tal:define="error_fullname errors/fullname | nothing;
		 fullname request/fullname | nothing;" > <span class="field"
	  tal:attributes="class python:test(error_fullname, 'field error', 'field')" > <div tal:condition="error_fullname"
	      tal:replace="error_fullname" />
      <input type="text" name="field_fullname" size="25"
	       tal:attributes="value fullname"></span></div></td>
  </tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#F7C768">&nbsp;&nbsp;&nbsp;<b>Marketing Information</b></td>
</tr>
<tr>
<td align="center"> 
  <table width="95%" border="0" cellspacing="0" cellpadding="3">
    <tr align="left"> 
      <td width="70%" valign="top">Do you want a domain for your shop?</td>
      <td width="30%"> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top" bgcolor="#FCEDCD">Do you want to receive credit 
	card payments from your shop?</td>
      <td bgcolor="#FCEDCD"> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes
<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Do you have an online shop?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">Do you except payments on your online shop?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Do you have a merchant account with a bank?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">How many products do you wish to sell from your 
	online shop?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	50-100 
	<input type="radio" name="radiobutton" value="radiobutton">
	100-250<br>
	<input type="radio" name="radiobutton" value="radiobutton">
	250-500 
	<input type="radio" name="radiobutton" value="radiobutton">
	500-1000<br>
	<input type="radio" name="radiobutton" value="radiobutton">
	More </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Do you sell and ship products internationally?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">Do you have a shipping arrangement?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Do you stock all your products?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">Do you have an accounting software?<br>
	(If yes give the name of your software)</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Name of accounting software</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">Do you have an Internet connection?<br>
	(If yes select the speed of your connection)</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">Speed</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Modem 56k 
	<input type="radio" name="radiobutton" value="radiobutton">
	ISDN 64k<br>
	<input type="radio" name="radiobutton" value="radiobutton">
	ADSL 500k 
	<input type="radio" name="radiobutton" value="radiobutton">
	ADSL 1m <br>
	<input type="radio" name="radiobutton" value="radiobutton">
	Leased line 
	<input type="radio" name="radiobutton" value="radiobutton">
	Fibre optic line</td>
    </tr>
    <tr align="left" bgcolor="#FCEDCD"> 
      <td valign="top">Do you want a connection?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	Yes 
	<input type="radio" name="radiobutton" value="radiobutton">
	No </td>
    </tr>
    <tr align="left"> 
      <td valign="top">How much will you spent on advertisements to promote 
	your shop?</td>
      <td> 
	<input type="radio" name="radiobutton" value="radiobutton">
	1000-5000<br>
	<input type="radio" name="radiobutton" value="radiobutton">
	5000-10000 or more</td>
    </tr>
  </table>
</td>
</tr>
</table>
<p>&nbsp; </p>

<div class="row">
    <span class="label"></span>
    <span class="field">
	<input class="context" type="submit" name="submit" value="Register">
    </span>
</div>

</form>
</div>
</body>
</html>

--------------070607060308010201020100--