1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php SimpleWpMembership::enqueue_validation_scripts(); ?>
- <div class="wrap" id="swpm-profile-page" type="add">
- <form action="" method="post" name="swpm-create-user" id="swpm-create-user" class="validate swpm-validate-form"<?php do_action('user_new_form_tag'); ?>>
- <input name="action" type="hidden" value="createuser" />
- <?php wp_nonce_field('create_swpmuser_admin_end', '_wpnonce_create_swpmuser_admin_end') ?>
- <h3><?php echo SwpmUtils::_('Add Member') ?></h3>
- <p><?php echo SwpmUtils::_('Create a brand new user and add it to this site.'); ?></p>
- <table class="form-table">
- <tbody>
- <tr class="form-required swpm-admin-add-username">
- <th scope="row"><label for="user_name"><?php echo SwpmUtils::_('Username'); ?> <span class="description"><?php echo SwpmUtils::_('(required)'); ?></span></label></th>
- <td><input class="regular-text validate[required,custom[noapostrophe],custom[SWPMUserName],minSize[4],ajax[ajaxUserCall]]" name="user_name" type="text" id="user_name" value="<?php echo esc_attr(stripslashes($user_name)); ?>" aria-required="true" /></td>
- </tr>
- <tr class="form-required swpm-admin-add-email">
- <th scope="row"><label for="email"><?php echo SwpmUtils::_('E-mail'); ?> <span class="description"><?php echo SwpmUtils::_('(required)'); ?></span></label></th>
- <td><input name="email" autocomplete="off" class="regular-text validate[required,custom[email],ajax[ajaxEmailCall]]" type="text" id="email" value="<?php echo esc_attr($email); ?>" /></td>
- </tr>
- <tr class="form-required swpm-admin-add-password">
- <th scope="row"><label for="password"><?php echo SwpmUtils::_('Password'); ?> <span class="description"><?php _e('(twice, required)', 'simple-membership'); ?></span></label></th>
- <td><input class="regular-text" name="password" type="password" id="pass1" autocomplete="off" />
- <br />
- <input class="regular-text" name="password_re" type="password" id="pass2" autocomplete="off" />
- <br />
- <div id="pass-strength-result"><?php echo SwpmUtils::_('Strength indicator'); ?></div>
- <p class="description indicator-hint"><?php echo SwpmUtils::_('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p>
- </td>
- </tr>
- <tr class="swpm-admin-add-account-state">
- <th scope="row"><label for="account_state"><?php echo SwpmUtils::_('Account Status'); ?></label></th>
- <td><select class="regular-text" name="account_state" id="account_state">
- <?php echo SwpmUtils::account_state_dropdown('active'); ?>
- </select>
- </td>
- </tr>
- <?php include('admin_member_form_common_part.php'); ?>
- </tbody>
- </table>
- <?php include('admin_member_form_common_js.php'); ?>
- <?php submit_button(SwpmUtils::_('Add New Member '), 'primary', 'createswpmuser', true, array('id' => 'createswpmusersub')); ?>
- </form>
- </div>
|