diff --git a/dt-core/utilities/dt-components.php b/dt-core/utilities/dt-components.php index 307dc692f7..bb77fe4f2a 100644 --- a/dt-core/utilities/dt-components.php +++ b/dt-core/utilities/dt-components.php @@ -67,6 +67,7 @@ public static function shared_attributes( $field_key, $fields, $post, $params = $shared_attributes = ' id="' . esc_attr( $display_field_id ) . '" name="' . esc_attr( $field_key ) . '" + placeholder="' . esc_attr( $params['placeholder'] ?? '' ) . '" ' . $class . ' ' . $label_attr . ' ' . esc_html( $post_type ?? '' ) . ' diff --git a/dt-users/template-new-user.php b/dt-users/template-new-user.php index 55b673d06e..8fd0f7e484 100644 --- a/dt-users/template-new-user.php +++ b/dt-users/template-new-user.php @@ -111,15 +111,48 @@
-
-
-
-
+
+
+ [ + 'name' => __( 'Display Name', 'disciple_tools' ), + 'type' => 'text', + 'default' => '', + ] + ], [], [ 'placeholder' => 'Nickname (Display Name)' ] ) ?> +
+
+
+ [ + 'name' => __( 'Email', 'disciple_tools' ), + 'type' => 'text', + 'default' => '', + 'required' => true, + ] + ], [], [ 'placeholder' => 'Email' ] ) ?> +
@@ -175,23 +208,36 @@
-
-
+
+
+ [ + 'name' => __( 'First Name (optional)', 'disciple_tools' ), + 'type' => 'text', + 'default' => '', + ] + ], [], [ 'placeholder' => 'First Name' ] ) ?>
-
-
-
+
- + [ + 'name' => __( 'Last Name (optional)', 'disciple_tools' ), + 'type' => 'text', + 'default' => '', + ] + ], [], [ 'placeholder' => 'Last Name' ] ) ?> +
+
+
+ [ + 'name' => __( 'Gender (optional)', 'disciple_tools' ), + 'type' => 'key_select', + 'default' => $gender_fields['default'], + 'select_cannot_be_empty' => true, + ] + ], [ 'gender' => [ 'key' => 'male' ] ], [] ) ?>
-
-
+
+ [ + 'name' => $dt_field['label'], + 'type' => 'text', + 'default' => '', + ] + ], [], [ 'placeholder' => $dt_field['label'], 'data-optional' => true ] ) ?>
-