~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-dataset/src/main/webapp/dhis-web-maintenance-dataset/editSection.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( "edit_section" )</h3>
 
3
 
 
4
<form id="editDataSetForm" name="editDataSetForm" action="updateSection.action" method="post" onsubmit="submitForm();">
 
5
  <div style="display:inline">
 
6
  <input type="hidden" id="dataSetId" name="dataSetId" value="$dataSet.id">
 
7
  <input type="hidden" id="sectionId" name="sectionId" value="$sectionId">
 
8
  </div>
 
9
  
 
10
  <table id="detailsList">
 
11
    <col> ## Labels
 
12
    <col> ## Input
 
13
    <thead>
 
14
      <tr>
 
15
        <th colspan="2">$i18n.getString( "section_details" )</th>
 
16
      </tr>
 
17
    </thead>
 
18
    <tbody>
 
19
      <tr>
 
20
        <td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
21
        <td><input type="text" id="sectionName" name="sectionName" style="width:20em" value= "$section.name" disabled="disabled"></td>
 
22
      </tr>
 
23
      <tr>
 
24
        <td><label>$i18n.getString( "label" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
25
        <td><input type="text" id="sectionLabel" name="sectionLabel" style="width:20em" value="$section.label" ></td>
 
26
      </tr>
 
27
      <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 
28
    </tbody>
 
29
  </table>
 
30
 
 
31
  <table id="dataElementSelectionArea">
 
32
    <col> ## Selected DataElements
 
33
    <col> ## Actions
 
34
    <col> ## Available DataElements
 
35
    <thead>
 
36
      <tr>                
 
37
        <th>$i18n.getString( "available_data_elements" )</th>
 
38
                <th></th>
 
39
                <th>$i18n.getString( "selected_data_elements" )</th>
 
40
      </tr>
 
41
    </thead>
 
42
    <tbody>
 
43
      
 
44
      <tr>
 
45
        <td>
 
46
          <!-- List of all available DataElements -->
 
47
          <select size="15" id="availableList" name="dataElementOfDataSet" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
 
48
            <!-- Show all available DataElements -->
 
49
            #foreach ( $availableDataElement in $dataElementOfDataSet )
 
50
              <option value="$availableDataElement.id"> $availableDataElement.name</option>
 
51
            #end
 
52
          </select>
 
53
        </td>
 
54
        <td valign="top">
 
55
          <input type="button" value=">" title="$i18n.getString('move_selected')" onclick="move( 'availableList' )">
 
56
          <br>
 
57
          <input type="button" value="<" title="$i18n.getString('remove_selected')" onclick="move( 'selectedList' )">
 
58
        </td>
 
59
                <td>
 
60
          <select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
 
61
            #foreach ( $dataElement in $selectedList )
 
62
              <option value="$dataElement.id">$dataElement.name</option>
 
63
            #end
 
64
          </select>
 
65
        </td>        
 
66
      </tr>
 
67
 
 
68
      <tr>
 
69
        <td colspan="3">
 
70
          <p><span id="message"></span></p>
 
71
        </td>
 
72
      </tr>
 
73
 
 
74
      <tr>
 
75
        <td colspan="3">
 
76
          <input type="submit" value="$i18n.getString( "save" )"><input type="button" 
 
77
            onclick="window.location.href='index.action'" value="$i18n.getString( "cancel" )">
 
78
        </td>
 
79
      </tr>
 
80
    </tbody>
 
81
  </table>
 
82
</form>