Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routes.cfm
- ------
- mapper()
- .post(name="addException", pattern="exceptions/addexception", to="exceptions##addException")
- .root(to="exceptions##index", method="get")
- .end();
- views/exceptions/index.cfm
- ------
- #startFormTag(route="addException")#
- #textField(objectName="exception", property="requestorname", label="Name:", maxlength="128", placeholder="Name")#
- #textField(objectName="exception", property="requestoremailaddress", label="Email:", maxlength="320", placeholder="no-reply@example.com")#
- #textField(objectName="exception", property="requestorofficephonenumber", label="Office Phone:", maxlength="25", placeholder="555-555-5555")#
- #submitTag(value="Submit")#
- #endFormTag()#
- View source:
- ------
- <form action="/index.cfm/exceptions/addexception" method="post"><input id="authenticityToken" name="authenticityToken" type="hidden" value="4F85321FFB576DC5346A025604919C29DD7F1700"><input id="_method" name="_method" type="hidden" value="post">
- <input id="exception-requestorname" maxlength="128" name="exception[requestorname]" placeholder="Name" type="text" value="">
- <input id="exception-requestoremailaddress" maxlength="320" name="exception[requestoremailaddress]" placeholder="no-reply@example.com" type="text" value="">
- <input id="exception-requestorofficephonenumber" maxlength="25" name="exception[requestorofficephonenumber]" placeholder="555-555-5555" type="text" value="">
- <input type="submit" value="Submit">
- </form>
Add Comment
Please, Sign In to add comment