| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<p class="howto"> |
| 7 |
<?php esc_html_e( 'Select users that are allowed access to Formidable. Without access to View Forms, users will be unable to see the Formidable menu.', 'formidable' ); ?> |
| 8 |
</p> |
| 9 |
|
| 10 |
<table class="form-table"> |
| 11 |
<?php |
| 12 |
foreach ( $frm_roles as $frm_role => $frm_role_description ) { |
| 13 |
$role_field_name = $frm_role . '[]'; |
| 14 |
?> |
| 15 |
<tr> |
| 16 |
<td class="frm_left_label"> |
| 17 |
<label id="for_<?php echo esc_attr( str_replace( '[]', '', $role_field_name ) ); ?>" for="<?php echo esc_attr( $role_field_name ); ?>"><?php echo esc_html( $frm_role_description ); ?></label> |
| 18 |
</td> |
| 19 |
<td><?php FrmAppHelper::wp_roles_dropdown( $role_field_name, $frm_settings->$frm_role, 'multiple' ); ?></td> |
| 20 |
</tr> |
| 21 |
<?php } ?> |
| 22 |
</table> |
| 23 |
|