]> git.mxchange.org Git - jfinancials-war.git/commitdiff
don't chgange email address in edit mode
authorRoland Häder <roland@mxchange.org>
Thu, 21 Apr 2016 10:23:31 +0000 (12:23 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 21 Apr 2016 18:30:03 +0000 (20:30 +0200)
web/WEB-INF/templates/admin/user/admin_form_user_data.tpl

index d96ee2efdd9daa4a961e8914bd645a8c479e1fcf..ad6c8db7a12af1b630e9221e9381fd7393812bf2 100644 (file)
                                        <div class="clear"></div>
                                </div>
 
-                               <div class="table_row">
-                                       <div class="table_left">
-                                               <h:outputLabel for="emailAddress" value="#{msg.ADMIN_USER_DATA_ENTER_EMAIL}" />
-                                       </div>
+                               <div class="para"></div>
 
-                                       <div class="table_right">
-                                               <h:inputText class="input" id="emailAddress" size="20" maxlength="255" value="#{adminContactController.emailAddress}" required="true" />
-                                       </div>
+                               <ui:fragment rendered="#{mode == 'add'}">
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="emailAddress" value="#{msg.ADMIN_USER_DATA_ENTER_EMAIL}" />
+                                               </div>
 
-                                       <div class="clear"></div>
-                               </div>
+                                               <div class="table_right">
+                                                       <h:inputText class="input" id="emailAddress" size="20" maxlength="255" value="#{adminContactController.emailAddress}" required="true" />
+                                               </div>
 
-                               <div class="para"></div>
+                                               <div class="clear"></div>
+                                       </div>
+
+                                       <div class="para"></div>
+                               </ui:fragment>
 
                                <div class="table_row">
                                        <div class="table_left">
@@ -71,7 +75,9 @@
                                                        <h:outputText value="#{msg.ADMIN_USER_DATA_PASSWORD_ADD_NOTICE}" rendered="#{mode == 'add'}" />
                                                </li>
 
-                                               <li>#{msg.ADMIN_USER_DATA_EMAIL_ADDRESS_NOTICE}</li>
+                                               <li>
+                                                       <h:outputText value="#{msg.ADMIN_USER_DATA_EMAIL_ADDRESS_NOTICE}" rendered="#{mode == 'add'}" />
+                                               </li>
                                        </ul>
                                </div>
                        </fieldset>