Code

Backports from 2.7
[gosa.git] / gosa-core / plugins / admin / users / template.tpl
index 48505daa6c71af72776be72fa8607578038d60e0..2f7e25dbbe0b6a1407ea2f2f391dcd4d8de754b0 100644 (file)
@@ -10,7 +10,7 @@
 
 <br>
 
-<table summary="" cellpadding=4 border=0>
+<table summary="{t}User template selection dialog{/t}" cellpadding=4 border=0>
   <tr>
     <td><b><LABEL for="template">{t}Template{/t}</LABEL></b></td>
     <td>
     <td><b>{t}Login{/t}</b></td>
     <td>
       {if $edit_uid eq "false"}
-      <select size="1" name="uid">
-        {html_options output=$uids values=$uids selected=$uid}
-      </select>
-      {else}
-      <input type='text' name="uid" size="30" maxlength="40" value="{$uid}">
+        {if $allowUidProposalModification == "true"}
+           <select size="1" name="uidSelect" id='uidSelect' onChange="
+                document.getElementById('uid').value = document.getElementById('uidSelect').value;">
+            {html_options output=$uids values=$uids selected=$uid}
+          </select>
+          <input type='text' id="uid" name="uid" size="30" maxlength="40" value="{$uid}" 
+                style="display: none;">
+          <img src="images/lists/edit.png" onClick="$('uid').toggle();" 
+                title="{t}Modify the uid proposal{/t}">
+        {else}
+           <select size="1" name="uid">
+            {html_options output=$uids values=$uids selected=$uid}
+          </select>
+        {/if}
+      {else}                    
+          <input type='text' id="uid" name="uid" size="30" maxlength="40" value="{$uid}">
       {/if}
     </td>
   </tr>
@@ -46,8 +57,8 @@
 
 <hr>
 <div class="plugin-actions">
 <input type=submit name="template_continue" value="{t}Continue{/t}">
 <input type=submit name="edit_cancel" value="{msgPool type=cancelButton}">
<button type='submit' name='template_continue'>{t}Continue{/t}</button>
<button type='submit' name='edit_cancel'>{msgPool type=cancelButton}</button>
 </div>