<div class="tg_settings_tabs_content">

  <form method="POST" action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ?>">
    <?php echo wp_nonce_field( 'tag-groups-rest-api', 'tag-groups-rest-api-nonce', true, false ) ?>
    <p>
      <input type="checkbox" id="group_public_api_access" name="group_public_api_access" autocomplete="off" value="1"<?php if ( $group_public_api_access ) : ?> checked<?php endif; ?>/>&nbsp;
      <label for="group_public_api_access"><?php _e( 'Enable Tag Groups Public API Access', 'tag-groups' ) ?></label>
      <span class="dashicons dashicons-editor-help chatty-mango-help-icon" title="<?php _e( 'Enable public access to tag groups endpoint /wp-json/tag-groups/v1/groups/.', 'tag-groups' ) ?>"></span>
    </p>

    <p>
      <input type="checkbox" id="terms_public_api_access" name="terms_public_api_access" autocomplete="off" value="1"<?php if ( $terms_public_api_access ) : ?> checked<?php endif; ?>/>&nbsp;
      <label for="terms_public_api_access"><?php _e( 'Enable Terms Public API Access', 'tag-groups' ) ?></label>
      <span class="dashicons dashicons-editor-help chatty-mango-help-icon" title="<?php _e( 'Enable public access to terms endpoint /wp-json/tag-groups/v1/terms/.', 'tag-groups' ) ?>"></span>
    </p>

    <p>&nbsp;</p>
    <input type="hidden" name="tg_action" value="rest_api">
    <input class="button-primary" type="submit" name="Save" value="<?php _e( 'Save Settings', 'tag-groups' ) ?>" id="submitbutton" />
  </form>
</div>
