~dhis2-devs-core/dhis2/ovc_bcc

« back to all changes in this revision

Viewing changes to local/in/dhis-web-ovc/src/main/webapp/dhis-web-ovc/updateOVCRegistrationForm.vm

  • Committer: Mithilesh Kumar Thakur
  • Date: 2013-04-05 09:57:15 UTC
  • Revision ID: mithilesh.hisp@gmail.com-20130405095715-h1uypfzawmbhta19
local/in OVC work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
            </select>
183
183
        </td>       
184
184
    </tr>
185
 
 
186
 
        <tr><th colspan="6" class="heading-column">Eligibility Criteria</th></tr>
 
185
</table>    
 
186
<table style="background-color:#ECE0F8;" width="100%">  
 
187
        <tr><td colspan="6"><strong>Eligibility Criteria</strong></td></tr>
187
188
 
188
189
    <tr #alternate( false ) id="trattr608">
189
190
        <td class="input-column">
359
360
            </select>
360
361
        </td>
361
362
    </tr>
362
 
 
363
 
        <tr><th colspan="6" class="heading-column">Child receives services from the other sources(include name where applicable)</th></tr>
 
363
</table>    
 
364
<table style="background-color:#ECE0F8;" width="100%">
 
365
        
 
366
        <tr><td colspan="6"><strong>Child receives services from the other sources(include name where applicable)</strong></td></tr>
364
367
        
365
368
    <tr #alternate( false ) id="trattr620">     
366
369
        <td class="input-column">
367
370
            #set( $attribute = $patientAttributeMap.get( 620 ) )
368
371
            #set( $attributeValueGov = $!patientAttributeValueMap.get( 620 ) )  
369
372
            <input type='checkbox' id="attr620" name="attr620" onclick="specifyGovernmentName();" #if( $attributeValueGov =="true" ) checked #end >
370
 
            &nbsp;&nbsp;Government
 
373
            &nbsp;&nbsp;Government ( Specify Name ) &nbsp;&nbsp; &nbsp;&nbsp;
 
374
            <input type="text" id="attr621" name="attr621" value = "$!patientAttributeValueMap.get( 621 )"/>
371
375
        </td>
372
376
        
 
377
        <!--
373
378
                <td class='text-column'>Specify Government Name</td>
374
379
                #set( $attribute = $patientAttributeMap.get( 621 ) )
375
380
        <td class="input-column" ><input type="text" id="attr621" name="attr621" value = "$!patientAttributeValueMap.get( 621 )"/></td>         
376
 
 
 
381
                -->
377
382
    </tr> 
378
383
 
379
384
    <tr #alternate( false ) id="trattr622">     
381
386
            #set( $attribute = $patientAttributeMap.get( 622 ) )
382
387
            #set( $attributeValueNGO = $!patientAttributeValueMap.get( 622 ) )
383
388
            <input type='checkbox' id="attr622" name="attr622" onclick="specifyNGOName();" #if( $attributeValueNGO =="true" ) checked #end >
384
 
            &nbsp;&nbsp;NGO
 
389
            &nbsp;&nbsp;NGO ( Specify Name ) &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
390
            <input type="text" id="attr623" name="attr623" value = "$!patientAttributeValueMap.get( 623 )"/>
385
391
        </td>
386
392
        
 
393
        <!--
387
394
                <td class='text-column'>Specify NGO Name</td>
388
395
                #set( $attribute = $patientAttributeMap.get( 623 ) )
389
396
        <td class="input-column" ><input type="text" id="attr623" name="attr623" value = "$!patientAttributeValueMap.get( 623 )"/></td>        
390
 
 
 
397
                -->
391
398
    </tr> 
392
399
 
393
400
    <tr #alternate( false ) id="trattr624">     
395
402
            #set( $attribute = $patientAttributeMap.get( 624 ) )
396
403
            #set( $attributeValueCBO = $!patientAttributeValueMap.get( 624 ) )
397
404
            <input type='checkbox' id="attr624" name="attr624" onclick="specifyCBOName();" #if( $attributeValueCBO =="true" ) checked #end >
398
 
            &nbsp;&nbsp;CBO
 
405
            &nbsp;&nbsp;CBO ( Specify Name ) &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
406
            <input type="text" id="attr625" name="attr625" value = "$!patientAttributeValueMap.get( 625 )"/>
399
407
        </td>
400
 
        
 
408
        <!--
401
409
                <td class='text-column'>Specify CBO Name</td>
402
410
                #set( $attribute = $patientAttributeMap.get( 625 ) )
403
411
        <td class="input-column" ><input type="text" id="attr625" name="attr625" value = "$!patientAttributeValueMap.get( 625 )"/></td>     
404
 
 
 
412
                -->
405
413
    </tr>
406
414
 
407
415
    <tr #alternate( false ) id="trattr626">     
420
428
            #set( $attribute = $patientAttributeMap.get( 627 ) )
421
429
            #set( $attributeValueOther = $!patientAttributeValueMap.get( 627 ) )
422
430
            <input type='checkbox' id="attr627" name="attr627" onclick="specifyOthersName();" #if( $attributeValueOther =="true" ) checked #end >
423
 
            &nbsp;&nbsp;Others
 
431
            &nbsp;&nbsp;Others ( Specify Name ) &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
432
            <input type="text" id="attr628" name="attr628" value = "$!patientAttributeValueMap.get( 628 )"/>
424
433
        </td>
425
 
        
 
434
        <!--
426
435
                <td class='text-column'>Specify Others Name</td>
427
436
                #set( $attribute = $patientAttributeMap.get( 628 ) )
428
437
        <td class="input-column" ><input type="text" id="attr628" name="attr628" value = "$!patientAttributeValueMap.get( 628 )"/></td>    
429
 
 
 
438
                -->
430
439
    </tr>
431
440
 
432
441
 
673
682
            #set( $attributeValueFood = $!patientAttributeValueMap.get( 553 ) )  
674
683
            <select id="attr553" name="attr553" class='#validate( "default"  $attribute.mandatory )'>
675
684
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
676
 
                 #foreach ($option in $attribute.attributeOptions )
677
 
                    <option value="$option.id" #if( $attributeValueFood == $option.name) selected="selected" #end>$option.name</option>
678
 
                 #end
 
685
                 ##foreach ($option in $attribute.attributeOptions )
 
686
                    <!--<option value="$option.id" #if( $attributeValueFood == $option.name) selected="selected" #end>$option.name</option>-->
 
687
                    <option value="554" #if( $attributeValueFood == "1" ) selected="selected" #end >1</option>
 
688
                    <option value="555" #if( $attributeValueFood == "2" ) selected="selected" #end >2</option>
 
689
                    <option value="556" #if( $attributeValueFood == "3" ) selected="selected" #end >3</option>
 
690
                    <option value="557" #if( $attributeValueFood == "4" ) selected="selected" #end >4</option>
 
691
                 ##end
679
692
            </select>
680
693
        </td>
681
694
    </tr>
682
695
 
 
696
 
 
697
 
683
698
    <!-- Patient Attribute : Shelter/Care Shelter: -->
684
699
    <tr #alternate( false ) id="trattr558">
685
700
        <td class='text-column'>Shelter/Care Shelter</td>
688
703
            #set( $attributeValueShelter = $!patientAttributeValueMap.get( 558 ) )
689
704
            <select id="attr558" name="attr558" class='#validate( "default"  $attribute.mandatory )'>
690
705
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
691
 
                 #foreach ($option in $attribute.attributeOptions )
692
 
                    <option value="$option.id" #if($attributeValueShelter == $option.name) selected="selected" #end>$option.name</option>
693
 
                 #end
 
706
                 ##foreach ($option in $attribute.attributeOptions )
 
707
                    <!--<option value="$option.id" #if($attributeValueShelter == $option.name) selected="selected" #end>$option.name</option>-->
 
708
                    <option value="559" #if( $attributeValueShelter == "1" ) selected="selected" #end >1</option>
 
709
                    <option value="560" #if( $attributeValueShelter == "2" ) selected="selected" #end >2</option>
 
710
                    <option value="561" #if( $attributeValueShelter == "3" ) selected="selected" #end >3</option>
 
711
                    <option value="562" #if( $attributeValueShelter == "4" ) selected="selected" #end >4</option>
 
712
                 ##end
694
713
            </select>
695
714
        </td>
696
715
    </tr>
703
722
            #set( $attributeValueAbuse = $!patientAttributeValueMap.get( 563 ) )
704
723
            <select id="attr563" name="attr563" class='#validate( "default"  $attribute.mandatory )'>
705
724
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
706
 
                 #foreach ($option in $attribute.attributeOptions )
707
 
                    <option value="$option.id" #if( $attributeValueAbuse == $option.name) selected="selected" #end>$option.name</option>
708
 
                 #end
 
725
                 ##foreach ($option in $attribute.attributeOptions )
 
726
                    <!--<option value="$option.id" #if( $attributeValueAbuse == $option.name) selected="selected" #end>$option.name</option>-->
 
727
                    <option value="564" #if( $attributeValueAbuse == "1" ) selected="selected" #end >1</option>
 
728
                    <option value="565" #if( $attributeValueAbuse == "2" ) selected="selected" #end >2</option>
 
729
                    <option value="566" #if( $attributeValueAbuse == "3" ) selected="selected" #end >3</option>
 
730
                    <option value="567" #if( $attributeValueAbuse == "4" ) selected="selected" #end >4</option>
 
731
                 ##end
709
732
            </select>
710
733
        </td>
711
734
    </tr>
723
746
            #set( $attributeValueWellness = $!patientAttributeValueMap.get( 568 ) )
724
747
            <select id="attr568" name="attr568" class='#validate( "default"  $attribute.mandatory )'>
725
748
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
726
 
                 #foreach ($option in $attribute.attributeOptions )
727
 
                    <option value="$option.id" #if( $attributeValueWellness == $option.name) selected="selected" #end>$option.name</option>
728
 
                 #end
 
749
                 ##foreach ($option in $attribute.attributeOptions )
 
750
                    <!--<option value="$option.id" #if( $attributeValueWellness == $option.name) selected="selected" #end>$option.name</option>-->
 
751
                    <option value="569" #if( $attributeValueWellness == "1" ) selected="selected" #end >1</option>
 
752
                    <option value="570" #if( $attributeValueWellness == "2" ) selected="selected" #end >2</option>
 
753
                    <option value="571" #if( $attributeValueWellness == "3" ) selected="selected" #end >3</option>
 
754
                    <option value="572" #if( $attributeValueWellness == "4" ) selected="selected" #end >4</option>                    
 
755
                 ##end
729
756
            </select>
730
757
        </td>
731
758
    </tr>
738
765
            #set( $attributeValueEmotional = $!patientAttributeValueMap.get( 573 ) )
739
766
            <select id="attr573" name="attr573" class='#validate( "default"  $attribute.mandatory )'>
740
767
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
741
 
                 #foreach ($option in $attribute.attributeOptions )
742
 
                    <option value="$option.id" #if($attributeValueEmotional == $option.name) selected="selected" #end>$option.name</option>
743
 
                 #end
 
768
                 ##foreach ($option in $attribute.attributeOptions )
 
769
                    <!--<option value="$option.id" #if($attributeValueEmotional == $option.name) selected="selected" #end>$option.name</option>-->
 
770
                    <option value="574" #if( $attributeValueEmotional == "1" ) selected="selected" #end >1</option>
 
771
                    <option value="575" #if( $attributeValueEmotional == "2" ) selected="selected" #end >2</option>
 
772
                    <option value="576" #if( $attributeValueEmotional == "3" ) selected="selected" #end >3</option>
 
773
                    <option value="577" #if( $attributeValueEmotional == "4" ) selected="selected" #end >4</option>                    
 
774
                 ##end
744
775
            </select>
745
776
        </td>
746
777
    </tr>
753
784
            #set( $attributeValuePerformance = $!patientAttributeValueMap.get( 578 ) ) 
754
785
            <select id="attr578" name="attr578" class='#validate( "default"  $attribute.mandatory )'>
755
786
                <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
756
 
                 #foreach ($option in $attribute.attributeOptions )
757
 
                    <option value="$option.id" #if($attributeValuePerformance == $option.name) selected="selected" #end>$option.name</option>
758
 
                 #end
 
787
                 ##foreach ($option in $attribute.attributeOptions )
 
788
                    <!--<option value="$option.id" #if($attributeValuePerformance == $option.name) selected="selected" #end>$option.name</option>-->
 
789
                    <option value="579" #if( $attributeValuePerformance == "1" ) selected="selected" #end >1</option>
 
790
                    <option value="580" #if( $attributeValuePerformance == "2" ) selected="selected" #end >2</option>
 
791
                    <option value="581" #if( $attributeValuePerformance == "3" ) selected="selected" #end >3</option>
 
792
                    <option value="582" #if( $attributeValuePerformance == "4" ) selected="selected" #end >4</option>                      
 
793
                 ##end
759
794
            </select>
760
795
        </td>
761
796
    </tr>
764
799
 
765
800
    <!-- Patient Attribute : Child Priority Needs 1: -->
766
801
    <tr #alternate( false ) id="trattr583">
767
 
        <td class='text-column'>1.</td>
 
802
        <td class='text-column'>Child Priority Needs 1.</td>
768
803
        <td class="input-column">
769
804
            #set( $attribute = $patientAttributeMap.get( 583 ) )
770
805
             #set( $attributeValuePriority1 = $!patientAttributeValueMap.get( 583 ) )  
779
814
 
780
815
    <!-- Patient Attribute : Child Priority Needs 2: -->
781
816
    <tr #alternate( false ) id="trattr590">
782
 
        <td class='text-column'>2.</td>
 
817
        <td class='text-column'>Child Priority Needs 2.</td>
783
818
        <td class="input-column">
784
819
            #set( $attribute = $patientAttributeMap.get( 590 ) )
785
820
             #set( $attributeValuePriority2 = $!patientAttributeValueMap.get( 590 ) ) 
794
829
 
795
830
    <!-- Patient Attribute : Child Priority Needs 3: -->
796
831
    <tr #alternate( false ) id="trattr597">
797
 
        <td class='text-column'>3.</td>
 
832
        <td class='text-column'>Child Priority Needs 3.</td>
798
833
        <td class="input-column">
799
834
            #set( $attribute = $patientAttributeMap.get( 597 ) )
800
835
             #set( $attributeValuePriority3 = $!patientAttributeValueMap.get( 597 ) )