Skip to content

Commit 8ea8e6d

Browse files
author
alexweissman
committed
SS and full-width icons
1 parent a828247 commit 8ea8e6d

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

forms/form_user.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
// box_id: the desired name of the div that will contain the form.
5050
// render_mode: modal or panel
5151
// user_id (optional): if specified, will load the relevant data for the user into the form. Form will then be in "update" mode.
52-
// show_dates (optional): if set to true, will show the registered and last signed in date fields (fields will be read-only)
53-
// show_passwords (optional): if set to true, will show the password creation fields
54-
// disabled (optional): if set to true, disable all fields
52+
5553

5654
// Set up Valitron validator
5755
$v = new Valitron\DefaultValidator($get);

register.php

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,65 +62,71 @@
6262
'user_name' => [
6363
'type' => 'text',
6464
'label' => 'Username',
65+
'icon' => 'fa fa-fw fa-edit',
6566
'validator' => [
6667
'minLength' => 1,
6768
'maxLength' => 25,
6869
'label' => 'Username'
6970
],
70-
'placeholder' => 'Please enter the user name'
71+
'placeholder' => 'User name'
7172
],
7273
'display_name' => [
7374
'type' => 'text',
7475
'label' => 'Display Name',
76+
'icon' => 'fa fa-fw fa-edit',
7577
'validator' => [
7678
'minLength' => 1,
7779
'maxLength' => 50,
7880
'label' => 'Display name'
7981
],
80-
'placeholder' => 'Please enter the display name'
82+
'placeholder' => 'Display name'
8183
],
8284
'email' => [
8385
'type' => 'text',
8486
'label' => 'Email',
85-
'icon' => 'fa fa-envelope',
87+
'icon' => 'fa fa-fw fa-envelope',
8688
'validator' => [
8789
'minLength' => 1,
8890
'maxLength' => 150,
8991
'email' => true,
9092
'label' => 'Email'
9193
],
92-
'placeholder' => 'Email goes here'
94+
'placeholder' => 'Email address'
9395
],
9496
'password' => [
9597
'type' => 'password',
9698
'label' => 'Password',
97-
'icon' => 'fa fa-key',
99+
'icon' => 'fa fa-fw fa-key',
98100
'validator' => [
99101
'minLength' => 8,
100102
'maxLength' => 50,
101103
'label' => 'Password',
102104
'passwordMatch' => 'passwordc'
103-
]
105+
],
106+
'placeholder' => '8-50 characters'
104107
],
105108
'passwordc' => [
106109
'type' => 'password',
107110
'label' => 'Confirm password',
108-
'icon' => 'fa fa-key',
111+
'icon' => 'fa fa-fw fa-key',
109112
'validator' => [
110113
'minLength' => 8,
111114
'maxLength' => 50,
112115
'label' => 'Password'
113-
]
116+
],
117+
'placeholder' => 'Re-enter your password'
118+
114119
],
115120
'captcha' => [
116121
'type' => 'text',
117122
'label' => 'Confirm Security Code',
118-
'icon' => 'fa fa-eye',
123+
'icon' => 'fa fa-fw fa-eye',
119124
'validator' => [
120125
'minLength' => 1,
121126
'maxLength' => 50,
122127
'label' => 'Security code'
123-
]
128+
],
129+
'placeholder' => "Enter the code below, human!"
124130
]
125131
];
126132

screenshots/0.1.7-users.png

303 KB
Loading

screenshots/users.png

-6.73 KB
Loading

0 commit comments

Comments
 (0)