]> git.mxchange.org Git - pizzaservice-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 11:08:53 +0000 (13:08 +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 60e15ffa2788463f0e3af6de5e8ab3959dca7a9a..3cf85354f30f04a719e767eff663d9f0de9f2e47 100644 (file)
@@ -302,3 +302,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 9ae8e50df17ab5af9f47cbcdee0a9b04769815aa..2bf2daeb79d6260f9b027c504cb9d6d3e2bb4dc9 100644 (file)
@@ -302,3 +302,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>