Code

Backports from 2.7
[gosa.git] / gosa-core / plugins / admin / users / template.tpl
index 0ce36ce9666a939cbbe68e0ffe7a591dca349968..2f7e25dbbe0b6a1407ea2f2f391dcd4d8de754b0 100644 (file)
@@ -6,11 +6,11 @@
  {t}Creating a new user can be assisted by using templates. Many database records will be filled automatically. Choose 'none' to skip the usage of templates.{/t}
 </p>
 
-<p class="seperator">&nbsp;</p>
+<hr>
 
 <br>
 
-<table summary="" style="vertical-align:top; text-align:left;" 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>
   </tr>
   <tr>
     <td><b><LABEL for="sn">{t}Last name{/t}</LABEL></b></td>
-    <td><input name="sn" id="sn" size="30" maxlength="40" value="{$sn}"></td>
+    <td><input type='text' name="sn" id="sn" size="30" maxlength="40" value="{$sn}"></td>
   </tr>
   <tr>
     <td><b><LABEL for="givenName">{t}First name{/t}</LABEL></b></td>
-    <td><input name="givenName" id="givenName" size="30" maxlength="40" value="{$givenName}"></td>
+    <td><input type='text' name="givenName" id="givenName" size="30" maxlength="40" value="{$givenName}"></td>
   </tr>
   {if $got_uid eq "true"}
   <tr>
     <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 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>
   {/if}
 </table>
 
-<br>
-<p class="plugbottom">
-  <input type=submit name="template_continue" value="{t}Continue{/t}">
-  &nbsp;
 <input type=submit name="edit_cancel" value="{msgPool type=cancelButton}">
-</p>
+
+<hr>
+<div class="plugin-actions">
+ <button type='submit' name='template_continue'>{t}Continue{/t}</button>
<button type='submit' name='edit_cancel'>{msgPool type=cancelButton}</button>
+</div>