]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 19:08:21 +0000 (21:08 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 19:30:55 +0000 (21:30 +0200)
- using gender for Mr./Mrs. is plain wrong, now "personal title" and "academic
  title" are being used.

Signed-off-by: Roland Häder <roland@mxchange.org>
32 files changed:
src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestController.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java
src/java/org/mxchange/jfinancials/beans/gender/FinancialsGenderWebApplicationBean.java
src/java/org/mxchange/jfinancials/beans/gender/FinancialsGenderWebApplicationController.java
src/java/org/mxchange/jfinancials/beans/profilemode/FinancialsProfileModeWebApplicationController.java
src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.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_contact_data.tpl [deleted file]
web/WEB-INF/templates/admin/contact/admin_contact_data_columns.tpl
web/WEB-INF/templates/admin/contact/admin_contact_data_columns_mini.tpl
web/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl
web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
web/WEB-INF/templates/contact/form_contact_data.tpl
web/WEB-INF/templates/generic/gender_selection_box.tpl [deleted file]
web/WEB-INF/templates/generic/personal_title_selection_box.tpl [new file with mode: 0644]
web/WEB-INF/web.xml
web/admin/contact/admin_contact_delete.xhtml
web/admin/contact/admin_contact_edit.xhtml
web/admin/contact/admin_contact_export.xhtml
web/admin/contact/admin_contact_list.xhtml
web/admin/fax/admin_fax_show.xhtml
web/admin/landline/admin_landline_show.xhtml
web/admin/mobile/admin_mobile_show.xhtml
web/admin/user/admin_user_activity_log.xhtml
web/admin/user/admin_user_export.xhtml
web/admin/user/admin_user_list.xhtml
web/admin/user/admin_user_lock.xhtml
web/admin/user/admin_user_unlock.xhtml
web/guest/user/user_confirm_account.xhtml

index f6616125f1cf01b6f038945dafa72a8a95125a67..09b47dda14c81c8bd6b049511684d785dd9089e6 100644 (file)
@@ -34,7 +34,7 @@ import org.mxchange.jcontacts.contact.AdminContactSessionBeanRemote;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
 import org.mxchange.jcontacts.contact.UserContact;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jcontacts.contact.utils.ContactUtils;
 import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
 import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
@@ -156,11 +156,6 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
         */
        private String firstName;
 
-       /**
-        * Gender instance
-        */
-       private Gender gender;
-
        /**
         * House number
         */
@@ -221,15 +216,20 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
         */
        private MobileProvider mobileProvider;
 
+       /**
+        * PersonalTitle instance
+        */
+       private PersonalTitle personalTitle;
+
        /**
         * Street
         */
        private String street;
 
        /**
-        * Title
+        * Academic academicTitle
         */
-       private String title;
+       private String academicTitle;
 
        /**
         * An event fired when the administrator has updated contact data
@@ -254,9 +254,9 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
        @Override
        public String addContact () {
                // Are all minimum fields set?
-               if (this.getGender() == null) {
+               if (this.getPersonalTitle() == null) {
                        // Throw NPE
-                       throw new NullPointerException("gender is null"); //NOI18N
+                       throw new NullPointerException("personalTitle is null"); //NOI18N
                } else if (this.getFirstName() == null) {
                        // Throw NPE
                        throw new NullPointerException("firstName is null"); //NOI18N
@@ -321,7 +321,7 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
 
                // Set all fields: contact
                this.setContactId(contact.getContactId());
-               this.setTitle(contact.getContactTitle());
+               this.setAcademicTitle(contact.getContactTitle());
                this.setBirthday(contact.getContactBirthday());
                this.setCity(contact.getContactCity());
                this.setComment(contact.getContactComment());
@@ -329,7 +329,7 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
                this.setEmailAddress(contact.getContactEmailAddress());
                this.setFamilyName(contact.getContactFamilyName());
                this.setFirstName(contact.getContactFirstName());
-               this.setGender(contact.getContactGender());
+               this.setPersonalTitle(contact.getContactPersonalTitle());
                this.setHouseNumber(contact.getContactHouseNumber());
                this.setHouseNumberExtension(contact.getContactHouseNumberExtension());
                this.setStreet(contact.getContactStreet());
@@ -368,9 +368,9 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
        @Override
        public Contact createContactInstance () {
                // Are all minimum fields set?
-               if (this.getGender() == null) {
+               if (this.getPersonalTitle() == null) {
                        // Throw NPE
-                       throw new NullPointerException("gender is null"); //NOI18N
+                       throw new NullPointerException("personalTitle is null"); //NOI18N
                } else if (this.getFirstName() == null) {
                        // Throw NPE
                        throw new NullPointerException("firstName is null"); //NOI18N
@@ -391,9 +391,10 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
                DialableFaxNumber fax = new FaxNumber(this.getFaxCountry(), this.getFaxAreaCode(), this.getFaxNumber());
 
                // Create new instance
-               Contact contact = new UserContact(this.getGender(), this.getFirstName(), this.getFamilyName());
+               Contact contact = new UserContact(this.getPersonalTitle(), this.getFirstName(), this.getFamilyName());
 
                // Add all others
+               contact.setContactTitle(this.getAcademicTitle());
                contact.setContactBirthday(this.getBirthday());
                contact.setContactStreet(this.getStreet());
                contact.setContactHouseNumber(this.getHouseNumber());
@@ -674,16 +675,6 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
                this.firstName = firstName;
        }
 
-       @Override
-       public Gender getGender () {
-               return this.gender;
-       }
-
-       @Override
-       public void setGender (final Gender gender) {
-               this.gender = gender;
-       }
-
        @Override
        public Short getHouseNumber () {
                return this.houseNumber;
@@ -774,6 +765,16 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
                this.mobileProvider = mobileProvider;
        }
 
+       @Override
+       public PersonalTitle getPersonalTitle () {
+               return this.personalTitle;
+       }
+
+       @Override
+       public void setPersonalTitle (final PersonalTitle personalTitle) {
+               this.personalTitle = personalTitle;
+       }
+
        @Override
        public String getStreet () {
                return this.street;
@@ -785,13 +786,13 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
        }
 
        @Override
-       public String getTitle () {
-               return this.title;
+       public String getAcademicTitle () {
+               return this.academicTitle;
        }
 
        @Override
-       public void setTitle (final String title) {
-               this.title = title;
+       public void setAcademicTitle (final String academicTitle) {
+               this.academicTitle = academicTitle;
        }
 
        @Override
@@ -826,9 +827,9 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
        }
 
        @Override
-       public boolean isGenderRequired () {
+       public boolean isPersonalTitleRequired () {
                // Get context parameter
-               String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter("is_admin_gender_enabled"); //NOI18N
+               String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter("is_admin_personal_title_enabled"); //NOI18N
 
                // Is it set?
                boolean isRequired = ((contextParameter instanceof String) && (contextParameter.toLowerCase().equals("true"))); //NOI18N
@@ -843,7 +844,7 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
        private void clear () {
                // Clear all data
                // - personal data
-               this.setTitle(null);
+               this.setAcademicTitle(null);
                this.setFirstName(null);
                this.setFamilyName(null);
                this.setStreet(null);
@@ -919,8 +920,8 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsControll
                }
 
                // Update all fields
-               contact.setContactGender(this.getGender());
-               contact.setContactTitle(this.getTitle());
+               contact.setContactPersonalTitle(this.getPersonalTitle());
+               contact.setContactTitle(this.getAcademicTitle());
                contact.setContactFirstName(this.getFirstName());
                contact.setContactFamilyName(this.getFamilyName());
                contact.setContactStreet(this.getStreet());
index ab80a8da674e16657cba2c25bb55fa3c0b19e78b..8bd2df3366eddf4244ddcab12a4a1237ca1e16e7 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jfinancials.beans.contact;
 import java.io.Serializable;
 import java.util.Date;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.phonenumbers.DialableNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
@@ -286,18 +286,18 @@ public interface FinancialsAdminContactWebRequestController extends Serializable
        void setFirstName (final String firstName);
 
        /**
-        * Gender of the contact
+        * Getter for personal title
         * <p>
-        * @return the gender
+        * @return Personal title
         */
-       Gender getGender ();
+       PersonalTitle getPersonalTitle ();
 
        /**
-        * Gender of the contact
+        * Setter for personal title
         * <p>
-        * @param gender the gender to set
+        * @param personalTitle Personal title
         */
-       void setGender (final Gender gender);
+       void setPersonalTitle (final PersonalTitle personalTitle);
 
        /**
         * House number
@@ -385,18 +385,18 @@ public interface FinancialsAdminContactWebRequestController extends Serializable
        void setStreet (final String street);
 
        /**
-        * Getter for title
+        * Getter for academic title
         * <p>
-        * @return title
+        * @return Academic title
         */
-       String getTitle ();
+       String getAcademicTitle ();
 
        /**
-        * Setter for title
+        * Setter for academic title
         * <p>
-        * @param title Title
+        * @param academicTitle Academic title
         */
-       void setTitle (final String title);
+       void setAcademicTitle (final String academicTitle);
 
        /**
         * ZIP code
@@ -449,11 +449,11 @@ public interface FinancialsAdminContactWebRequestController extends Serializable
        String generateMobileNumber (final DialableMobileNumber mobileNumber);
 
        /**
-        * Checks/returns whether the gender/salutation is required for this
+        * Checks/returns whether the personal title (Mr./Mrs.) is required for this
         * controller.
         * <p>
-        * @return Whether gender is required
+        * @return Whether personal title is required
         */
-       boolean isGenderRequired ();
+       boolean isPersonalTitleRequired ();
 
 }
index 256832ca47649042cccbeb6b23fa5c8dd8b2b436..825f1af237f33ca0621faa252b1baaa8806cef9a 100644 (file)
@@ -35,7 +35,7 @@ import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
 import org.mxchange.jcontacts.contact.UserContact;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jcontacts.contact.utils.ContactUtils;
 import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
 import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
@@ -73,6 +73,11 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
         */
        private static final long serialVersionUID = 542_145_347_916L;
 
+       /**
+        * Academic academicTitle
+        */
+       private String academicTitle;
+
        /**
         * Birth day
         */
@@ -143,11 +148,6 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
         */
        private String firstName;
 
-       /**
-        * Gender instance
-        */
-       private Gender gender;
-
        /**
         * House number
         */
@@ -198,6 +198,11 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
         */
        private MobileProvider mobileProvider;
 
+       /**
+        * Personal academicTitle
+        */
+       private PersonalTitle personalTitle;
+
        /**
         * A list of all selectable contacts
         */
@@ -208,11 +213,6 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
         */
        private String street;
 
-       /**
-        * Title
-        */
-       private String title;
-
        /**
         * Regular user controller
         */
@@ -470,7 +470,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
                DialableFaxNumber fax = new FaxNumber(this.getFaxCountry(), this.getFaxAreaCode(), this.getFaxNumber());
 
                // Create new contact
-               Contact contact = new UserContact(this.getGender(), this.getFirstName(), this.getFamilyName());
+               Contact contact = new UserContact(this.getPersonalTitle(), this.getFirstName(), this.getFamilyName());
                contact.setContactStreet(this.getStreet());
                contact.setContactHouseNumber(this.getHouseNumber());
                contact.setContactHouseNumberExtension(this.getHouseNumberExtension());
@@ -566,7 +566,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
                assert (contact.getContactId() > 0) : MessageFormat.format("Instance userLoginController.userContact.contactId={0} is invalid", contact.getContactId()); //NOI18N
 
                // Update all fields
-               contact.setContactGender(this.getGender());
+               contact.setContactPersonalTitle(this.getPersonalTitle());
                contact.setContactFirstName(this.getFirstName());
                contact.setContactFamilyName(this.getFamilyName());
                contact.setContactStreet(this.getStreet());
@@ -592,6 +592,16 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
                return "contact_data_saved"; //NOI18N
        }
 
+       @Override
+       public String getAcademicTitle () {
+               return this.academicTitle;
+       }
+
+       @Override
+       public void setAcademicTitle (final String academicTitle) {
+               this.academicTitle = academicTitle;
+       }
+
        @Override
        @SuppressWarnings ("ReturnOfDateField")
        public Date getBirthday () {
@@ -715,16 +725,6 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
                this.firstName = firstName;
        }
 
-       @Override
-       public Gender getGender () {
-               return this.gender;
-       }
-
-       @Override
-       public void setGender (final Gender gender) {
-               this.gender = gender;
-       }
-
        @Override
        public Short getHouseNumber () {
                return this.houseNumber;
@@ -796,23 +796,23 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
        }
 
        @Override
-       public String getStreet () {
-               return this.street;
+       public PersonalTitle getPersonalTitle () {
+               return this.personalTitle;
        }
 
        @Override
-       public void setStreet (final String street) {
-               this.street = street;
+       public void setPersonalTitle (final PersonalTitle personalTitle) {
+               this.personalTitle = personalTitle;
        }
 
        @Override
-       public String getTitle () {
-               return this.title;
+       public String getStreet () {
+               return this.street;
        }
 
        @Override
-       public void setTitle (final String title) {
-               this.title = title;
+       public void setStreet (final String street) {
+               this.street = street;
        }
 
        @Override
@@ -903,7 +903,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
 
        @Override
        public boolean isRequiredChangePersonalDataSet () {
-               return ((this.getGender() != null) &&
+               return ((this.getPersonalTitle() != null) &&
                                (this.getFirstName() != null) &&
                                (this.getFamilyName() != null) &&
                                (this.getStreet() != null) &&
@@ -914,7 +914,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
 
        @Override
        public boolean isRequiredPersonalDataSet () {
-               return ((this.getGender() != null) &&
+               return ((this.getPersonalTitle() != null) &&
                                (this.getFirstName() != null) &&
                                (this.getFamilyName() != null) &&
                                (this.getStreet() != null) &&
@@ -1009,8 +1009,8 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
        private void clear () {
                // Clear all data
                // - personal data
-               this.setGender(null);
-               this.setTitle(null);
+               this.setPersonalTitle(null);
+               this.setAcademicTitle(null);
                this.setFirstName(null);
                this.setFamilyName(null);
                this.setStreet(null);
@@ -1057,8 +1057,8 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im
 
                // Copy all fields:
                // - base data
-               this.setGender(contact.getContactGender());
-               this.setTitle(contact.getContactTitle());
+               this.setPersonalTitle(contact.getContactPersonalTitle());
+               this.setAcademicTitle(contact.getContactTitle());
                this.setFirstName(contact.getContactFirstName());
                this.setFamilyName(contact.getContactFamilyName());
                this.setStreet(contact.getContactStreet());
index 59ed155d11dda206f40557f7db1aee62036d008d..1a4b5fe57a56424aad0113d3413aa9ee6df9d77c 100644 (file)
@@ -21,7 +21,7 @@ import java.util.Date;
 import java.util.List;
 import javax.ejb.Local;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 import org.mxchange.jcontactsbusiness.exceptions.BusinessContactNotFoundException;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
@@ -255,18 +255,18 @@ public interface FinancialsContactWebSessionController extends Serializable {
        void setFirstName (final String firstName);
 
        /**
-        * Gender of the contact
+        * Getter for personal title
         * <p>
-        * @return the gender
+        * @return Personal title
         */
-       Gender getGender ();
+       PersonalTitle getPersonalTitle ();
 
        /**
-        * Gender of the contact
+        * Setter for personal title
         * <p>
-        * @param gender the gender to set
+        * @param personalTitle Personal title
         */
-       void setGender (final Gender gender);
+       void setPersonalTitle (final PersonalTitle personalTitle);
 
        /**
         * House number
@@ -354,18 +354,18 @@ public interface FinancialsContactWebSessionController extends Serializable {
        void setStreet (final String street);
 
        /**
-        * Title
+        * Getter for academic title
         * <p>
-        * @return the title
+        * @return Academic title
         */
-       String getTitle ();
+       String getAcademicTitle ();
 
        /**
-        * Title
+        * Setter for academic title
         * <p>
-        * @param title the title to set
+        * @param academicTitle Academic title
         */
-       void setTitle (final String title);
+       void setAcademicTitle (final String academicTitle);
 
        /**
         * ZIP code
index 523afad7bb058dbaaf4ccc402d712305ae60bf88..3d0040ac0b6b34dd2a9ca3cca03104c92d4ff038 100644 (file)
@@ -20,12 +20,12 @@ import java.util.List;
 import javax.annotation.PostConstruct;
 import javax.enterprise.context.ApplicationScoped;
 import javax.inject.Named;
-import org.mxchange.jcontacts.contact.gender.Gender;
-import org.mxchange.jcontacts.contact.gender.GenderUtils;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
+import org.mxchange.jcontacts.contact.title.TitleUtils;
 import org.mxchange.jfinancials.beans.BaseFinancialsController;
 
 /**
- * A gender bean
+ * A gender and title bean
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
@@ -47,15 +47,15 @@ public class FinancialsGenderWebApplicationBean extends BaseFinancialsController
        }
 
        @Override
-       public Gender[] getAllGenders () {
+       public PersonalTitle[] getAllGenders () {
                // Return it
-               return Gender.values();
+               return PersonalTitle.values();
        }
 
        @Override
-       public List<Gender> getSelectableGenders () {
+       public List<PersonalTitle> getSelectableGenders () {
                // Init array
-               List<Gender> genders = GenderUtils.selectableGenders();
+               List<PersonalTitle> genders = TitleUtils.allPersonalTitlesAsList();
 
                // Return it
                return genders;
index 61860a29e219c22aebef7d95d0186003a9ed4a86..19a417dac5922200c3d5db6263f9a14415c0d7a0 100644 (file)
@@ -18,10 +18,10 @@ package org.mxchange.jfinancials.beans.gender;
 
 import java.io.Serializable;
 import java.util.List;
-import org.mxchange.jcontacts.contact.gender.Gender;
+import org.mxchange.jcontacts.contact.title.PersonalTitle;
 
 /**
- * An interface for data beans
+ * An interface for gender and title (static data) beans
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
@@ -32,13 +32,13 @@ public interface FinancialsGenderWebApplicationController extends Serializable {
         * <p>
         * @return All genders as array
         */
-       Gender[] getAllGenders ();
+       PersonalTitle[] getAllGenders ();
 
        /**
         * Getter for only selectable genders as array, UNKNOWN is not selectable
         * <p>
         * @return All genders as array
         */
-       List<Gender> getSelectableGenders ();
+       List<PersonalTitle> getSelectableGenders ();
 
 }
index c1b1143099fe0fe9c619d98132e75d7695f442d2..ad9516117907d3dce3ed37557a01c85274d76dc8 100644 (file)
@@ -27,9 +27,9 @@ import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
 public interface FinancialsProfileModeWebApplicationController extends Serializable {
 
        /**
-        * Getter for all genders as array
+        * Getter for all profile modes as array
         * <p>
-        * @return All genders as array
+        * @return All profile modes as array
         */
        ProfileMode[] getAllProfileModes ();
 }
index a7565ebaf6885e012e652adcf5bcf57f648f66f3..02ed98886811af639bb5aac740cc38085827df66 100644 (file)
@@ -212,7 +212,7 @@ public class FinancialsAdminUserWebRequestBean extends BaseFinancialsController
                        throw new IllegalArgumentException("userName is null"); //NOI18N
                } else if (this.beanHelper.getContact() == null) {
                        // No contact instance set, so test required fields: gender, first name and family name
-                       if (this.contactController.getGender() == null) {
+                       if (this.contactController.getPersonalTitle() == null) {
                                // Throw NPE again
                                throw new NullPointerException("contactController.gender is null"); //NOI18N
                        } else if (this.contactController.getFirstName() == null) {
index 0f795fbeafe0ef8af5dc1644bb4256e6c3d823de..6a55217ff4d8f52ecb7087d474a83662a49accb0 100644 (file)
@@ -13,9 +13,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Unknown gender
-GENDER_MALE=Herr
-GENDER_FEMALE=Frau
+PERSONAL_TITLE_MALE=Herr
+PERSONAL_TITLE_FEMALE=Frau
 CHOICE_YES=Ja
 CHOICE_NO=Nein
 PAGE_TITLE_INDEX_WELCOME=Willkommen!
@@ -59,7 +58,7 @@ PRIVACY_TERMS_LEGEND=Rechtliches:
 PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE=Bitte den Datenschutzbestimmungen zustimmen.
 TERMS_NOT_ACCEPTED_MESSAGE=Bitte den AGBs zustimmen.
 PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Name, Anschrift und Telefonnummer an.
-PERSONAL_DATA_GENDER=Anrede:
+PERSONAL_DATA_PERSONAL_TITLE=Anrede:
 PERSONAL_DATA_FIRST_NAME=Vorname:
 PERSONAL_DATA_FAMILY_NAME=Nachname:
 PERSONAL_DATA_STREET=Stra\u00dfe:
@@ -244,7 +243,7 @@ ADMIN_ADD_USER_TITLE=Neues Benutzeraccount anlegen
 ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Anrede, Vor- und Nachnamen, sowie Benutzernamen und Email-Adresse ein.
 ADMIN_CONTACT_PERSONAL_DATA_LEGEND=Pers\u00f6nliche Daten des Benutzers:
 ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE=Geben Sie hier die pers\u00f6nlichen Daten des neuen Benutzers ein.
-ADMIN_PERSONAL_DATA_GENDER=Anrede ausw\u00e4hlen:
+ADMIN_PERSONAL_DATA_PERSONAL_TITLE=Anrede ausw\u00e4hlen:
 ADMIN_PERSONAL_DATA_FIRST_NAME=Vorname:
 ADMIN_PERSONAL_DATA_FAMILY_NAME=Familienname:
 ADMIN_PERSONAL_DATA_STREET=Strassenname:
@@ -323,7 +322,7 @@ ADMIN_USER_DATA_ENTER_PASSWORD=Passwort eingeben:
 ADMIN_USER_DATA_ENTER_PASSWORD_REPEAT=Passwort wiederholen:
 ADMIN_LIST_USER_ID=Benutzer-Id:
 ADMIN_LIST_USER_NAME=Benutzername:
-ADMIN_LIST_USER_GENDER=Anrede:
+ADMIN_LIST_USER_PERSONAL_TITLE=Anrede:
 ADMIN_LIST_USER_FIRST_NAME=Vorname:
 ADMIN_LIST_USER_FAMILY_NAME=Nachname:
 ADMIN_LIST_USER_ACCOUNT_STATUS=Account-Status:
@@ -353,8 +352,8 @@ ADMIN_USER_LAST_LOCKED_REASON=Letzter Sperrgrund:
 ADMIN_USER_CONTACT_CREATED=Wann Kontaktdaten erstellt:
 ADMIN_USER_CONTACT_UPDATED=Wann Kontaktdaten ge\u00e4ndert:
 ADMIN_CONTACT_IS_OWN_CONTACT=Eigenes Account:
-ADMIN_CONTACT_GENDER=Anrede:
-ADMIN_CONTACT_TITLE=Titel:
+ADMIN_CONTACT_PERSONAL_TITLE=Anrede:
+ADMIN_CONTACT_ACADEMIC_TITLE=Titel:
 ADMIN_CONTACT_FIRST_NAME=Vorname:
 ADMIN_CONTACT_FAMILY_NAME=Nachname:
 ADMIN_CONTACT_STREET=Strasse:
@@ -501,8 +500,8 @@ PERSONAL_DATA_BIRTHDAY=Geburtsdatum (tt.mm.jjjj):
 BIRTHDAY_PATTERN=dd.MM.yyyy
 INVALID_BIRTHDAY=Ung\u00fcltiges Geburtsdatum eingegeben.
 ADMIN_EXPORT_CONTACT_ID=Kontaktdaten-Id
-ADMIN_EXPORT_CONTACT_GENDER=Anrede
-ADMIN_EXPORT_CONTACT_TITLE=Titel
+ADMIN_EXPORT_CONTACT_PERSONAL_TITLE=Anrede
+ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE=Titel
 ADMIN_EXPORT_CONTACT_FIRST_NAME=Vorname
 ADMIN_EXPORT_CONTACT_FAMILY_NAME=Nachname
 ADMIN_EXPORT_CONTACT_STREET=Stra\u00dfe
@@ -523,7 +522,7 @@ GUEST_CONTACT_DATA_HOUSE_NUMBER_REQUIRED=Bitte geben Sie die Hausnummer ohne Zus
 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.
+FIELD_PERSONAL_TITLE_REQUIRED=Bitte w\u00e4hlen Sie eine Anrede aus.
 ADMIN_PERSONAL_DATA_TITLE=Titel:
 LINK_ADMIN_EXPORT_USER=Benutzerdaten exportieren
 LINK_ADMIN_EXPORT_USER_TITLE=Exportiert alle Benutzerdaten (und Kontaktdaten).
index 4c1a619329f7a4e5afb13131df366afd7cc59565..6dc33ce058577df54081356432e4a4bc3e094f29 100644 (file)
@@ -13,9 +13,8 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Unknown gender
-GENDER_MALE=Mr.
-GENDER_FEMALE=Mrs.
+PERSONAL_TITLE_MALE=Mr.
+PERSONAL_TITLE_FEMALE=Mrs.
 CHOICE_YES=Yes
 CHOICE_NO=No
 PAGE_TITLE_INDEX_WELCOME=Welcome!
@@ -59,7 +58,7 @@ PRIVACY_TERMS_LEGEND=Terms & privacy policy:
 PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE=Please accept our privacy policy.
 TERMS_NOT_ACCEPTED_MESSAGE=Please accept Terms&Conditions.
 PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least your name, address and phone number.
-PERSONAL_DATA_GENDER=Salutation:
+PERSONAL_DATA_PERSONAL_TITLE=Salutation:
 PERSONAL_DATA_FIRST_NAME=First name:
 PERSONAL_DATA_FAMILY_NAME=Family name:
 PERSONAL_DATA_STREET=Street:
@@ -223,10 +222,10 @@ PAGE_TITLE_ADMIN_ADD_USER=Add new user account
 CONTENT_TITLE_ADMIN_ADD_USER=Add new user account:
 TABLE_SUMMARY_ADMIN_LIST_USERS=Administration, list all users
 ADMIN_ADD_USER_TITLE=Create a new user account
-ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least gender, first name, family name, user name and email address.
+ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least title, first name, family name, user name and email address.
 ADMIN_CONTACT_PERSONAL_DATA_LEGEND=Personal data of the user:
 ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE=Here you can enter the personal data of the new user.
-ADMIN_PERSONAL_DATA_GENDER=Select gender:
+ADMIN_PERSONAL_DATA_PERSONAL_TITLE=Select title:
 ADMIN_PERSONAL_DATA_FIRST_NAME=First name:
 ADMIN_PERSONAL_DATA_FAMILY_NAME=Family name:
 ADMIN_PERSONAL_DATA_STREET=Name of street:
@@ -305,7 +304,7 @@ ADMIN_USER_DATA_ENTER_PASSWORD=Enter password:
 ADMIN_USER_DATA_ENTER_PASSWORD_REPEAT=Repeat password:
 ADMIN_LIST_USER_ID=User id:
 ADMIN_LIST_USER_NAME=User name:
-ADMIN_LIST_USER_GENDER=Gender:
+ADMIN_LIST_USER_PERSONAL_TITLE=Gender:
 ADMIN_LIST_USER_FIRST_NAME=First name:
 ADMIN_LIST_USER_FAMILY_NAME=Family name:
 ADMIN_LIST_USER_ACCOUNT_STATUS=Account status:
@@ -332,8 +331,8 @@ ADMIN_USER_LAST_LOCKED_REASON=Last lock reason:
 ADMIN_USER_CONTACT_CREATED=When contact data created:
 ADMIN_USER_CONTACT_UPDATED=When contact data updated:
 ADMIN_CONTACT_IS_OWN_CONTACT=Own account:
-ADMIN_CONTACT_GENDER=Gender:
-ADMIN_CONTACT_TITLE=Title:
+ADMIN_CONTACT_PERSONAL_TITLE=Gender:
+ADMIN_CONTACT_ACADEMIC_TITLE=Title:
 ADMIN_CONTACT_FIRST_NAME=First name:
 ADMIN_CONTACT_FAMILY_NAME=Family name:
 ADMIN_CONTACT_STREET=Street:
@@ -422,7 +421,7 @@ CONTENT_TITLE_ADMIN_DELETE_CONTACT=Delete contact data:
 ADMIN_DELETE_CONTACT_TITLE=Delete contact data unreverseable
 BUTTON_ADMIN_DELETE_CONTACT=Delete contact data
 ADMIN_DELETE_CONTACT_NOTICE=You want to delete contact data. This data could be still linked with other data which could lead to errors. Please delete only, if you are sure that no foreign data links to this record.
-ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least gender, first name and family name.
+ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least title, first name and family name.
 LINK_ADMIN_LIST_CONTACT=List contact data
 LINK_ADMIN_LIST_CONTACT_TITLE=Lists all contact data regardless where they was created.
 CONTACT_IS_USER=Is a user
@@ -494,8 +493,8 @@ PERSONAL_DATA_BIRTHDAY=Birthday (mm-dd-yyyy):
 BIRTHDAY_PATTERN=MM-dd-yyyy
 INVALID_BIRTHDAY=Wrong birthday entered.
 ADMIN_EXPORT_CONTACT_ID=Contact data id
-ADMIN_EXPORT_CONTACT_GENDER=Gender
-ADMIN_EXPORT_CONTACT_TITLE=Title
+ADMIN_EXPORT_CONTACT_PERSONAL_TITLE=Gender
+ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE=Title
 ADMIN_EXPORT_CONTACT_FIRST_NAME=First name
 ADMIN_EXPORT_CONTACT_FAMILY_NAME=Family name
 ADMIN_EXPORT_CONTACT_STREET=Street
@@ -516,7 +515,7 @@ GUEST_CONTACT_DATA_HOUSE_NUMBER_REQUIRED=Please enter your house number without
 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.
+FIELD_PERSONAL_TITLE_REQUIRED=Please select a salutation.
 ADMIN_PERSONAL_DATA_TITLE=Title:
 LINK_ADMIN_EXPORT_USER=Export user data
 LINK_ADMIN_EXPORT_USER_TITLE=Exports all user and contact data.
diff --git a/web/WEB-INF/templates/admin/contact/admin_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_contact_data.tpl
deleted file mode 100644 (file)
index 0cf4cfd..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition
-       xmlns="http://www.w3.org/1999/xhtml"
-       xmlns:f="http://java.sun.com/jsf/core"
-       xmlns:h="http://java.sun.com/jsf/html"
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
-
-       <h:panelGrid id="show_contact" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_CONTACT}" headerClass="table_header_column" styleClass="table_big" columns="3" rendered="#{not empty beanHelper.contact}">
-               <f:facet name="header">
-                       <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_CONTACT}">
-                               <f:param value="#{beanHelper.contact.contactId}" />
-                       </h:outputFormat>
-               </f:facet>
-
-               <h:column>
-                       <h:outputLabel for="contactId" styleClass="data_label" value="#{msg.ADMIN_CONTACT_ID}" />
-
-                       <h:outputText id="contactId" styleClass="data_field" value="#{beanHelper.contact.contactId}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_CONTACT_CREATED}" />
-
-                       <h:outputText id="contactCreated" styleClass="data_field" value="#{beanHelper.contact.contactCreated.time}">
-                               <f:convertDateTime for="contactCreated" type="both" />
-                       </h:outputText>
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_CONTACT_UPDATED}" />
-
-                       <h:outputText id="contactUpdated" styleClass="data_field" value="#{beanHelper.contact.contactUpdated.time}">
-                               <f:convertDateTime for="contactUpdated" type="both" />
-                       </h:outputText>
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="isOwnContact" styleClass="data_label" value="#{msg.ADMIN_CONTACT_IS_OWN_CONTACT}" />
-
-                       <h:outputText id="isOwnContact" styleClass="data_field" value="#{beanHelper.contact.isOwnContact()}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactGender" styleClass="data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
-
-                       <h:outputText id="contactGender" styleClass="data_field" value="#{msg[beanHelper.contact.contactGender.messageKey]}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactTitle" styleClass="data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
-
-                       <h:outputText id="contactTitle" styleClass="data_field" value="#{beanHelper.contact.contactTitle}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactFirstName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
-
-                       <h:outputText id="contactFirstName" styleClass="data_field" value="#{beanHelper.contact.contactFirstName}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactFamilyName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
-
-                       <h:outputText id="contactFamilyName" styleClass="data_field" value="#{beanHelper.contact.contactFamilyName}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactStreet" styleClass="data_label" value="#{msg.ADMIN_CONTACT_STREET}" />
-
-                       <h:outputText id="contactStreet" styleClass="data_field" value="#{beanHelper.contact.contactStreet}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactHouseNumber" styleClass="data_label" value="#{msg.ADMIN_CONTACT_HOUSE_NUMBER}" />
-
-                       <h:outputText id="contactHouseNumber" styleClass="data_field" value="#{beanHelper.contact.contactHouseNumber}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactHouseNumberExtension" styleClass="data_label" value="#{msg.ADMIN_CONTACT_HOUSE_NUMBER_EXTENSION}" />
-
-                       <h:outputText id="contactHouseNumberExtension" styleClass="data_field" value="#{beanHelper.contact.contactHouseNumberExtension}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactZipCode" styleClass="data_label" value="#{msg.ADMIN_CONTACT_ZIP_CODE}" />
-
-                       <h:outputText id="contactZipCode" styleClass="data_field" value="#{beanHelper.contact.contactZipCode}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactCity" styleClass="data_label" value="#{msg.ADMIN_CONTACT_CITY}" />
-
-                       <h:outputText id="contactCity" styleClass="data_field" value="#{beanHelper.contact.contactCity}" />
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactEmailAddress" styleClass="data_label" value="#{msg.ADMIN_CONTACT_EMAIL_ADDRESS}" />
-
-                       <h:outputLink id="contactEmailAddress" styleClass="data_field" value="mailto:#{beanHelper.contact.contactEmailAddress}">
-                               <h:outputText value="#{beanHelper.contact.contactEmailAddress}" />
-                       </h:outputLink>
-               </h:column>
-
-               <h:column>
-                       <h:outputLabel for="contactBirthday" styleClass="data_label" value="#{msg.ADMIN_CONTACT_BIRTHDAY}" />
-
-                       <h:outputText id="contactBirthday" styleClass="data_field" value="#{beanHelper.contact.contactBirthday.time}">
-                               <f:convertDateTime for="contactBirthday" type="date" />
-                       </h:outputText>
-               </h:column>
-       </h:panelGrid>
-</ui:composition>
index 762032166ea8aa108e25a5674317f06b4fcd8d97..1bfcb98a8e16443f35517e6e193bea413e30a88a 100644 (file)
        </h:column>
 
        <h:column>
-               <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+               <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-               <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactGender.messageKey]}" />
+               <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactPersonalTitle.messageKey]}" />
        </h:column>
 
        <h:column>
-               <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
+               <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
 
                <h:outputText id="contactTitle" styleClass="table_data_field" value="#{beanHelper.contact.contactTitle}" />
        </h:column>
index 1d9960430646de7639077be2672e9cd8cb97d091..61e914a9f3aae0e549344847c5f5c3a1359eb48c 100644 (file)
@@ -8,13 +8,13 @@
 
 
        <h:column>
-               <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+               <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-               <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactGender.messageKey]}" />
+               <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactPersonalTitle.messageKey]}" />
        </h:column>
 
        <h:column>
-               <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
+               <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
 
                <h:outputText id="contactTitle" styleClass="table_data_field" value="#{beanHelper.contact.contactTitle}" />
        </h:column>
index 2ac7b2c55e32e0b2f9851e7a80ee78fde1f0853f..e4d35cb921fb88f716e9199df8c0d8ef981f77e8 100644 (file)
@@ -13,9 +13,9 @@
                </f:facet>
 
                <h:column>
-                       <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+                       <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-                       <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactGender.messageKey]}" />
+                       <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[beanHelper.contact.contactPersonalTitle.messageKey]}" />
                </h:column>
 
                <h:column>
index 77695f023d9d0ef4e7921078816940c3f7f49f17..b8d0765ac0867738745cd61562177dbdc68c4158 100644 (file)
 
                        <div class="table_row">
                                <div class="table_left_medium">
-                                       <h:outputLabel for="gender" value="#{msg.ADMIN_PERSONAL_DATA_GENDER}" />
+                                       <h:outputLabel for="personalTitle" value="#{msg.ADMIN_PERSONAL_DATA_PERSONAL_TITLE}" />
                                </div>
 
                                <div class="table_right_medium">
-                                       <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
+                                       <ui:include src="/WEB-INF/templates/generic/personal_title_selection_box.tpl">
                                                <ui:param name="targetController" value="#{adminContactController}" />
                                        </ui:include>
                                </div>
@@ -26,7 +26,7 @@
                        </div>
 
                        <h:panelGroup styleClass="error_container" layout="block">
-                               <h:message for="gender" errorClass="errors" fatalClass="errors" warnClass="errors" />
+                               <h:message for="personalTitle" errorClass="errors" fatalClass="errors" warnClass="errors" />
                        </h:panelGroup>
 
                        <div class="table_row">
@@ -51,7 +51,7 @@
                                </div>
 
                                <div class="table_right_medium">
-                                       <h:inputText styleClass="input" id="title" size="5" maxlength="255" value="#{adminContactController.title}" />
+                                       <h:inputText styleClass="input" id="title" size="5" maxlength="255" value="#{adminContactController.academicTitle}" />
                                </div>
 
                                <div class="clear"></div>
index 822148caec2b841ba071fc156b81e54432bdddbb..259e39935a9c6b9300749ada702ad7b30771160b 100644 (file)
 
                        <div class="table_row">
                                <div class="table_left_medium">
-                                       <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
+                                       <h:outputLabel for="personalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
                                </div>
 
                                <div class="table_right_medium">
-                                       <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
+                                       <ui:include src="/WEB-INF/templates/generic/personal_title_selection_box.tpl">
                                                <ui:param  name="targetController" value="#{contactController}" />
                                        </ui:include>
                                </div>
@@ -31,7 +31,7 @@
                                <div class="clear"></div>
 
                                <h:panelGroup styleClass="error_container" layout="block">
-                                       <h:message for="gender" errorClass="errors" fatalClass="errors" warnClass="errors" />
+                                       <h:message for="personalTitle" errorClass="errors" fatalClass="errors" warnClass="errors" />
                                </h:panelGroup>
                        </div>
 
diff --git a/web/WEB-INF/templates/generic/gender_selection_box.tpl b/web/WEB-INF/templates/generic/gender_selection_box.tpl
deleted file mode 100644 (file)
index 849dea0..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition
-       xmlns="http://www.w3.org/1999/xhtml"
-       xmlns:f="http://java.sun.com/jsf/core"
-       xmlns:h="http://java.sun.com/jsf/html"
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
-
-       <ui:fragment rendered="#{empty targetController}">
-               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
-                       <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
-                       <ui:param name="styleClass" value="errors" />
-               </ui:include>
-       </ui:fragment>
-
-       <ui:fragment rendered="#{not empty targetController}">
-               <h:selectOneMenu styleClass="select" id="gender" value="#{targetController.gender}" required="#{featureController.isFeatureEnabled(targetController.controllerType.concat('_gender'))}" requiredMessage="#{msg.FIELD_GENDER_REQUIRED}">
-                       <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
-                       <f:selectItems value="#{genderController.selectableGenders}" var="gender" itemValue="#{gender}" itemLabel="#{msg[gender.messageKey]}" />
-               </h:selectOneMenu>
-       </ui:fragment>
-</ui:composition>
diff --git a/web/WEB-INF/templates/generic/personal_title_selection_box.tpl b/web/WEB-INF/templates/generic/personal_title_selection_box.tpl
new file mode 100644 (file)
index 0000000..7cd411b
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+
+       <ui:fragment rendered="#{empty targetController}">
+               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                       <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
+                       <ui:param name="styleClass" value="errors" />
+               </ui:include>
+       </ui:fragment>
+
+       <ui:fragment rendered="#{not empty targetController}">
+               <h:selectOneMenu styleClass="select" id="personalTitle" value="#{targetController.personalTitle}" required="#{featureController.isFeatureEnabled(targetController.controllerType.concat('_personal_title'))}" requiredMessage="#{msg.FIELD_PERSONAL_TITLE_REQUIRED}">
+                       <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
+                       <f:selectItems value="#{genderController.selectableGenders}" var="personalTitle" itemValue="#{personalTitle}" itemLabel="#{msg[personalTitle.messageKey]}" />
+               </h:selectOneMenu>
+       </ui:fragment>
+</ui:composition>
index 4ab43f2456a13a6fe5f9ecfeb8540c29e86c278e..6a0d39f652d4fa9e27fa22d18d041794bb772298 100644 (file)
         <param-value>true</param-value>
     </context-param>
     <context-param>
-        <description>Wether the gender is required for using the general contact controller.</description>
-        <param-name>is_feature_general_gender_enabled</param-name>
+        <description>Wether the personal title is required for using the general contact controller.</description>
+        <param-name>is_feature_general_personal_title_enabled</param-name>
         <param-value>true</param-value>
     </context-param>
     <context-param>
-        <description>Whether gender is required for administrative contact controller.</description>
-        <param-name>is_feature_admin_gender_enabled</param-name>
+        <description>Whether personal title is required for administrative contact controller.</description>
+        <param-name>is_feature_admin_personal_title_enabled</param-name>
         <param-value>true</param-value>
     </context-param>
     <context-param>
index d9debf2fe23af581ef7b9f3f87adb5400d963f1e..f7528344c300db2b620a496dca30544b51a74372 100644 (file)
@@ -35,7 +35,7 @@
                        <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
                                <h:panelGroup styleClass="table" layout="block">
                                        <div class="table_header">
-                                               <h:outputFormat value="#{msg.ADMIN_DELETE_CONTACT_TITLE}">
+                                               <h:outputFormat value="#{msg.ADMIN_DELETE_CONTACT_ACADEMIC_TITLE}">
                                                        <f:param value="#{beanHelper.contact.contactId}" />
                                                </h:outputFormat>
                                        </div>
index 0f9c851b1ab71d8feee780d8dd93b39ad7aac825..ed56e153a6488c69b5e804add2b98079d7b96903 100644 (file)
@@ -35,7 +35,7 @@
                        <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
                                <h:panelGroup styleClass="table_medium" layout="block">
                                        <div class="table_header">
-                                               <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
+                                               <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_ACADEMIC_TITLE}">
                                                        <f:param value="#{beanHelper.contact.contactId}" />
                                                </h:outputFormat>
                                        </div>
index 7754d3d8962756ac994f6fb4fe936938479884ab..db0b88321acd42042f3b4e538b6b985b496e33c7 100644 (file)
 
                                        <p:column>
                                                <f:facet name="header">
-                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_GENDER}" />
+                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
                                                </f:facet>
 
-                                               <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
+                                               <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
                                        </p:column>
 
                                        <p:column>
                                                <f:facet name="header">
-                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_TITLE}" />
+                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
                                                </f:facet>
 
                                                <h:outputText value="#{contact.contactTitle}" />
index e508400748b7f73bf190e2fc578870ed1d69a7af..3521fde8b2aa3474f74501238808e0f2404b3eff 100644 (file)
 
                                <h:column>
                                        <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
+                                               <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
                                        </f:facet>
 
-                                       <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
+                                       <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
                                </h:column>
 
                                <h:column>
@@ -82,7 +82,7 @@
                        <h:form id="form_admin_add_contact">
                                <h:panelGroup styleClass="table_medium" layout="block">
                                        <div class="table_header">
-                                               <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
+                                               <h:outputText value="#{msg.ADMIN_ADD_CONTACT_ACADEMIC_TITLE}" />
                                        </div>
 
                                        <div class="para">
index 1c2773d39bd2cc33826c5ca119fb58d9adf8a68b..2c5f755f9a6352a4907abd254014041fcd5cc732 100644 (file)
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+                                       <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-                                       <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[contact.contactGender.messageKey]}" />
+                                       <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[contact.contactPersonalTitle.messageKey]}" />
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
+                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
 
                                        <h:outputText id="contactTitle" styleClass="table_data_field" value="#{contact.contactTitle}" />
                                </h:column>
index e14c2bc71976555dc1ea9ce15535f424250c2ff2..b36826bda1af08d017632754a14055967fec156b 100644 (file)
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+                                       <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-                                       <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[contact.contactGender.messageKey]}" />
+                                       <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[contact.contactPersonalTitle.messageKey]}" />
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
+                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
 
                                        <h:outputText id="contactTitle" styleClass="table_data_field" value="#{contact.contactTitle}" />
                                </h:column>
index 8332a7c1890b37857389e2fcc96e09f4dc650915..841bd93bed7c38c225199c68bdeca9abb2b141d8 100644 (file)
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactGender" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
+                                       <h:outputLabel for="contactPersonalTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
 
-                                       <h:outputText id="contactGender" styleClass="table_data_field" value="#{msg[contact.contactGender.messageKey]}" />
+                                       <h:outputText id="contactPersonalTitle" styleClass="table_data_field" value="#{msg[contact.contactPersonalTitle.messageKey]}" />
                                </h:column>
 
                                <h:column>
-                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
+                                       <h:outputLabel for="contactTitle" styleClass="table_data_label" value="#{msg.ADMIN_CONTACT_ACADEMIC_TITLE}" />
 
                                        <h:outputText id="contactTitle" styleClass="table_data_field" value="#{contact.contactTitle}" />
                                </h:column>
index 84858cab771ebede30511820b96e0a4985ff4445..862dcc1d07af5a89f6e9e4a1f9271e84f3df4e0e 100644 (file)
@@ -62,7 +62,7 @@
 
                                <h:column>
                                        <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_LIST_USER_GENDER}" />
+                                               <h:outputText value="#{msg.ADMIN_LIST_USER_PERSONAL_TITLE}" />
                                        </f:facet>
 
                                        <h:outputText value="#{msg[userActivity.activityContactGender.messageKey]}" />
index 49638be8c2d56d0aaa5915ed8e59073e77a41554..407caadadd478f95e6cef091083b2a731691142e 100644 (file)
 
                                        <p:column>
                                                <f:facet name="header">
-                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_GENDER}" />
+                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
                                                </f:facet>
 
-                                               <h:outputText value="#{msg[user.userContact.contactGender.messageKey]}" />
+                                               <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
                                        </p:column>
 
                                        <p:column>
                                                <f:facet name="header">
-                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_TITLE}" />
+                                                       <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
                                                </f:facet>
 
                                                <h:outputText value="#{user.userContact.contactTitle}" />
index 511a03ae4605f14f2c5c18341c9e793e3d838e8c..f22a1a5619b42d3106f44205ac5c60e271ab5e1b 100644 (file)
 
                                <h:column>
                                        <f:facet name="header">
-                                               <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
+                                               <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
                                        </f:facet>
 
-                                       <h:outputText value="#{msg[user.userContact.contactGender.messageKey]}" />
+                                       <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
                                </h:column>
 
                                <h:column>
                                                                <div class="table_right_medium">
                                                                        <h:selectOneMenu styleClass="select" id="userContact" value="#{beanHelper.contact}" converter="ContactConverter">
                                                                                <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
-                                                                               <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactGender.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
+                                                                               <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactPersonalTitle.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
                                                                        </h:selectOneMenu>
                                                                </div>
 
index 74860144bb996c9caa178a38f03b668f53593ec2..b39945f4f7a7376445c8e2d8d83300073ad6745a 100644 (file)
@@ -1,4 +1,3 @@
-
 <!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}"
 
                                        <div class="para">
                                                <div>
-                                                       <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
+                                                       <h:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
                                                </div>
 
                                                <div>
-                                                       <h:outputFormat id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
+                                                       <h:outputFormat id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
                                                </div>
                                        </div>
 
index d0cde138fc105d3d58d05ff711c296566f61826c..b7c91b4aeae55e48fddf230c898621d9cc05bfb9 100644 (file)
 
                                        <div class="para">
                                                <div class="table_data_label">
-                                                       <h:outputLabel for="contactGender" value="#{msg.PERSONAL_DATA_GENDER}" />
+                                                       <h:outputLabel for="contactPersonalTitle" value="#{msg.PERSONAL_DATA_PERSONAL_TITLE}" />
                                                </div>
 
                                                <div class="table_data_field">
-                                                       <h:outputText id="contactGender" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
+                                                       <h:outputText id="contactPersonalTitle" value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
                                                </div>
                                        </div>
 
index f394d378bc16880b919d9c58bd216f2b756426c4..40adbfdf71bb1432be9f5d57d75e764989ffedac 100644 (file)
@@ -32,7 +32,7 @@
 
                                        <div class="table_row">
                                                <h:outputFormat value="#{msg.GUEST_USER_CONFIRM_ACCOUNT_DONE}">
-                                                       <f:param value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
+                                                       <f:param value="#{msg[beanHelper.user.userContact.contactPersonalTitle.messageKey]}" />
                                                        <f:param value="#{beanHelper.user.userContact.contactFirstName}" />
                                                        <f:param value="#{beanHelper.user.userContact.contactFamilyName}" />
                                                </h:outputFormat>