From: Roland Häder Date: Sat, 26 Aug 2017 22:56:30 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a249c22b25b9de7125cdcd7436148c34468baaa;p=jfinancials-war.git Please cherry-pick: - converted template to custom JSF tag widgets:outputAdminContactDataFormFields and replaced all occurrences, 2 optional parameter "formMode" (ex. "mode" and "allowEmptyRequiredData" are accepted Signed-off-by: Roland Häder --- diff --git a/web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl new file mode 100644 index 00000000..964049c0 --- /dev/null +++ b/web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl @@ -0,0 +1,249 @@ + + + + +
+ + + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ + + +
+
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ + + +
+
+ + + + + + +
+ +
+ +
+ +
+
+ + + + + + +
+ +
+ +
+ + + + + +
+
+ + + + + + +
+ +
+ +
+ + + + + + + + + + + + + +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + +
+
+ + + + +
+ +
+ +
+ + + + +
+
+ + + + + + +
+ +
+ +
+ + + +
+
+ + + + + + +
+ +
+ +
+ +
+
+
+
+ + +
    +
  • + +
  • +
+
+
diff --git a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl index c28166e7..ce8b5e88 100644 --- a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl +++ b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl @@ -15,7 +15,7 @@
- + diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl deleted file mode 100644 index 59ac6584..00000000 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - - -
- - - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- - - -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- - - -
-
- - - - - - -
- -
- -
- -
-
- - - - - - -
- -
- -
- - - - - -
-
- - - - - - -
- -
- -
- - - - - - - - - - - - - -
-
- - -
- -
- -
- - - - - - - - - - - - - -
-
- - - - -
- -
- -
- - - - -
-
- - - - - - -
- -
- -
- - - -
-
- - - - - - -
- -
- -
- -
-
-
-
- - -
    -
  • - -
  • -
-
-
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 9628451e..53c67426 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 @@ -1,6 +1,7 @@ @@ -13,5 +14,5 @@
- + diff --git a/web/WEB-INF/widgets.jsf.taglib.xml b/web/WEB-INF/widgets.jsf.taglib.xml index aa4259be..e0d1ac34 100644 --- a/web/WEB-INF/widgets.jsf.taglib.xml +++ b/web/WEB-INF/widgets.jsf.taglib.xml @@ -128,4 +128,21 @@ along with this program. If not, see . org.mxchange.jcoreee.bean.faces.BaseFacesBean + + outputAdminContactDataFormFields + This tag renders a fieldset for administrative purposes of contact data. + resources/tags/admin/contact/admin_form_contact_data.tpl + + allowEmptyRequiredData + Whether allow the personal title to be left empty. This might be the case when you create a user and want to select a contact from a selection box. EL code resolving to a boolean may be allowed here. + false + java.lang.Boolean + + + formMode + Mode of the form, can be one of "add" or "edit", defaulting to "add". + false + java.lang.String + + diff --git a/web/admin/contact/admin_contact_edit.xhtml b/web/admin/contact/admin_contact_edit.xhtml index b1371aff..c762a9dd 100644 --- a/web/admin/contact/admin_contact_edit.xhtml +++ b/web/admin/contact/admin_contact_edit.xhtml @@ -36,9 +36,7 @@ - - - + - - - +