Created
March 23, 2011 12:04
-
-
Save neokoenig/883005 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!---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