r1446: Don't show the controls to change the email, password, and displayname unless...
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Mar 2007 23:09:21 +0000 (23:09 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Mar 2007 23:09:21 +0000 (23:09 +0000)
templates/userctrl.tpl

index 6871109955137c346fdaec076ea80b962df69fad..4e3afa1bfa84e6bbcd0a3a6dcfda309d76f9b609 100644 (file)
@@ -29,10 +29,12 @@ $header
                                <div class="box-head" style="text-align: $stylevar[left]">{@"User Options"}</div>
                                
                                <div class="box-mid">
+                                       <if condition="$bugsys->options['authmethod'] == 'default'">
                                        <fieldset>
                                                <legend>{@"Display Name"}</legend>
                                                <input type="text" name="displayname" value="{$userinfo['displayname']}" size="25" style="width: 100%" maxlength="250" />
                                        </fieldset>
+                                       </if>
                                        
                                        <fieldset>
                                                <legend>{@"Show Email Publicly"}</legend>
@@ -156,6 +158,7 @@ $header
                </td>
                
                <td>
+                       <if condition="$bugsys->options['authmethod'] == 'default'">
                        <!-- password and email -->
                        <div class="box">
                                <div class="box-head" style="text-align: $stylevar[left]">
@@ -190,8 +193,9 @@ $header
                                </div>
                        </div>
                        <!-- / password and email -->
-                       
+                                               
                        <br />
+                       </if>
                        
                        <!-- display options -->
                        <div class="box">