#********************* * Write generic form *********************# #macro( writeForm $form ) $form.startTag() #if ($form.error) #end ## Render visible fields #foreach ($field in $form.fieldList) #if (!$field.hidden) #if (!$field.valid) #end #end #end ## Render buttons
$form.error
  $field.error
#if ($field.required) $field.label: #else $field.label: #end $field
 
  #foreach ($button in $form.buttonList) $button #end
$form.endTag() #end #********************************* * Write drop down JavaScrip menu *********************************# #macro( writeMenu $rootMenu ) #end #********************************************* * Write drop down border template header menu *********************************************# #macro( writeTemplateMenu ) #end