Advertisement
Guest User

Untitled

a guest
Nov 26th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--- load page a page entity with id one --->
  2. <Cfset prc.page = entityLoad('page',1,true) />
  3.  
  4.  
  5. <!--- Submit Form --->
  6. #html.startForm( action='page.save' )#
  7.    
  8.     <!--- Convert Entity To Fields --->
  9.     #html.entityFields(
  10.         entity        = prc.page,
  11.         groupWrapper  = "div class='form-group'",
  12.         class         = "form-control",
  13.         fieldWrapper  = "",
  14.         labelWrapper  = "",
  15.         textAreas     = "",
  16.         booleanSelect = true,
  17.         manyToOne     = {
  18.             book = {valuecolumn='id', namecolumn='name', sortorder='name asc'}
  19.         },
  20.         manyToMany    = {},
  21.         showRelations = true
  22.     )#
  23.    
  24.     <!--- Submit --->
  25.     <div class="form-group">
  26.     #html.href( href="Commodities", text="Cancel", class="btn btn-default" )#
  27.     #html.submitButton( value="Save", class="btn btn-primary" )#
  28.     </div>
  29.  
  30. #html.endForm()#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement