Commit 4d5b9184 authored by Chris McDonough's avatar Chris McDonough

Only conditionally show domains text box if domainAuthModeEnabled method returns true.

parent 92fa1b0d
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<p class="form-help"> <p class="form-help">
To add a new user, enter the name <dtml-unless remote_user_mode__> To add a new user, enter the name <dtml-unless remote_user_mode__>
,password, confirmation</dtml-unless> and roles for the new user and ,password, confirmation</dtml-unless> and roles for the new user and
click &quot;Add&quot;. <em>Domains</em> is an optional list of domains click &quot;Add&quot;. <dtml-if domainAuthModeEnabled>
<em>Domains</em> is an optional list of domains</dtml-if>
from which the user is allowed to login. from which the user is allowed to login.
</p> </p>
...@@ -54,6 +55,8 @@ from which the user is allowed to login. ...@@ -54,6 +55,8 @@ from which the user is allowed to login.
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
<dtml-if domainAuthModeEnabled>
<div class="form-optional"> <div class="form-optional">
Domains Domains
</div> </div>
...@@ -62,6 +65,9 @@ Domains ...@@ -62,6 +65,9 @@ Domains
<input type="text" name="domains:tokens" size="30" value="" /> <input type="text" name="domains:tokens" size="30" value="" />
</td> </td>
</tr> </tr>
<dtml-else>
<input type="hidden" name="domains:tokens" value=""/>
</dtml-if>
<tr> <tr>
<td align="left" valign="top"> <td align="left" valign="top">
......
...@@ -50,6 +50,8 @@ New Password ...@@ -50,6 +50,8 @@ New Password
</dtml-if> </dtml-if>
<TR> <TR>
<TD VALIGN="TOP"> <TD VALIGN="TOP">
<dtml-if domainAuthModeEnabled>
<div class="form-optional"> <div class="form-optional">
Domains Domains
</div> </div>
...@@ -59,7 +61,10 @@ Domains ...@@ -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>" /> VALUE="<dtml-if expr="user.domains"><dtml-in expr="user.domains"><dtml-var sequence-item html_quote> </dtml-in></dtml-if>" />
</TD> </TD>
</TR> </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> <TR>
<TD VALIGN="TOP"> <TD VALIGN="TOP">
<div class="form-label"> <div class="form-label">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment