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

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/sortDataElementForm.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
 
 
2
<h3>$i18n.getString( "data_element_sort_order" )</h3>
 
3
 
 
4
<form id="sortOrderForm" action="saveDataElementSortOrder.action" method="post">
 
5
    
 
6
<p>
 
7
<input type="button" value="$i18n.getString( 'move_up' )" style="width:130px" onclick="moveUpSelectedOption( 'dataElements' )"><input 
 
8
type="button" value="$i18n.getString( 'move_down' )" style="width:130px" onclick="moveDownSelectedOption( 'dataElements' )"><input
 
9
type="button" value="$i18n.getString( 'move_to_top' )" style="width:130px" onclick="moveSelectedOptionToTop( 'dataElements' )"><input
 
10
type="button" value="$i18n.getString( 'move_to_bottom' )" style="width:130px" onclick="moveSelectedOptionToBottom( 'dataElements' )">
 
11
</p>
 
12
 
 
13
<p>
 
14
<select multiple id="dataElements" name="dataElements" size="25" style="width:680px">
 
15
#foreach ( $element in $dataElements )
 
16
    <option value="$element.id">$element.name</option>
 
17
#end
 
18
</select>
 
19
</p>
 
20
 
 
21
<p>
 
22
<input type="button" value="$i18n.getString( 'save' )" style="width:130px" onclick="submitForm()"><input 
 
23
type="button" value="$i18n.getString( 'cancel' )" style="width:130px" onclick="window.location.href='dataElement.action'">
 
24
</p>
 
25
 
 
26
</form>
 
27
 
 
28
<script type="text/javascript">
 
29
    function submitForm()
 
30
    {
 
31
        selectAllById( "dataElements" );
 
32
        document.getElementById( "sortOrderForm" ).submit();
 
33
    }
 
34
</script>