djuggler

Untitled

Dec 3rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. routes.cfm
  2. ------
  3. mapper()
  4. .post(name="addException", pattern="exceptions/addexception", to="exceptions##addException")
  5. .root(to="exceptions##index", method="get")
  6. .end();
  7.  
  8. views/exceptions/index.cfm
  9. ------
  10. #startFormTag(route="addException")#
  11. #textField(objectName="exception", property="requestorname", label="Name:", maxlength="128", placeholder="Name")#
  12. #textField(objectName="exception", property="requestoremailaddress", label="Email:", maxlength="320", placeholder="no-reply@example.com")#
  13. #textField(objectName="exception", property="requestorofficephonenumber", label="Office Phone:", maxlength="25", placeholder="555-555-5555")#
  14. #submitTag(value="Submit")#
  15. #endFormTag()#
  16.  
  17. View source:
  18. ------
  19. <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">
  20.  
  21. <input id="exception-requestorname" maxlength="128" name="exception&#x5b;requestorname&#x5d;" placeholder="Name" type="text" value="">
  22.  
  23. <input id="exception-requestoremailaddress" maxlength="320" name="exception&#x5b;requestoremailaddress&#x5d;" placeholder="no-reply&#x40;example.com" type="text" value="">
  24.  
  25. <input id="exception-requestorofficephonenumber" maxlength="25" name="exception&#x5b;requestorofficephonenumber&#x5d;" placeholder="555-555-5555" type="text" value="">
  26.  
  27. <input type="submit" value="Submit">
  28. </form>
Add Comment
Please, Sign In to add comment