Skip to content

Instantly share code, notes, and snippets.

@neokoenig
Created March 23, 2011 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neokoenig/883005 to your computer and use it in GitHub Desktop.
Save neokoenig/883005 to your computer and use it in GitHub Desktop.
<!---Edit.cfm--->
<cfif params.action EQ "add">
<h2>Add a New Contact</h2>
#startFormTag(action="create")#
<cfelse>
<h2>Editing Contact</h2>
#startFormTag(action="update", key=params.key)#
</cfif>
#errorMessagesFor("contact")#
<!--- Basic info for contact --->
#textField(objectName="contact", property="firstname", label="First Name *", class="required")#
#textField(objectName="contact", property="middlename", label="Middle Name")#
<!--- Snip Etc…--->
<!--- Email Addresses --->
#includePartial(contact.emailaddresses)#
<!--- Categories ---->
<cfloop query="categoryTypes">
#hasManyCheckBox(label=name, objectName="contact", association="categories", keys="#contact.key()#,#categoryTypes.id#")#
</cfloop>
#submitTag()#
#endFormTag()#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment