]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Continued with rewriting:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Apr 2016 14:20:11 +0000 (16:20 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 23 Apr 2016 19:42:33 +0000 (21:42 +0200)
- rewrote to ContactUtils.updateFooNumber()
- added missing attributes for above functions
- added check for contactId against null
- fixed converter (must be ContactConverter) + instance from helper
- edit_contact title is now a pattern with id number as only parameter
- adminUserController was wrong, use adminContactController for contact-relevant stuff
- added missing i18n strings

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/admin/contact/admin_contact_edit.xhtml

index 3ed960a6bf6e153c693be4d1e74164998dc71add..95310d783237618eba2bd6e493aa5fb251f138de 100644 (file)
@@ -449,3 +449,5 @@ BUTTON_ADMIN_EDIT_USER=Benutzerdaten \u00e4ndern
 ADMIN_EDIT_USER_TITLE=Benutzerdaten editieren
 ADMIN_USER_DATA_PASSWORD_EDIT_NOTICE=Wenn Sie das Passwort \u00e4ndern wollen, m\u00fcssen Sie es zweimal eingeben, anderfalls beide leer lassen.
 ERROR_PARAMETER_MODE_NOT_SET=Fehler: Parameter 'modus' nicht gesetzt.
+ADMIN_EDIT_CONTACT_TITLE=Kontaktdaten editieren (Id-Nummer: {0})
+BUTTON_ADMIN_EDIT_CONTACT=Kontaktdaten \u00e4ndern
index f1c4b8aae7abe9996639c9b434046b50bc545225..372eb0bbe990bc8ac2b1162a666e24d2103f1175 100644 (file)
@@ -422,3 +422,5 @@ BUTTON_ADMIN_EDIT_USER=Change user data
 ADMIN_EDIT_USER_TITLE=Edit user data
 ADMIN_USER_DATA_PASSWORD_EDIT_NOTICE=If you want to change the password, enter it twice, otherwise leave both empty.
 ERROR_PARAMETER_MODE_NOT_SET=Error: Parameter 'modus' is not set.
+ADMIN_EDIT_CONTACT_TITLE=Edit contact data (id number: {0})
+BUTTON_ADMIN_EDIT_CONTACT=Change contact data
index 386f9ea267e5fe06595ae8a3e3b130370511393d..d2e7ea01ac439696c8848ffad7cdde5735e10ca0 100644 (file)
@@ -26,7 +26,9 @@
                        <h:form id="admin_edit_user" rendered="#{not empty adminHelper.contact}">
                                <div class="table">
                                        <div class="table_header">
-                                               #{msg.ADMIN_EDIT_CONTACT_TITLE}
+                                               <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
+                                                       <f:param value="#{adminHelper.contact.contactId}" />
+                                               </h:outputFormat>
                                        </div>
 
                                        <div class="para notice">
@@ -39,7 +41,7 @@
 
                                        <div class="table_footer">
                                                <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
-                                               <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}" action="#{adminUserController.changeContactData()}" />
+                                               <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}" action="#{adminContactController.changeContactData()}" />
                                        </div>
                                </div>
                        </h:form>