[Zope-Checkins] CVS: Zope2 - addUser.dtml:1.3.4.1
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Tue, 3 Jul 2001 16:12:49 -0400
Update of /cvs-repository/Zope2/lib/python/AccessControl/dtml
In directory serenade:/home/chrism/sandboxes/Zope24Branch/lib/python/AccessControl/dtml
Modified Files:
Tag: Zope-2_4-branch
addUser.dtml
Log Message:
Make domain text box display depend on domainAuthModeEnabled return value.
--- Updated File addUser.dtml in package Zope2 --
--- addUser.dtml 2001/05/21 17:58:21 1.3
+++ addUser.dtml 2001/07/03 20:12:48 1.3.4.1
@@ -9,7 +9,8 @@
<p class="form-help">
To add a new user, enter the name <dtml-unless remote_user_mode__>
,password, confirmation</dtml-unless> and roles for the new user and
-click "Add". <em>Domains</em> is an optional list of domains
+click "Add". <dtml-if domainAuthModeEnabled>
+<em>Domains</em> is an optional list of domains</dtml-if>
from which the user is allowed to login.
</p>
@@ -54,6 +55,8 @@
<tr>
<td align="left" valign="top">
+
+<dtml-if domainAuthModeEnabled>
<div class="form-optional">
Domains
</div>
@@ -62,6 +65,9 @@
<input type="text" name="domains:tokens" size="30" value="" />
</td>
</tr>
+<dtml-else>
+<input type="hidden" name="domains:tokens" value=""/>
+</dtml-if>
<tr>
<td align="left" valign="top">