Code

Udpated JS focus,
[gosa.git] / plugins / personal / environment / environment.tpl
index bfc1bc0f68b745039b0636c91bce72b35347fdb7..fc1169931473656dadde568d9f58ef02a3c13597 100644 (file)
                                </tr>
                                <tr>
                                        <td colspan=2>
+                                               <br>
                                                <input type="checkbox" name="gotoProfileFlag_L" id="gotoProfileFlag_L" value="L"  {$gotoProfileFlag_LCHK}
                                                        {if $gotoProfileFlagsACL=="disabled"}
                                                                disabled 
                                                        {/if}>
-                                               <label for="gotoProfileFlag_L">{t}Resolution changeable on runtime{/t}</label>
+                                               <label for="gotoProfileFlag_L">{t}Resolution changeable during session{/t}</label>
                                        </td>
                                </tr>
                                <tr>
@@ -87,7 +88,7 @@
                                        </td>
                                        <td>
                                                <select name="gotoXResolution" {$gotoXResolutionACL} id="gotoXResolution">
-                               {html_options values=$gotoXResolutions output=$gotoXResolutions selected=$gotoXResolution}
+                               {html_options values=$gotoXResolutionKeys output=$gotoXResolutions selected=$gotoXResolution}
                             <option disabled>&nbsp;</option>
                        </select>
                                        </td>
        <table summary="" style="width:100%">
                <tr>
                        <td>
-                       <select style="width:100%;" name="gotoShare" multiple size=5 {$gotoShareACL} id="gotoShare">
-       {html_options values=$gotoShareKeys output=$gotoShares}
-       <option disabled>&nbsp;</option>
-                               </select>
-                               <br>
-                       <select name="gotoShareSelection" {$gotoShareACL}>
-       {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
-       <option disabled>&nbsp;</option>
+                               {$divlistShares}
+                               <input type="text" size=15 {$gotoShareACL} name="ShareUser" value="%u" title="{t}User used to connect to the share{/t}">@
+                               <select name="gotoShareSelection" {$gotoShareACL} title="{t}Select a share{/t}">
+                                       {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
+                                       <option disabled>&nbsp;</option>
                                </select>
-                               <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="{t}Mountpoint{/t}">
-                               <input type="text" size=15 {$gotoShareACL} name="ShareUser" value="ShareUser">
+                               :
+                               <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="%H/Netzlaufwerke/%L/%S"
+                  title="{t}Mount path{/t}">
                                <input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}"> 
-                               <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}"> 
+       <!--                    <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}"> -->
                        </td>
                </tr>
        </table>
    </td>
-   <td>
+   <td style="vertical-align:top">
        <h2><img class="center" alt="" src="images/fai_script.png" align="middle" />&nbsp;<label for="gotoLogonScript">{t}Logon scripts{/t}</label></h2>
        <table summary="{t}Logon script management{/t}" style="width:100%">
                <tr>
 
 <table summary="{t}Environment managment settings{/t}" width="100%">
   <tr>
-   <td style="border-right:1px solid #B0B0B0; width:50%">
+   <td style="border-right:1px solid #B0B0B0; width:50%; vertical-align:top">
        <h2><img alt="" src="images/hotplug.png" align="middle" class="center" />&nbsp;<label for="gotoHotplugDevice">{t}Hotplug devices{/t}</label></h2>       
        <table style="width:100%" summary="{t}Hotplug device settings{/t}">
                <tr>
                        <td>
-                               <select name="gotoHotplugDevice" {$gotoHotplugDeviceACL} size=5  style="width:100%;" id="gotoHotplugDevice">
-       {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices}
-       <option disabled>&nbsp;</option>
+                               <select name="gotoHotplugDevice[]" {$gotoHotplugDeviceACL} size=5  style="width:100%;" id="gotoHotplugDevice" multiple>
+                                       {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices}
+                                       <option disabled>&nbsp;</option>
                                </select>
                        </td>
                </tr>
     <table style="width:100%" summary="{t}Printer settings{/t}">
        <tr>
            <td>
-               <select style="width:100%;" name="gotoPrinterSel" multiple size=5 {$gotoPrinterACL} id="gotoPrinter">
+               <select style="width:100%;" name="gotoPrinterSel[]" multiple size=5 {$gotoPrinterACL} id="gotoPrinter">
                {html_options values=$gotoPrinterKeys output=$gotoPrinter}
                <option disabled>&nbsp;</option>
                </select>
                <br>
                <input type="submit" {$gotoPrinterACL} name="gotoPrinterAdd"     value="{t}Add{/t}">
                <input type="submit" {$gotoPrinterACL} name="gotoPrinterDel"     value="{t}Delete{/t}">
-               <input type="submit" {$gotoPrinterACL} name="gotoPrinterEdit"    value="{t}Admin Toggle{/t}">
+               <input type="submit" {$gotoPrinterToggleACL} name="gotoPrinterEdit"    value="{t}Toggle admin{/t}">
+{if $is_group }
+               <input type="submit" {$gotoPrinterToggleACL} name="gotoPrinterDefault"    value="{t}Toggle default{/t}" disabled>
+{else}
+               <input type="submit" {$gotoPrinterToggleACL} name="gotoPrinterDefault"    value="{t}Toggle default{/t}">
+{/if}
            </td>
        </tr>
     </table>
 </table>
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.useProfile.focus();
+       focus_field('useProfile');
   -->
 </script>
 {/if}