[eZ publish] (Tranfer) Build a form use the information collector 3

{*Membership Application Form - Full view *}   <divclass="border-box"> <div class="border-tl"><divclass="border-tr"><divclass="border-tc"></div></div></div> <divclass="border-ml"><div class="border-mr"><divclass="border-mc float-break">   <divclass="content-view-full"> <divclass="class-membership-application-form"> <divclass="attribute-header" ><h1>{$node.name|wash()}</h1></div>   {* validation *} {include name=Validationuri='design:content/collectedinfo_validation.tpl'class='message-warning' validation=$validationcollection_attributes=$collection_attributes}   {* form introduction *}<div class="attribute-short" >{attribute_view_guiattribute=$node.data_map.form_introduction} </div> <formmethod="post" action={"content/action"|ezurl}>   {* Given Name*}<h4>{$node.data_map.given_name.contentclass_attribute.name}</h4><div class="attribute-given-name"> {attribute_view_guiattribute=$node.data_map.given_name} </div>   {* Family Name*}<h4>{$node.data_map.family_name.contentclass_attribute.name}</h4><div class="attribute-family-name"> {attribute_view_guiattribute=$node.data_map.family_name} </div>   {* Date of Birth*}<h4>{$node.data_map.date_of_birth.contentclass_attribute.name}</h4><div class="attribute-date-of-birth"> {attribute_view_guiattribute=$node.data_map.date_of_birth} </div>   {* Contact PhoneNumber*}<h4>{$node.data_map.contact_phone_number.contentclass_attribute.name}</h4><div class="attribute-phone"> {attribute_view_guiattribute=$node.data_map.contact_phone_number} </div   >{* EmailAddress *}<h4>{$node.data_map.email_address.contentclass_attribute.name}</h4><div class="attribute-email"> {attribute_view_guiattribute=$node.data_map.email_address} </div>   {* PostalAddress *}<h4>{$node.data_map.postal_address.contentclass_attribute.name}</h4><div class="attribute-postal_address"> {attribute_view_guiattribute=$node.data_map.postal_address} </div   >{* Information– Play in Tournaments *} <div class="attribute-option">{attribute_view_gui attribute=$node.data_map.option_play_in_tournaments}{$node.data_mapoption_play_in_tournaments..contentclass_attribute.name} </div>  {* Information – Classes and Coaching *} <divclass="attribute-option"> {attribute_view_guiattribute=$node.data_map option_classes_and_coaching.}{$node.data_mapoption_classes_and_coaching..contentclass_attribute.name} </div>  {* Information – Newsletter *} <div class="attribute-option">{attribute_view_gui attribute=$node.data_map.option_club_newsletter}{$node.data_map.option_club_newsletter.contentclass_attribute.name} </div>   {*Information – Social Events & Competitions *} <divclass="attribute-option"> {attribute_view_guiattribute=$node.data_mapoption_social_events_competitions.}{$node.data_mapoption_social_events_competitions..contentclass_attribute.name}</div> <br/> {* Information Other*}<h4>{$node.data_map.other_questions.contentclass_attribute.name}</h4><div class="attribute-message"> {attribute_view_guiattribute=$node.data_map.other_questions} </div> {* Form buttonsProcessing -*} <div class="content-action"> <inputtype="submit" class="defaultbutton" name="ActionCollectInformation"value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}"/><input type="hidden" name="ContentNodeID"value="{$node.node_id}" /> <input type="hidden"name="ContentObjectID" value="{$node.object.id}" /> <inputtype="hidden" name="ViewMode" value="full" /> </div></form>   </div> </div>  </div></div></div> <divclass="border-bl"><div class="border-br"><divclass="border-bc"></div></div></div> </div>

 

 

he template above displays as follows:

Result of membership application form template

posted @ 2010-04-21 10:32 DavidHHuan 阅读(...) 评论(...) 编辑 收藏