Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4d5b9184
Commit
4d5b9184
authored
Jul 03, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only conditionally show domains text box if domainAuthModeEnabled method returns true.
parent
92fa1b0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
lib/python/AccessControl/dtml/addUser.dtml
lib/python/AccessControl/dtml/addUser.dtml
+7
-1
lib/python/AccessControl/dtml/editUser.dtml
lib/python/AccessControl/dtml/editUser.dtml
+6
-1
No files found.
lib/python/AccessControl/dtml/addUser.dtml
View file @
4d5b9184
...
...
@@ -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 @@ from which the user is allowed to login.
<tr>
<td align="left" valign="top">
<dtml-if domainAuthModeEnabled>
<div class="form-optional">
Domains
</div>
...
...
@@ -62,6 +65,9 @@ Domains
<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">
...
...
lib/python/AccessControl/dtml/editUser.dtml
View file @
4d5b9184
...
...
@@ -50,6 +50,8 @@ New Password
</dtml-if>
<TR>
<TD VALIGN="TOP">
<dtml-if domainAuthModeEnabled>
<div class="form-optional">
Domains
</div>
...
...
@@ -59,7 +61,10 @@ Domains
VALUE="<dtml-if expr="user.domains"><dtml-in expr="user.domains"><dtml-var sequence-item html_quote> </dtml-in></dtml-if>" />
</TD>
</TR>
<dtml-else>
<input type="hidden" name="domains:tokens"
value="<dtml-if expr="user.domains"><dtml-in expr="user.domains"><dtml-var sequence-item html_quote> </dtml-in></dtml-if>" />
</dtml-if>
<TR>
<TD VALIGN="TOP">
<div class="form-label">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment