<form action="options.php" method="post">
	<?php
	settings_fields( EXPANDABLE_PAYWALL_SLUG . '_authentication' ); ?>
    <div id="basic_authentication">
        <h3><?php _e( 'User Roles', 'expandable-paywall' ); ?></h3>
        <p><?php _e( 'Please select your user roles below.', 'expandable-paywall' ); ?></p>

        <table class="form-table">

            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_non_paid'; ?>"><?php _e('User role for subscribers', 'expandable-paywall'); ?></label>
                </th>
                <td class="forminp">
                    <select id="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_non_paid'; ?>" name="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_non_paid'; ?>">
						<?php wp_dropdown_roles( \Emoxie\Expandable_Paywall\Helper::authentication_role_non_paid() ); ?>
                    </select>
                    <p class="description"><?php _e('This is the user role which successful authentications will be stored with.', 'expandable-paywall'); ?></p>
                </td>
            </tr>
			<?php if ( Emoxie\Expandable_Paywall\Helper::show_authentication_role_paid() ): ?>
                <tr valign="top">
                    <th scope="row" class="titledesc">
                        <label for="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_paid'; ?>"><?php _e('User role for paid subscribers', 'expandable-paywall'); ?></label>
                    </th>
                    <td class="forminp">
                        <select id="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_paid'; ?>" name="<?php echo EXPANDABLE_PAYWALL_SLUG . '_authentication_role_paid'; ?>">
							<?php wp_dropdown_roles( \Emoxie\Expandable_Paywall\Helper::authentication_role_paid() ); ?>
                        </select>
                        <p class="description"><?php _e('This is the user role which paid successful authentications will be stored with.', 'expandable-paywall'); ?></p>
                    </td>
                </tr>
			<?php endif; ?>
        </table>
		<?php submit_button( __('Save Authentication Options', 'expandable-paywall') ); ?>
    </div>
</form>