Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5184

Show
Ignore:
Timestamp:
08/06/08 22:57:01 (5 months ago)
Author:
r0bby
Message:

groovyforms: fix a small bug w/ Date

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/groovyforms/src/org/openmrs/module/groovyforms/util/GroovyFormsGenerationUtil.groovy

    r5136 r5184  
    7272     * Render a date picker widget 
    7373     * @param name the name of the datepicker 
    74      * @param initialDate the initialDate -- pass in null if no intitial value is needed 
    75      */ 
    76     def datePicker(String name, Date initialDate) { 
    77         def date = intialDate ? "startDate=\"$name\"" : "" 
    78         def ds = """<div id=\"groovyformfield\" class=\"$name\"> 
    79     <label for=\"${name}\">${name}</label> 
    80     <openmrs_tag:dateField formFieldName="\"$name\", $date/> 
     74     */ 
     75    def datePicker(String name) { 
     76        def ds = """<div id="groovyformfield" class="$name"> 
     77    <label for="${name}">${name}</label> 
     78    <openmrs_tag:dateField formFieldName=""$name"/> 
    8179</div>""" 
    8280    }