]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Added page (dummy) for editing contact data
authorRoland Haeder <roland@mxchange.org>
Mon, 18 Apr 2016 20:03:23 +0000 (22:03 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 18 Apr 2016 20:03:23 +0000 (22:03 +0200)
nbproject/faces-config.NavData
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/faces-config.xml
web/WEB-INF/templates/admin/user/admin_user_links.tpl
web/admin/contact/admin_contact_edit.xhtml [new file with mode: 0644]

index 62baaf8e870b0d4ca64e02a32706b17c3be1d5f5..ae7017849175bbd72cb049bea8947ae05dcb85e6 100644 (file)
@@ -2,48 +2,49 @@
 <Scene Scope="Project" version="2">
     <Scope Scope="Faces Configuration Only"/>
     <Scope Scope="Project">
-        <Node id="admin/cellphone/admin_contact_cellphone_list.xhtml" x="1400" y="300" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_delete.xhtml" x="650" y="600" zoom="true"/>
-        <Node id="customer/checkout2.xhtml" x="150" y="750" zoom="true"/>
-        <Node id="admin/contact/admin_contact_show.xhtml" x="1900" y="150" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_list.xhtml" x="400" y="150" zoom="true"/>
-        <Node id="privacy.xhtml" x="900" y="750" zoom="true"/>
-        <Node id="customer/checkout.xhtml" x="1400" y="150" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_show.xhtml" x="150" y="1200" zoom="true"/>
-        <Node id="admin/user/admin_user_show.xhtml" x="400" y="900" zoom="true"/>
-        <Node id="admin/product/admin_product_delete.xhtml" x="1150" y="300" zoom="true"/>
-        <Node id="admin/index.xhtml" x="1900" y="300" zoom="true"/>
-        <Node id="basket.xhtml" x="150" y="900" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_delete.xhtml" x="900" y="300" zoom="true"/>
-        <Node id="exception.xhtml" x="650" y="900" zoom="true"/>
-        <Node id="admin/user/admin_user_delete.xhtml" x="650" y="300" zoom="true"/>
-        <Node id="customer/register.xhtml" x="1150" y="150" zoom="true"/>
-        <Node id="admin/category/admin_category_list.xhtml" x="400" y="1200" zoom="true"/>
-        <Node id="item_added.xhtml" x="1400" y="450" zoom="true"/>
-        <Node id="admin/category/admin_category_delete.xhtml" x="150" y="1350" zoom="true"/>
-        <Node id="admin/country/admin_country_delete.xhtml" x="650" y="150" zoom="true"/>
-        <Node id="admin/user/admin_user_edit.xhtml" x="900" y="150" zoom="true"/>
-        <Node id="admin/admin_logout.xhtml" x="900" y="600" zoom="true"/>
-        <Node id="terms.xhtml" x="1400" y="600" zoom="true"/>
-        <Node id="admin/user/admin_user_unlock.xhtml" x="150" y="450" zoom="true"/>
-        <Node id="admin/country/admin_country_edit.xhtml" x="1650" y="300" zoom="true"/>
-        <Node id="admin/user/admin_user_list.xhtml" x="400" y="1050" zoom="true"/>
-        <Node id="customer/lost_passwd.xhtml" x="1150" y="600" zoom="true"/>
-        <Node id="index.xhtml" x="150" y="600" zoom="true"/>
-        <Node id="admin/category/admin_category_edit.xhtml" x="400" y="450" zoom="true"/>
-        <Node id="logout.xhtml" x="1150" y="750" zoom="true"/>
-        <Node id="admin/country/admin_country_list.xhtml" x="900" y="900" zoom="true"/>
-        <Node id="customer/checkout_done.xhtml" x="150" y="150" zoom="true"/>
-        <Node id="*" x="400" y="600" zoom="true"/>
-        <Node id="imprint.xhtml" x="650" y="750" zoom="true"/>
-        <Node id="customer/login.xhtml" x="900" y="450" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_edit.xhtml" x="1650" y="450" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_edit.xhtml" x="1650" y="150" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_show.xhtml" x="650" y="1050" zoom="true"/>
-        <Node id="admin/product/admin_product_edit.xhtml" x="400" y="750" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_unlink.xhtml" x="150" y="1050" zoom="true"/>
-        <Node id="admin/product/admin_product_list.xhtml" x="2400" y="150" zoom="true"/>
-        <Node id="customer/empty_basket.xhtml" x="2150" y="150" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_list.xhtml" x="150" y="1200" zoom="true"/>
+        <Node id="customer/checkout2.xhtml" x="400" y="750" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_delete.xhtml" x="1650" y="150" zoom="true"/>
+        <Node id="admin/contact/admin_contact_show.xhtml" x="900" y="300" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_list.xhtml" x="1400" y="300" zoom="true"/>
+        <Node id="customer/checkout.xhtml" x="900" y="150" zoom="true"/>
+        <Node id="privacy.xhtml" x="150" y="900" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_show.xhtml" x="1650" y="300" zoom="true"/>
+        <Node id="admin/user/admin_user_show.xhtml" x="900" y="600" zoom="true"/>
+        <Node id="admin/product/admin_product_delete.xhtml" x="400" y="150" zoom="true"/>
+        <Node id="admin/index.xhtml" x="1400" y="150" zoom="true"/>
+        <Node id="basket.xhtml" x="400" y="450" zoom="true"/>
+        <Node id="exception.xhtml" x="150" y="600" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_delete.xhtml" x="650" y="900" zoom="true"/>
+        <Node id="admin/user/admin_user_delete.xhtml" x="1900" y="300" zoom="true"/>
+        <Node id="customer/register.xhtml" x="400" y="900" zoom="true"/>
+        <Node id="admin/category/admin_category_list.xhtml" x="1150" y="300" zoom="true"/>
+        <Node id="item_added.xhtml" x="650" y="600" zoom="true"/>
+        <Node id="admin/category/admin_category_delete.xhtml" x="400" y="1050" zoom="true"/>
+        <Node id="admin/user/admin_user_edit.xhtml" x="1650" y="450" zoom="true"/>
+        <Node id="terms.xhtml" x="1150" y="600" zoom="true"/>
+        <Node id="admin/admin_logout.xhtml" x="2150" y="150" zoom="true"/>
+        <Node id="admin/contact/admin_contact_edit.xhtml" x="650" y="1050" zoom="true"/>
+        <Node id="admin/user/admin_user_unlock.xhtml" x="400" y="600" zoom="true"/>
+        <Node id="admin/user/admin_user_list.xhtml" x="150" y="150" zoom="true"/>
+        <Node id="customer/lost_passwd.xhtml" x="1150" y="750" zoom="true"/>
+        <Node id="admin/country/admin_country_delete.xhtml" x="1150" y="150" zoom="true"/>
+        <Node id="index.xhtml" x="150" y="1050" zoom="true"/>
+        <Node id="admin/category/admin_category_edit.xhtml" x="900" y="750" zoom="true"/>
+        <Node id="admin/country/admin_country_edit.xhtml" x="1900" y="150" zoom="true"/>
+        <Node id="logout.xhtml" x="1400" y="600" zoom="true"/>
+        <Node id="customer/checkout_done.xhtml" x="1150" y="450" zoom="true"/>
+        <Node id="customer/login.xhtml" x="400" y="300" zoom="true"/>
+        <Node id="imprint.xhtml" x="150" y="450" zoom="true"/>
+        <Node id="*" x="900" y="450" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_edit.xhtml" x="1400" y="450" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_edit.xhtml" x="650" y="450" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_show.xhtml" x="650" y="150" zoom="true"/>
+        <Node id="admin/product/admin_product_edit.xhtml" x="650" y="750" zoom="true"/>
+        <Node id="admin/country/admin_country_list.xhtml" x="150" y="300" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_unlink.xhtml" x="650" y="300" zoom="true"/>
+        <Node id="admin/product/admin_product_list.xhtml" x="900" y="900" zoom="true"/>
+        <Node id="customer/empty_basket.xhtml" x="150" y="750" zoom="true"/>
     </Scope>
     <Scope Scope="All Faces Configurations"/>
 </Scene>
index 85a9ff47b75b85a1e0848045cee95f38f757351a..0d6a9d735ea4e656d1b8738122a02e22c39e5944 100644 (file)
@@ -416,3 +416,8 @@ ADMIN_SHOW_CELLPHONE_UNLINK=Trennen:
 ADMIN_SHOW_CONTACT_ID=Kontakt-Id:
 PAGE_TITLE_ADMIN_SHOW_CONTACT=Kontaktdaten anzeigen
 CONTENT_TITLE_ADMIN_SHOW_CONTACT=Kontaktdaten anzeigen:
+PAGE_TITLE_ADMIN_EDIT_CONTACT=Kontaktdaten editieren
+CONTENT_TITLE_ADMIN_EDIT_CONTACT=Kontaktdaten editieren:
+ADMIN_LINK_EDIT_CONTACT=Kontaktdaten editieren
+#@TODO Please fix German umlauts!
+ADMIN_LINK_EDIT_CONTACT_TITLE=Hier koennen Sie die Kontaktdaten editieren.
index 8d537dc6a6230cdd92dbdf953412f9fa29cc104c..d457598fd022a7a9f0fcf196fa454d96ed4bba59 100644 (file)
@@ -413,3 +413,7 @@ ADMIN_SHOW_CELLPHONE_UNLINK=Unlink:
 ADMIN_SHOW_CONTACT_ID=Contact id:
 PAGE_TITLE_ADMIN_SHOW_CONTACT=Show contact data
 CONTENT_TITLE_ADMIN_SHOW_CONTACT=Show contact data:
+PAGE_TITLE_ADMIN_EDIT_CONTACT=Edit contact data
+CONTENT_TITLE_ADMIN_EDIT_CONTACT=Edit contact data:
+ADMIN_LINK_EDIT_CONTACT=Edit contact data
+ADMIN_LINK_EDIT_CONTACT_TITLE=Here you can edit contact data.
index d750fc19d3e824798d971cd2eeff483ad3532d6b..a20f1aa1d13f1730fd8df52be747217c27a2aa90 100644 (file)
                        <from-outcome>admin_unlock_user</from-outcome>
                        <to-view-id>/admin/user/admin_user_unlock.xhtml</to-view-id>
                </navigation-case>
+               <navigation-case>
+                       <from-outcome>admin_edit_contact</from-outcome>
+                       <to-view-id>/admin/contact/admin_contact_edit.xhtml</to-view-id>
+               </navigation-case>
                <navigation-case>
                        <from-outcome>admin_show_mobile_provider</from-outcome>
                        <to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
index 6ef73140cfad0e6b3b555189ae66deb192bebd05..0c66c5868533ad8f907ff653614120c47e61324d 100644 (file)
                                                </h:link>
                                        </li>
 
+                                       <li>
+                                               <h:link outcome="admin_edit_contact" value="#{msg.ADMIN_LINK_EDIT_CONTACT}" title="#{msg.ADMIN_LINK_EDIT_CONTACT_TITLE}">
+                                                       <f:param name="contactId" value="#{user.userContact.contactId}" />
+                                               </h:link>
+                                       </li>
+
                                        <li>
                                                <h:link outcome="admin_unlock_user" value="#{msg.ADMIN_LINK_UNLOCK_USER}" title="#{msg.ADMIN_LINK_UNLOCK_USER_TITLE}">
                                                        <f:param name="userId" value="#{user.userId}" />
diff --git a/web/admin/contact/admin_contact_edit.xhtml b/web/admin/contact/admin_contact_edit.xhtml
new file mode 100644 (file)
index 0000000..9397ecf
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
+       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       >
+
+       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
+               <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}</ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+       </ui:composition>
+</html>