Code

Added a check to force a zoneName reverseName to be given
[gosa.git] / plugins / admin / systems / glpi_edit_os.tpl
index 8a9610d6337ce72b626af999c1536bd65f57ebae..892490acc88c9e503c3bbff6c5b3bd9a686dbdfd 100644 (file)
@@ -1,11 +1,13 @@
-<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">&nbsp;</p>
 <div align="right">
 <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}&nbsp;<input name="string" value="{$string}">
+<p class="seperator">&nbsp;</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}
+
+