2
<h3>$i18n.getString( "create_new_org_unit" )</h3>
4
<form id="addOrganisationUnitForm" action="addOrganisationUnit.action" method="post" onsubmit="return validateAddOrganisationUnit()">
8
<th colspan="2">$i18n.getString( "details" )</th>
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>
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>
19
<td><label for="code">$i18n.getString( "code" )</label></td>
20
<td><input type="text" id="code" name="code" style="width:20em"></td>
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>
27
<script type="text/javascript">
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)
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>
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>
46
<span id="message"></span>
48
<script type="text/javascript">
50
var previousName = '';
52
var nameField = document.getElementById( 'name' );
55
var adding_the_org_unit_failed = '$encoder.jsEscape( $i18n.getString( "adding_the_org_unit_failed" ) , "'" )';
b'\\ No newline at end of file'