index 48a99cc54952d9484f44ee95059ece4889332b8b..892490acc88c9e503c3bbff6c5b3bd9a686dbdfd 100644 (file)
-<br>
- <select name="select_os" size="12" style="width:100%">
- {html_options values=$OSKeys output=$OSs}
- </select><br>
- <input name="is_string">
- <input type="submit" name="add_os" value="{t}Add{/t}" >
- <input type="submit" name="rename_os" value="{t}Rename{/t}" >
- <input type="submit" name="del_os" value="{t}Delete{/t}" >
+<h2>{t}Manage OS-types{/t}</h2>
+{if $Method == "edit"}
+
+ <select name="select_os" size="12" style="width:100%">
+ {html_options values=$OSKeys output=$OSs}
+ </select><br>
+ <input name="is_string">
+ <input type="submit" name="add_os" value="{t}Add{/t}" >
+ <input type="submit" name="rename_os" value="{t}Rename{/t}" >
+ <input type="submit" name="del_os" value="{t}Delete{/t}" >
<p class="seperator"> </p>
<div align="right">
<p>
-<input name="close_edit_os" value="{t}close{/t}" type="submit">
+<input name="close_edit_os" value="{t}Close{/t}" type="submit">
</p>
</div>
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ document.mainform.is_string.focus();
+ -->
+</script>
+{else}
+{t}Please enter a new name{/t} <input name="string" value="{$string}">
+<p class="seperator"> </p>
+ <p>
+ <div align="right" style="text-align: right;">
+ <input type="submit" name="Rename_os_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}
+
+