]> git.mxchange.org Git - jjobs-war.git/commitdiff
added title (e.g. Dr., Prof. etc)
authorRoland Häder <roland@mxchange.org>
Tue, 31 May 2016 13:27:46 +0000 (15:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 1 Jun 2016 19:45:08 +0000 (21:45 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
nbproject/faces-config.NavData
src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestController.java
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl

index 3df3c843455dcca07d1926b2d638ecc09aee9d8c..e492c25dbc5daa21d957e093664129757124032c 100644 (file)
@@ -2,67 +2,67 @@
 <Scene Scope="Project" version="2">
     <Scope Scope="Faces Configuration Only"/>
     <Scope Scope="Project">
-        <Node id="admin/cellphone/admin_contact_cellphone_list.xhtml" x="1650" y="150" zoom="true"/>
-        <Node id="admin/contact/admin_contact_show.xhtml" x="2150" y="150" zoom="true"/>
-        <Node id="privacy.xhtml" x="650" y="750" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_show.xhtml" x="150" y="150" zoom="true"/>
-        <Node id="guest/user/show_addressbook.xhtml" x="650" y="1200" zoom="true"/>
-        <Node id="admin/user/admin_user_show.xhtml" x="400" y="750" zoom="true"/>
-        <Node id="admin/index.xhtml" x="150" y="1200" zoom="true"/>
-        <Node id="user/login_own_addressbooks.xhtml" x="2400" y="150" zoom="true"/>
-        <Node id="user/login_user_data_saved.xhtml" x="2400" y="300" zoom="true"/>
-        <Node id="admin/admin_logout.xhtml" x="900" y="600" zoom="true"/>
-        <Node id="user/login_data_saved.xhtml" x="1650" y="450" zoom="true"/>
-        <Node id="admin/user/admin_user_unlock.xhtml" x="1400" y="150" zoom="true"/>
-        <Node id="guest/user/user_list.xhtml" x="400" y="450" zoom="true"/>
-        <Node id="index.xhtml" x="150" y="600" zoom="true"/>
-        <Node id="user/login_edit_user_data.xhtml" x="650" y="450" zoom="true"/>
-        <Node id="*" x="400" y="900" zoom="true"/>
-        <Node id="admin/admin_category_delete.xhtml" x="1150" y="900" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_edit.xhtml" x="650" y="300" zoom="true"/>
-        <Node id="user/login_index.xhtml" x="1650" y="750" zoom="true"/>
-        <Node id="guest/user/lost_passwd.xhtml" x="900" y="300" zoom="true"/>
-        <Node id="guest/user/register_done.xhtml" x="1150" y="300" zoom="true"/>
-        <Node id="guest/user/show_addressbook_entries.xhtml" x="400" y="300" zoom="true"/>
-        <Node id="user/login.xhtml" x="1150" y="150" 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="150" y="750" zoom="true"/>
-        <Node id="login/login_edit_user_data.xhtml" x="2650" y="150" zoom="true"/>
-        <Node id="guest/user/login_error.xhtml" x="650" y="600" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_delete.xhtml" x="1400" y="900" zoom="true"/>
-        <Node id="user/login_change_password.xhtml" x="900" y="900" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_list.xhtml" x="1900" y="450" zoom="true"/>
-        <Node id="admin/contact/admin_contact_export.xhtml" x="1400" y="600" zoom="true"/>
-        <Node id="guest/user/user_profile.xhtml" x="400" y="150" zoom="true"/>
-        <Node id="guest/user/confirm_account.xhtml" x="150" y="900" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_delete.xhtml" x="1400" y="300" zoom="true"/>
-        <Node id="admin/user/admin_user_delete.xhtml" x="900" y="1050" zoom="true"/>
-        <Node id="exception.xhtml" x="150" y="1500" zoom="true"/>
-        <Node id="login/login_index.xhtml" x="1900" y="150" zoom="true"/>
-        <Node id="guest/user/register_page2.xhtml" x="400" y="1050" zoom="true"/>
-        <Node id="admin/user/admin_user_edit.xhtml" x="650" y="1050" zoom="true"/>
-        <Node id="terms.xhtml" x="400" y="1350" zoom="true"/>
-        <Node id="admin/contact/admin_contact_edit.xhtml" x="1150" y="600" zoom="true"/>
-        <Node id="admin/contact/admin_contact_list.xhtml" x="650" y="900" zoom="true"/>
-        <Node id="admin/user/admin_user_list.xhtml" x="900" y="450" zoom="true"/>
-        <Node id="admin/admin_user_add.xhtml" x="1400" y="750" zoom="true"/>
-        <Node id="admin/country/admin_country_delete.xhtml" x="150" y="1350" zoom="true"/>
-        <Node id="user/login_change_personal_data.xhtml" x="400" y="1200" zoom="true"/>
-        <Node id="admin/country/admin_country_edit.xhtml" x="1650" y="600" zoom="true"/>
-        <Node id="logout.xhtml" x="1900" y="600" zoom="true"/>
-        <Node id="guest/user/resend_link.xhtml" x="1150" y="450" zoom="true"/>
-        <Node id="user/login_add_addressbook.xhtml" x="1400" y="450" zoom="true"/>
-        <Node id="user/login_contact_data_saved.xhtml" x="900" y="150" zoom="true"/>
-        <Node id="user/user_profile.xhtml" x="900" y="750" zoom="true"/>
-        <Node id="admin/contact/admin_contact_delete.xhtml" x="1900" y="300" zoom="true"/>
-        <Node id="imprint.xhtml" x="2150" y="300" zoom="true"/>
-        <Node id="admin/mobile_provider/admin_mobile_provider_edit.xhtml" x="1650" y="300" zoom="true"/>
-        <Node id="admin/cellphone/admin_contact_cellphone_show.xhtml" x="150" y="1050" zoom="true"/>
-        <Node id="guest/user/login.xhtml" x="650" y="150" zoom="true"/>
-        <Node id="admin/admin_product_delete.xhtml" x="150" y="450" zoom="true"/>
-        <Node id="guest/user/register.xhtml" x="400" y="600" zoom="true"/>
-        <Node id="user/login_change_email_address.xhtml" x="2150" y="450" zoom="true"/>
-        <Node id="user/login/login_data_saved.xhtml" x="1150" y="750" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_list.xhtml" x="400" y="1050" zoom="true"/>
+        <Node id="admin/contact/admin_contact_show.xhtml" x="1900" y="450" zoom="true"/>
+        <Node id="privacy.xhtml" x="650" y="600" zoom="true"/>
+        <Node id="guest/user/show_addressbook.xhtml" x="1400" y="150" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_show.xhtml" x="900" y="1050" zoom="true"/>
+        <Node id="admin/user/admin_user_show.xhtml" x="1400" y="900" zoom="true"/>
+        <Node id="admin/index.xhtml" x="400" y="1350" zoom="true"/>
+        <Node id="user/login_own_addressbooks.xhtml" x="150" y="450" zoom="true"/>
+        <Node id="user/login_user_data_saved.xhtml" x="1900" y="300" zoom="true"/>
+        <Node id="admin/admin_logout.xhtml" x="1150" y="900" zoom="true"/>
+        <Node id="user/login_data_saved.xhtml" x="900" y="300" zoom="true"/>
+        <Node id="admin/user/admin_user_unlock.xhtml" x="650" y="750" zoom="true"/>
+        <Node id="guest/user/user_list.xhtml" x="150" y="900" zoom="true"/>
+        <Node id="index.xhtml" x="2650" y="150" zoom="true"/>
+        <Node id="user/login_edit_user_data.xhtml" x="900" y="900" zoom="true"/>
+        <Node id="admin/admin_category_delete.xhtml" x="900" y="600" zoom="true"/>
+        <Node id="*" x="1400" y="600" zoom="true"/>
+        <Node id="user/login_index.xhtml" x="400" y="150" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_edit.xhtml" x="900" y="450" zoom="true"/>
+        <Node id="guest/user/lost_passwd.xhtml" x="150" y="600" zoom="true"/>
+        <Node id="guest/user/register_done.xhtml" x="1650" y="450" zoom="true"/>
+        <Node id="guest/user/show_addressbook_entries.xhtml" x="1150" y="450" zoom="true"/>
+        <Node id="user/login.xhtml" x="2150" y="300" zoom="true"/>
+        <Node id="login/login_edit_user_data.xhtml" x="1400" y="300" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_unlink.xhtml" x="1400" y="450" zoom="true"/>
+        <Node id="admin/country/admin_country_list.xhtml" x="650" y="1050" zoom="true"/>
+        <Node id="guest/user/login_error.xhtml" x="1900" y="600" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_delete.xhtml" x="1150" y="750" zoom="true"/>
+        <Node id="user/login_change_password.xhtml" x="2150" y="150" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_list.xhtml" x="1650" y="300" zoom="true"/>
+        <Node id="admin/contact/admin_contact_export.xhtml" x="650" y="300" zoom="true"/>
+        <Node id="guest/user/user_profile.xhtml" x="1650" y="750" zoom="true"/>
+        <Node id="guest/user/confirm_account.xhtml" x="1150" y="300" zoom="true"/>
+        <Node id="exception.xhtml" x="150" y="300" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_delete.xhtml" x="900" y="150" zoom="true"/>
+        <Node id="admin/user/admin_user_delete.xhtml" x="150" y="1350" zoom="true"/>
+        <Node id="login/login_index.xhtml" x="1150" y="600" zoom="true"/>
+        <Node id="guest/user/register_page2.xhtml" x="1150" y="150" zoom="true"/>
+        <Node id="admin/user/admin_user_edit.xhtml" x="900" y="750" zoom="true"/>
+        <Node id="terms.xhtml" x="650" y="1200" zoom="true"/>
+        <Node id="admin/contact/admin_contact_edit.xhtml" x="650" y="150" zoom="true"/>
+        <Node id="admin/contact/admin_contact_list.xhtml" x="400" y="300" zoom="true"/>
+        <Node id="admin/admin_user_add.xhtml" x="650" y="900" zoom="true"/>
+        <Node id="admin/user/admin_user_list.xhtml" x="400" y="1200" zoom="true"/>
+        <Node id="admin/country/admin_country_delete.xhtml" x="150" y="150" zoom="true"/>
+        <Node id="user/login_change_personal_data.xhtml" x="400" y="450" zoom="true"/>
+        <Node id="admin/country/admin_country_edit.xhtml" x="400" y="600" zoom="true"/>
+        <Node id="logout.xhtml" x="1650" y="150" zoom="true"/>
+        <Node id="guest/user/resend_link.xhtml" x="400" y="900" zoom="true"/>
+        <Node id="user/login_add_addressbook.xhtml" x="2400" y="150" zoom="true"/>
+        <Node id="user/login_contact_data_saved.xhtml" x="2150" y="450" zoom="true"/>
+        <Node id="user/user_profile.xhtml" x="650" y="450" zoom="true"/>
+        <Node id="admin/contact/admin_contact_delete.xhtml" x="2400" y="300" zoom="true"/>
+        <Node id="imprint.xhtml" x="150" y="1500" zoom="true"/>
+        <Node id="admin/mobile_provider/admin_mobile_provider_edit.xhtml" x="1650" y="600" zoom="true"/>
+        <Node id="admin/cellphone/admin_contact_cellphone_show.xhtml" x="150" y="1200" zoom="true"/>
+        <Node id="guest/user/login.xhtml" x="150" y="1050" zoom="true"/>
+        <Node id="admin/admin_product_delete.xhtml" x="1900" y="150" zoom="true"/>
+        <Node id="guest/user/register.xhtml" x="150" y="750" zoom="true"/>
+        <Node id="user/login_change_email_address.xhtml" x="1400" y="750" zoom="true"/>
+        <Node id="user/login/login_data_saved.xhtml" x="400" y="750" zoom="true"/>
     </Scope>
     <Scope Scope="All Faces Configurations"/>
 </Scene>
index 3aa0ea262178ff56439cb6d6b85928bb448e3d3f..53d1845d982902e3f2b2c181330e058604974581 100644 (file)
@@ -214,6 +214,11 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
         */
        private String street;
 
+       /**
+        * Title
+        */
+       private String title;
+
        /**
         * An event fired when the administrator has updated contact data
         */
@@ -310,6 +315,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
 
                // Set all fields: contact
                this.setContactId(contact.getContactId());
+               this.setTitle(contact.getContactTitle());
                this.setBirthday(contact.getContactBirthday());
                this.setCity(contact.getContactCity());
                this.setComment(contact.getContactComment());
@@ -679,6 +685,16 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
                this.street = street;
        }
 
+       @Override
+       public String getTitle () {
+               return this.title;
+       }
+
+       @Override
+       public void setTitle (final String title) {
+               this.title = title;
+       }
+
        @Override
        public Integer getZipCode () {
                return this.zipCode;
@@ -703,6 +719,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
                // Clear all data
                // - personal data
                this.setGender(Gender.UNKNOWN);
+               this.setTitle(null);
                this.setFirstName(null);
                this.setFamilyName(null);
                this.setStreet(null);
@@ -778,6 +795,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
 
                // Update all fields
                contact.setContactGender(this.getGender());
+               contact.setContactTitle(this.getTitle());
                contact.setContactFirstName(this.getFirstName());
                contact.setContactFamilyName(this.getFamilyName());
                contact.setContactStreet(this.getStreet());
index 5959a70047928a000691cbbdcc21c01072b9e41b..8df27e4d4fe8cd68fcdd9bb1845c4e555e5fa545 100644 (file)
@@ -369,6 +369,20 @@ public interface JobsAdminContactWebRequestController extends Serializable {
         */
        void setStreet (final String street);
 
+       /**
+        * Getter for title
+        * <p>
+        * @return title
+        */
+       String getTitle ();
+
+       /**
+        * Setter for title
+        * <p>
+        * @param title Title
+        */
+       void setTitle (final String title);
+
        /**
         * ZIP code
         * <p>
index fa9635adeac6ced64c3d12ca3f33fe36b4554898..e475afb79655c42e839c4d06a4f2e078975eed6c 100644 (file)
@@ -545,3 +545,4 @@ GUEST_CONTACT_DATA_ZIP_CODE_REQUIRED=Bitte geben Sie Ihre Postleitzahl ein.
 GUEST_CONTACT_DATA_CITY_REQUIRED=Bitte geben Sie Ihren Wohnort ein.
 GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Bitte geben Sie Ihr Geburtsdatum ein.
 FIELD_GENDER_REQUIRED=Bitte w\u00e4hlen Sie eine Anrede aus.
+ADMIN_PERSONAL_DATA_TITLE=Titel:
index 689fc279e1333bf077d57adf9bd2ea3218e3594d..4959551dcbad4f480344cedd2f5d1394e4128175 100644 (file)
@@ -546,3 +546,4 @@ GUEST_CONTACT_DATA_ZIP_CODE_REQUIRED=Please enter your ZIP code.
 GUEST_CONTACT_DATA_CITY_REQUIRED=Please enter your city.
 GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Please enter your birthday.
 FIELD_GENDER_REQUIRED=Please select a salutation.
+ADMIN_PERSONAL_DATA_TITLE=Title:
index 0282508c252fc37b6e2ed9eed0e345010f86b013..f7f3228b75f1506d1ce75419d0126dd5d750351f 100644 (file)
 
                        <h:message for="firstName" errorClass="errors" fatalClass="errors" warnClass="errors" />
 
+                       <div class="table_row">
+                               <div class="table_left_medium">
+                                       <h:outputLabel for="title" value="#{msg.ADMIN_PERSONAL_DATA_TITLE}" />
+                               </div>
+
+                               <div class="table_right_medium">
+                                       <h:inputText styleClass="input" id="title" size="5" maxlength="255" value="#{adminContactController.title}" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <h:message for="title" errorClass="errors" fatalClass="errors" warnClass="errors" />
+
                        <div class="table_row">
                                <div class="table_left_medium">
                                        <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />