index 17da5ee1752efd98cc27f623452c20a24b3beb64..14a4f54311cf98d2b0e7edfdcb659fab72087f6f 100644 (file)
-<br>
+<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 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
+ focus_field('type_string');
+ -->
+ </script>
+{else}
+{t}Please enter a new name{/t} <input name="string" value="{$string}">
<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
+ focus_field('string');
+ -->
+ </script>
+{/if}