~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/order.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<h3>$i18n.getString( "data_element_order" )</h3>
 
2
 
 
3
<p>
 
4
        <input type="button" value="$i18n.getString( "close" )" onclick="closeWindow()">
 
5
    <input type="button" value="$i18n.getString( "order_by_entry" )" onclick="window.location.href='orderDataElementsByEntry.action'">
 
6
    <input type="button" value="$i18n.getString( "order_by_name" )" onclick="window.location.href='orderDataElementsByName.action'">
 
7
    <input type="button" value="$i18n.getString( "order_by_code" )" onclick="window.location.href='orderDataElementsByCode.action'">
 
8
    <input type="button" value="$i18n.getString( "reset_order_inherit" )" onclick="window.location.href='resetDataElementOrder.action'">
 
9
</p>
 
10
 
 
11
<table>
 
12
        <tr>
 
13
                <th>$i18n.getString( "name" )</th>
 
14
                <th>$i18n.getString( "code" )</th>
 
15
                <th>$i18n.getString( "move" )</th>
 
16
        </tr>
 
17
        #set( $mark = 0 )
 
18
        #foreach( $dataElement in $dataElements )
 
19
                #if( $mark == 1 )
 
20
                        #set( $mark = 0 )
 
21
                #else
 
22
                        #set( $mark = 1 )
 
23
                #end
 
24
        <tr #if( $mark == 0 ) style="background-color:#dddddd" #end>
 
25
                <td>$encoder.htmlEncode( $dataElement.name )</td>
 
26
                <td>$!encoder.htmlEncode( $dataElement.code )</td>
 
27
                <td>
 
28
                        <a href="moveDataElementUp.action?dataElementId=$dataElement.id"><img src="../images/move_up.png" alt="$i18n.getString( "move_up" )"></a>
 
29
                        <a href="moveDataElementDown.action?dataElementId=$dataElement.id"><img src="../images/move_down.png" alt="$i18n.getString( "move_down" )"></a>
 
30
                </td>
 
31
        </tr>
 
32
        #end
 
33
</table>