~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/viewDataEntryForm.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
<script type="text/javascript" src="javascript/FCK/fckeditor.js"></script>
 
3
<script type="text/javascript">
 
4
    var stat = '$status';
 
5
    var dataEntryFormId = -1;
 
6
    var i18n_confirm_delete = '$encoder.jsEscape( $i18n.getString( "dataentryform_confirm_delete" ) , "'" )';
 
7
        
 
8
    #if($status == "EDIT")
 
9
        dataEntryFormId = $dataEntryForm.id;
 
10
    #end
 
11
    
 
12
    var FCKConfig;
 
13
    var FCK;
 
14
    window.onload = function()
 
15
    {
 
16
        var oFCKeditor = new FCKeditor( 'designTextarea' ) ;
 
17
        oFCKeditor.BasePath = "javascript/FCK/";
 
18
        oFCKeditor.ReplaceTextarea();
 
19
    }
 
20
</script>
 
21
 
 
22
 
 
23
<h3>$i18n.getString( "dataentryform_management" )</h3>
 
24
 
 
25
<form id="saveDataEntryForm" name="saveDataEntryForm" action="saveDataEntryForm.action" method="post" onsubmit="return validateDataEntryForm()">
 
26
  <table id="detailsList">
 
27
    <col> ## Labels
 
28
    <col> ## Input
 
29
    <thead>
 
30
      <tr>
 
31
        <th colspan="2">$i18n.getString( "dataentryform_details" )</th>
 
32
      </tr>
 
33
    </thead>
 
34
    <tbody>
 
35
      <tr>
 
36
        <td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
37
        <td><input type="text" id="nameField" name="nameField" value='#if($status == "EDIT")$dataEntryForm.name#end' style="width:20em"></td>
 
38
      </tr>
 
39
      <tr>
 
40
        <td><label>$i18n.getString( "dataset" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
41
        <td><input type="text" value="$dataSet.name" style="width:20em" disabled></td>
 
42
      </tr>
 
43
      <tr>
 
44
        <td colspan="2">&nbsp;</td>
 
45
      </tr>
 
46
    </tbody>
 
47
  </table>
 
48
    
 
49
   <table>
 
50
      <col width="700">  
 
51
      <tr>
 
52
        <th>$i18n.getString( "dataentryform_design" )</th>
 
53
      </tr>
 
54
      <tr>
 
55
        <td><textarea id="designTextarea" name="designTextarea" >#if($status == "EDIT") $dataEntryForm.htmlCode #end</textarea></td>
 
56
      </tr>
 
57
      <tr><td><span id="message"></span></td></tr>
 
58
      <tr>
 
59
      <td>
 
60
      <table id="cde_buttontable">
 
61
      <tr>
 
62
        <td>
 
63
          <input type="submit" name="save" value="$i18n.getString( "save" )">
 
64
          <input type="button" name="cancel" value="$i18n.getString( "cancel" )" onclick="window.location.href='index.action'">
 
65
        </td>
 
66
        <td id="cde_deletebuttoncell">
 
67
          <input type="button" name="delete" value="$i18n.getString( "delete" )" onclick="removeDataEntryForm( $dataEntryForm.id, '$dataEntryForm.name' )" #if($status == "ADD") disabled #end>
 
68
        </td>
 
69
        </tr>
 
70
        </table>
 
71
        </td>
 
72
      </tr>
 
73
    </tbody>
 
74
  </table>
 
75
  <input type="hidden" name="dataSetIdField" id="dataSetIdField" value="$dataSet.id" />
 
76
</form>