Code

Removed debug output
[gosa.git] / plugins / personal / password / password.tpl
index 9dadcbf77ee4e98822fe624eea054688764c949f..ef813db5e38f16cfd1b3eee5f5a0b982ec56f6b9 100644 (file)
@@ -7,33 +7,50 @@
 </p>
 
 <p>
+{if $NotAllowed}  
+ <b>{t}You have no permissions to change your password.{/t}</b>
+{else}
   {t}Changing the password affects your authentification on mail, proxy, samba and unix services.{/t}
+{/if}
 </p>
 
 <table summary="" style="vertical-align:top; text-align:left;" cellpadding=4 border=0>
   <tr>
     <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>
-    <td><input id="current_password" type="password" name="current_password" size="30" maxlength="40"
-               onFocus="nextfield= 'new_password';"></td>
+    <td>
+{render acl=$ChangeACL}
+       <input id="current_password" type="password" name="current_password" size="30" maxlength="40" onFocus="nextfield= 'new_password';">
+{/render}
+    </td>
   </tr>
   <tr>
     <td><b><LABEL for="new_password">{t}New password{/t}</LABEL></b></td>
-    <td><input id="new_password" type="password" name="new_password" size="30" maxlength="40"
-               onFocus="nextfield= 'repeated_password';"></td>
+    <td>
+{render acl=$ChangeACL}
+       <input id="new_password" type="password" name="new_password" size="30" maxlength="40" onFocus="nextfield= 'repeated_password';">
+{/render}
+    </td>
   </tr>
   <tr>
     <td><b><LABEL for="repeated_password">{t}Repeat new password{/t}</LABEL></b></td>
-    <td><input id="repeated_password" type="password" name="repeated_password" size="30" maxlength="40"
-               onFocus="nextfield= 'password_finish';"></td>
+    <td>
+{render acl=$ChangeACL}
+       <input id="repeated_password" type="password" name="repeated_password" size="30" maxlength="40" onFocus="nextfield= 'password_finish';">
+{/render}
+    </td>
   </tr>
 </table>
 
 <br>
 
 <p class="plugbottom">
+{render acl=$ChangeACL}
   <input type=submit name="password_finish" value="{t}Set password{/t}">
+{/render}
   &nbsp;
-  <input type=reset name="password_cancel" value="{t}Clear fields{/t}">
+{render acl=$ChangeACL}
+  <input type=reset id="password_cancel" name="password_cancel" value="{t}Clear fields{/t}">
+{/render}
 </p>
 
 <input type="hidden" name="ignore">