From: Roland Häder Date: Sun, 8 Oct 2017 16:55:25 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c73f0e727a750f7c831203c795f504239de91f6e;p=jfinancials-war.git Please cherry-pick: - rewrote administrative user list to PrimeFaces with filters and multi-sortable and resizable columns - fixed header facet for mobile provider list - rewrote admin_form_user/contact_data.tpl to response p:panelGrid - converted div to h:panelGroup - added more "static" data like personal title, account status and profile mode - added missing i18n strings Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/business/employee/FinancialsEmployeeWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/employee/FinancialsEmployeeWebRequestBean.java index e3554ffa..98ae943b 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/employee/FinancialsEmployeeWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/employee/FinancialsEmployeeWebRequestBean.java @@ -105,6 +105,7 @@ public class FinancialsEmployeeWebRequestBean extends BaseFinancialsBean impleme // Add employee to cache and list this.employeeCache.put(event.getEmployee().getEmployeeId(), event.getEmployee()); + this.allEmployees.add(event.getEmployee()); } /** diff --git a/src/java/org/mxchange/jfinancials/beans/business/opening_time/FinancialsOpeningTimeWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/opening_time/FinancialsOpeningTimeWebRequestBean.java index 7ae1d1d6..093b59b4 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/opening_time/FinancialsOpeningTimeWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/opening_time/FinancialsOpeningTimeWebRequestBean.java @@ -17,6 +17,7 @@ package org.mxchange.jfinancials.beans.business.opening_time; import fish.payara.cdi.jsr107.impl.NamedCache; +import java.text.MessageFormat; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedList; @@ -25,8 +26,10 @@ import javax.annotation.PostConstruct; import javax.cache.Cache; import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; +import javax.enterprise.event.Observes; import javax.inject.Inject; import javax.inject.Named; +import org.mxchange.jcontactsbusiness.events.opening_time.added.ObservableOpeningTimeAddedEvent; import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime; import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTimeSessionBeanRemote; import org.mxchange.jfinancials.beans.BaseFinancialsBean; @@ -79,6 +82,32 @@ public class FinancialsOpeningTimeWebRequestBean extends BaseFinancialsBean impl this.allOpeningTimes = new LinkedList<>(); } + /** + * Observes events being thrown when a new opening time has been added + *

+ * @param event Event being fired + */ + public void afterOpeningTimeAddedEvent (@Observes final ObservableOpeningTimeAddedEvent event) { + // Validate parameter + if (null == event) { + // Throw NPE + throw new NullPointerException("event is null"); + } else if (event.getOpeningTime() == null) { + // Throw it again + throw new NullPointerException("event.openingTime is null"); + } else if (event.getOpeningTime().getOpeningId() == null) { + // Throw it again + throw new NullPointerException("event.openingTime.openingId is null"); + } else if (event.getOpeningTime().getOpeningId() < 1) { + // Throw it again + throw new NullPointerException(MessageFormat.format("event.openingTime.openingId={0} is invalid", event.getOpeningTime().getOpeningId())); + } + + // Add to cache and list + this.openingTimesCache.put(event.getOpeningTime().getOpeningId(), event.getOpeningTime()); + this.allOpeningTimes.add(event.getOpeningTime()); + } + @Override @SuppressWarnings ("ReturnOfCollectionOrArrayField") public List allOpeningTimes () { diff --git a/src/java/org/mxchange/jfinancials/beans/data/FinancialsDataWebApplicationBean.java b/src/java/org/mxchange/jfinancials/beans/data/FinancialsDataWebApplicationBean.java index 9a88edc5..3b1853a2 100644 --- a/src/java/org/mxchange/jfinancials/beans/data/FinancialsDataWebApplicationBean.java +++ b/src/java/org/mxchange/jfinancials/beans/data/FinancialsDataWebApplicationBean.java @@ -18,9 +18,12 @@ package org.mxchange.jfinancials.beans.data; import javax.enterprise.context.ApplicationScoped; import javax.inject.Named; +import org.mxchange.jcontacts.model.contact.title.PersonalTitle; import org.mxchange.jcontactsbusiness.model.opening_time.dayofweek.DayOfTheWeek; import org.mxchange.jfinancials.beans.BaseFinancialsBean; import org.mxchange.jproduct.model.payment.PaymentType; +import org.mxchange.jusercore.model.user.profilemodes.ProfileMode; +import org.mxchange.jusercore.model.user.status.UserAccountStatus; /** * An application-scoped data bean for any kind of static data @@ -61,4 +64,31 @@ public class FinancialsDataWebApplicationBean extends BaseFinancialsBean { public PaymentType[] getPaymentTypes () { return PaymentType.values(); } + + /** + * Returns a list of all personal titles + *

+ * @return A list of all personal titles + */ + public PersonalTitle[] getPersonalTitles () { + return PersonalTitle.values(); + } + + /** + * Returns a list of all profile modes

+ * @return A list of all profile modes + */ + public ProfileMode[] getProfileModes () { + return ProfileMode.values(); + } + + /** + * Returns a list of all user account statuses + *

+ * @return A list of all user account statuses + */ + public UserAccountStatus[] getUserAccountStatuses () { + return UserAccountStatus.values(); + } } diff --git a/src/java/org/mxchange/jfinancials/beans/user/FinancialsUserWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/user/FinancialsUserWebRequestBean.java index feac70e5..b8f29716 100644 --- a/src/java/org/mxchange/jfinancials/beans/user/FinancialsUserWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/user/FinancialsUserWebRequestBean.java @@ -18,6 +18,7 @@ package org.mxchange.jfinancials.beans.user; import fish.payara.cdi.jsr107.impl.NamedCache; import java.text.MessageFormat; +import java.util.Comparator; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -78,6 +79,11 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements */ private static final long serialVersionUID = 542_145_347_916L; + /** + * List of all users + */ + private final List allUsers; + /** * General contact controller */ @@ -90,6 +96,11 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements @Inject private FinancialsFeaturesWebApplicationController featureController; + /** + * List of filtered users + */ + private List filteredUsers; + /** * Locale instance */ @@ -159,6 +170,9 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements public FinancialsUserWebRequestBean () { // Call super constructor super(); + + // Init list + this.allUsers = new LinkedList<>(); } /** @@ -549,23 +563,7 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements @Override @SuppressWarnings ("ReturnOfCollectionOrArrayField") public List allUsers () { - // Init list - final List list = new LinkedList<>(); - - // Get iterator - final Iterator> iterator = this.userCache.iterator(); - - // Loop over all - while (iterator.hasNext()) { - // Get next entry - final Cache.Entry next = iterator.next(); - - // Add value to list - list.add(next.getValue()); - } - - // Return it - return list; + return this.allUsers; } /** @@ -708,6 +706,26 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements return "user_contact_data_saved"; //NOI18N } + /** + * Getter for filtered users list + *

+ * @return Filtered users list + */ + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List getFilteredUsers () { + return this.filteredUsers; + } + + /** + * Setter for filtered users list + *

+ * @param filteredUsers Filtered users list + */ + @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter") + public void setFilteredUsers (final List filteredUsers) { + this.filteredUsers = filteredUsers; + } + /** * Getter for user id *

@@ -822,6 +840,29 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements this.userNameCache.put(next.getUserId(), next.getUserName()); } } + + // Is cache filled and list is empty + if ((this.userCache.iterator().hasNext()) && (this.allUsers.isEmpty())) { + // Get iterator + final Iterator> iterator = this.userCache.iterator(); + + // Build up list + while (iterator.hasNext()) { + // GEt next element + final Cache.Entry next = iterator.next(); + + // Add to list + this.allUsers.add(next.getValue()); + } + + // Sort list + this.allUsers.sort(new Comparator() { + @Override + public int compare (final User o1, final User o2) { + return o1.getUserId() > o2.getUserId() ? 1 : o1.getUserId() < o2.getUserId() ? -1 : 0; + } + }); + } } @Override @@ -1119,6 +1160,7 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements // Remove it from lists this.userCache.remove(user.getUserId()); + this.allUsers.remove(user); // Remove name from list this.userNameCache.remove(user.getUserId()); @@ -1153,6 +1195,7 @@ public class FinancialsUserWebRequestBean extends BaseFinancialsBean implements // Add/update user this.userCache.put(user.getUserId(), user); + this.allUsers.add(user); } } diff --git a/src/java/org/mxchange/jfinancials/converter/contact/FinancialsContactConverter.java b/src/java/org/mxchange/jfinancials/converter/contact/FinancialsContactConverter.java index ccb500d5..259a24c8 100644 --- a/src/java/org/mxchange/jfinancials/converter/contact/FinancialsContactConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/contact/FinancialsContactConverter.java @@ -26,9 +26,9 @@ import javax.faces.validator.ValidatorException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.jcontacts.exceptions.ContactNotFoundException; import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jcontacts.model.contact.ContactSessionBeanRemote; -import org.mxchange.jcontacts.exceptions.ContactNotFoundException; /** * Converter for contact id <-> valid contact instance diff --git a/src/java/org/mxchange/jfinancials/converter/payment_type/FinancialsPaymentTypeConverter.java b/src/java/org/mxchange/jfinancials/converter/payment_type/FinancialsPaymentTypeConverter.java new file mode 100644 index 00000000..1925c0ec --- /dev/null +++ b/src/java/org/mxchange/jfinancials/converter/payment_type/FinancialsPaymentTypeConverter.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jfinancials.converter.payment_type; + +import javax.faces.convert.EnumConverter; +import javax.faces.convert.FacesConverter; +import org.mxchange.jproduct.model.payment.PaymentType; + +/** + * A converter for payment types + *

+ * @author Roland Häder + */ +@FacesConverter("PaymentTypeConverter") +public class FinancialsPaymentTypeConverter extends EnumConverter { + + /** + * Default constructor which calls the super constructor with the proper + * enumeration as class type. + */ + public FinancialsPaymentTypeConverter () { + super(PaymentType.class); + } + +} diff --git a/src/java/org/mxchange/jfinancials/converter/paymenttype/FinancialsPaymentTypeConverter.java b/src/java/org/mxchange/jfinancials/converter/paymenttype/FinancialsPaymentTypeConverter.java deleted file mode 100644 index e69b97b5..00000000 --- a/src/java/org/mxchange/jfinancials/converter/paymenttype/FinancialsPaymentTypeConverter.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ -package org.mxchange.jfinancials.converter.paymenttype; - -import javax.faces.convert.EnumConverter; -import javax.faces.convert.FacesConverter; -import org.mxchange.jproduct.model.payment.PaymentType; - -/** - * A converter for payment types - *

- * @author Roland Häder - */ -@FacesConverter("PaymentTypeConverter") -public class FinancialsPaymentTypeConverter extends EnumConverter { - - /** - * Default constructor which calls the super constructor with the proper - * enumeration as class type. - */ - public FinancialsPaymentTypeConverter () { - super(PaymentType.class); - } - -} diff --git a/src/java/org/mxchange/jfinancials/converter/personal_title/FinancialsPersonalTitleConverter.java b/src/java/org/mxchange/jfinancials/converter/personal_title/FinancialsPersonalTitleConverter.java new file mode 100644 index 00000000..7e0da8a9 --- /dev/null +++ b/src/java/org/mxchange/jfinancials/converter/personal_title/FinancialsPersonalTitleConverter.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jfinancials.converter.personal_title; + +import javax.faces.convert.EnumConverter; +import javax.faces.convert.FacesConverter; +import org.mxchange.jcontacts.model.contact.title.PersonalTitle; + +/** + * A converter for personal titles + *

+ * @author Roland Häder + */ +@FacesConverter("PersonalTitleConverter") +public class FinancialsPersonalTitleConverter extends EnumConverter { + + /** + * Default constructor which calls the super constructor with the proper + * enumeration as class type. + */ + public FinancialsPersonalTitleConverter () { + super(PersonalTitle.class); + } + +} diff --git a/src/java/org/mxchange/jfinancials/converter/profile_mode/FinancialsProfileModeConverter.java b/src/java/org/mxchange/jfinancials/converter/profile_mode/FinancialsProfileModeConverter.java new file mode 100644 index 00000000..fe8d8021 --- /dev/null +++ b/src/java/org/mxchange/jfinancials/converter/profile_mode/FinancialsProfileModeConverter.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jfinancials.converter.profile_mode; + +import javax.faces.convert.EnumConverter; +import javax.faces.convert.FacesConverter; +import org.mxchange.jusercore.model.user.profilemodes.ProfileMode; + +/** + * A converter for profile mode + *

+ * @author Roland Häder + */ +@FacesConverter("ProfileModeConverter") +public class FinancialsProfileModeConverter extends EnumConverter { + + /** + * Default constructor which calls the super constructor with the proper + * enumeration as class type. + */ + public FinancialsProfileModeConverter () { + super(ProfileMode.class); + } + +} diff --git a/src/java/org/mxchange/jfinancials/converter/user_account_status/FinancialsUserAccountStatusConverter.java b/src/java/org/mxchange/jfinancials/converter/user_account_status/FinancialsUserAccountStatusConverter.java new file mode 100644 index 00000000..0f457029 --- /dev/null +++ b/src/java/org/mxchange/jfinancials/converter/user_account_status/FinancialsUserAccountStatusConverter.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.jfinancials.converter.user_account_status; + +import javax.faces.convert.EnumConverter; +import javax.faces.convert.FacesConverter; +import org.mxchange.jusercore.model.user.status.UserAccountStatus; + +/** + * A converter for user account status + *

+ * @author Roland Häder + */ +@FacesConverter("UserAccountStatusConverter") +public class FinancialsUserAccountStatusConverter extends EnumConverter { + + /** + * Default constructor which calls the super constructor with the proper + * enumeration as class type. + */ + public FinancialsUserAccountStatusConverter () { + super(UserAccountStatus.class); + } + +} diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 5fe084f0..eeec7603 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -1073,3 +1073,6 @@ BUTTON_ADMIN_ADD_OPENING_TIME=Oeffnungszeit hinzufuegen ADMIN_LINK_ASSIGN_DEPARTMENT_BRANCH_OFFICE_TITLE=Dieser Abteilung eine Filiale zuweisen. ADMIN_LINK_ASSIGN_DEPARTMENTS_LEAD_EMPLOYEE_TITLE=Dieser Abteilung einen leitenden Mitarbeiter zuweisen. ADMIN_LINK_ASSIGN_DEPARTMENTS_OWNER_USER_TITLE=Dieser Abteilung einen besitzenden Benutzer zuweisen. +#@TODO Please fix German umlauts! +FIELD_PAYMENT_TYPE_REQUIRED=Bitte waehlen Sie eine Zahlungsmethode aus. +ADMIN_LIST_USERS_HEADER=Liste aller Benutzer diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 901101ff..ce3f66a4 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -994,3 +994,5 @@ BUTTON_ADMIN_ADD_OPENING_TIME=Add opening time ADMIN_LINK_ASSIGN_DEPARTMENT_BRANCH_OFFICE_TITLE=Assign this department a branch office. ADMIN_LINK_ASSIGN_DEPARTMENTS_LEAD_EMPLOYEE_TITLE=Assign this department a leading employee. ADMIN_LINK_ASSIGN_DEPARTMENTS_OWNER_USER_TITLE=Assign this department an owning user. +FIELD_PAYMENT_TYPE_REQUIRED=Please choose a payment method. +ADMIN_LIST_USERS_HEADER=List of all users diff --git a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl index 5b9bfee2..d0cce9ad 100644 --- a/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/resources/tags/admin/form_data/contact/admin_form_contact_data.tpl @@ -7,78 +7,73 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"> - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
    -
  • - -
  • -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  • + +
  • +
+
diff --git a/web/WEB-INF/resources/tags/admin/form_data/user/admin_form_user_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/user/admin_form_user_data.tpl index de66672f..acbb6f35 100644 --- a/web/WEB-INF/resources/tags/admin/form_data/user/admin_form_user_data.tpl +++ b/web/WEB-INF/resources/tags/admin/form_data/user/admin_form_user_data.tpl @@ -7,74 +7,35 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"> - -
- - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - -
    -
  • - -
  • - - -
  • -
-
-
-
+ + + + + + + + + + + + + + + + + + + +
    +
  • + +
  • + + +
  • +
+
+
diff --git a/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl b/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl index 724f72ac..549c2121 100644 --- a/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl @@ -8,9 +8,9 @@ -
+ -
+ diff --git a/web/WEB-INF/templates/admin/user/admin_show_user_data.tpl b/web/WEB-INF/templates/admin/user/admin_show_user_data.tpl index 2cd43c84..74c460bf 100644 --- a/web/WEB-INF/templates/admin/user/admin_show_user_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_show_user_data.tpl @@ -7,7 +7,10 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"> - + + diff --git a/web/WEB-INF/templates/admin/user/admin_show_user_data_mini.tpl b/web/WEB-INF/templates/admin/user/admin_show_user_data_mini.tpl index d0564cfb..cc165a42 100644 --- a/web/WEB-INF/templates/admin/user/admin_show_user_data_mini.tpl +++ b/web/WEB-INF/templates/admin/user/admin_show_user_data_mini.tpl @@ -7,7 +7,10 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui"> - + + @@ -15,7 +18,7 @@ - + @@ -23,29 +26,29 @@ - + - + - + - + - + - + - + diff --git a/web/admin/mobile_provider/admin_mobile_provider_list.xhtml b/web/admin/mobile_provider/admin_mobile_provider_list.xhtml index 669e5c69..a7c0734e 100644 --- a/web/admin/mobile_provider/admin_mobile_provider_list.xhtml +++ b/web/admin/mobile_provider/admin_mobile_provider_list.xhtml @@ -24,7 +24,6 @@ tableStyleClass="table table-full" paginator="true" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" - widgetVar="mobileProviderList" filteredValue="#{mobileProviderController.filteredMobileProviders}" rows="10" reflow="true" @@ -37,9 +36,12 @@ > - - - + + + + + + @@ -67,7 +69,12 @@ title="#{msg.FILTER_BY_MULTIPLE_COUNTRY_TITLE}" > - + diff --git a/web/admin/user/admin_user_list.xhtml b/web/admin/user/admin_user_list.xhtml index e482a110..586b7438 100644 --- a/web/admin/user/admin_user_list.xhtml +++ b/web/admin/user/admin_user_list.xhtml @@ -24,145 +24,176 @@ value="#{userController.allUsers()}" tableStyleClass="table table-full" paginator="true" + paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" + filteredValue="#{userController.filteredUsers}" rows="10" + reflow="true" + resizableColumns="true" + rowsPerPageTemplate="5,10,20,50,100" + sortMode="multiple" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_USERS}" emptyMessage="#{msg.ADMIN_EMPTY_LIST_USER}" widgetVar="userList" > - - - - + + + + + + + + + + - - - - - - - - - + + + - - - + + + + + + + - - - - - + - - - - - + - - - + + + + + + + - - - + + + + + + + - - - - - + - - - - - + - -
+ + -
+
- -
- - - - - -
- -
- -
- - - - -
-
-
-
- - + + + + + + + + + + + + + - + - - + + + + + + + +