index a9a01ba511babeba3af93699b92bd493546efe35..bc24ce30555d11bc91d951a2858ad815d69228bf 100644 (file)
-<br>
- <select name="select_type" size="8" style="width:80%">
+<h2>{t}Manage System-types{/t}</h2>
+{if $Method == "edit"}
+
+ <select name="select_type" size="12" style="width:100%">
{html_options values=$SystemTypeKeys output=$SystemTypes}
</select><br>
<input name="type_string">
{html_options values=$SystemTypeKeys output=$SystemTypes}
</select><br>
<input name="type_string">
<input type="submit" name="rename_type" value="{t}Rename{/t}" >
<input type="submit" name="del_type" value="{t}Delete{/t}" >
<input type="submit" name="rename_type" value="{t}Rename{/t}" >
<input type="submit" name="del_type" value="{t}Delete{/t}" >
+ <p class="seperator"> </p>
+ <div align="right">
+ <p>
+ <input name="close_edit_type" value="{t}Close{/t}" type="submit">
+ </p>
+ </div>
+ <script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ document.mainform.type_string.focus();
+ -->
+ </script>
+{else}
+{t}Please enter a new name{/t} <input name="string" value="{$string}">
<p class="seperator"> </p>
<p class="seperator"> </p>
-<div align="right">
-<p>
-<input name="close_edit_type" value="{t}close{/t}" type="submit">
-</p>
-</div>
+ <p>
+ <div align="right" style="text-align: right;">
+ <input type="submit" name="Rename_type_OK" value="{t}Rename{/t}" >
+ <input type="submit" name="Rename_Cancel" value="{t}Cancel{/t}" >
+ </div>
+ </p>
+ <script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ document.mainform.string.focus();
+ -->
+ </script>
+{/if}