~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-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitForm.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( "create_new_org_unit" )</h3>
 
3
 
 
4
<form id="addOrganisationUnitForm" action="addOrganisationUnit.action" method="post" onsubmit="return validateAddOrganisationUnit()">
 
5
 
 
6
<table>
 
7
        <tr>
 
8
                <th colspan="2">$i18n.getString( "details" )</th>
 
9
        </tr>
 
10
        <tr>
 
11
                <td><label for="name">$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
12
                <td><input type="text" id="name" name="name" onchange="nameChanged()" style="width:20em"></td>
 
13
        </tr>
 
14
        <tr>
 
15
                <td><label for="shortName">$i18n.getString( "short_name" )</label></td>
 
16
                <td><input type="text" id="shortName" name="shortName" maxlength="20" style="width:20em"></td>
 
17
        </tr>
 
18
        <tr>
 
19
                <td><label for="code">$i18n.getString( "code" )</label></td>
 
20
                <td><input type="text" id="code" name="code" style="width:20em"></td>
 
21
        </tr>
 
22
        <tr>
 
23
                <td><label for="openingDate">$i18n.getString( "opening_date" ) ($i18n.getString( "format.date.label" )) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
24
                <td><input type="text" id="openingDate" name="openingDate" value="$format.formatDate( $defaultDate )" style="width:20em"></td>
 
25
                <td><img src="../images/calendar_icon.gif" width="16" height="16" id="getOpeningDate" style="cursor: pointer;" title="$i18n.getString("date_selector")" onmouseover="this.style.background='orange';" onmouseout="this.style.background=''" alt="$i18n.getString( "opening_date" )"></td>
 
26
        </tr>
 
27
        <script type="text/javascript">
 
28
        Calendar.setup({
 
29
            inputField     :    "openingDate",      // id of the input field
 
30
            ifFormat       :    "$i18n.getString("format.date.label")",       // format of the input field
 
31
            button         :    "getOpeningDate"   // trigger for the calendar (button ID)
 
32
        });
 
33
        </script>
 
34
        <tr>
 
35
                <td><label for="comment">$i18n.getString( "comment" )</label></td>
 
36
                <td><textarea id="comment" name="comment" style="width:20em; height:5em" rows="5" cols="20"></textarea></td>
 
37
        </tr>
 
38
        <tr>
 
39
                <td></td>
 
40
                <td><input type="submit" value="$i18n.getString( "add" )" style="width:10em"><input type="button" value="$i18n.getString( "cancel" )" onclick="window.location.href='organisationUnit.action'" style="width:10em"></td>
 
41
        </tr>
 
42
</table>
 
43
 
 
44
</form>
 
45
 
 
46
<span id="message"></span>
 
47
 
 
48
<script type="text/javascript">
 
49
 
 
50
        var previousName = '';
 
51
 
 
52
        var nameField = document.getElementById( 'name' );
 
53
        nameField.select();
 
54
        nameField.focus();
 
55
        var adding_the_org_unit_failed = '$encoder.jsEscape( $i18n.getString( "adding_the_org_unit_failed" ) , "'" )';
 
56
</script>
 
 
b'\\ No newline at end of file'