<p>
    <label
        for="group_extras_display_name"><?php _e( 'Please specify the page name, where all fields will be displayed', 'boss' ); ?></label>
    <input type="text" value="<?php echo esc_attr( $nav_item_name ); ?>" name="group-extras-display-name">
</p>

<p>
    <label
        for="group_extras_display"><?php echo sprintf( __( 'Do you want to make <strong>"%s"</strong> page public? Everyone will see this page.', 'boss' ), $nav_item_name ); ?></label>
    <input type="radio" value="public" <?php echo checked( $bp->groups->current_group->args['extras']['display_page'], 'public', false ); ?>
           name="group-extras-display"> <?php _e( 'Show it', 'boss' ); ?><br/>
    <input type="radio" value="private" <?php echo checked( $bp->groups->current_group->args['extras']['display_page'], 'private', false ); ?>
           name="group-extras-display"> <?php _e( 'Hide it', 'boss' ); ?>
</p>

<p>
    <label
        for="group_extras_display_layout"><?php echo sprintf( __( 'Please choose the layout for <strong>"%s"</strong> page', 'boss' ), $nav_item_name ); ?></label>
    <input type="radio" value="plain" <?php echo checked( $bp->groups->current_group->args['extras']['display_page_layout'], 'plain', false ); ?>
           name="group-extras-display-layout"> <?php _e( 'Plain (field title and its data below)', 'boss' ); ?><br/>
    <input type="radio" value="profile" <?php echo checked( $bp->groups->current_group->args['extras']['display_page_layout'], 'profile', false ); ?>
           name="group-extras-display-layout"> <?php _e( 'Profile style (in a table)', 'boss' ); ?>
</p>

<hr/>

<p>
    <label
        for="group_extras_display_name"><?php _e( 'Please specify the page name, where all custom pages will be displayed', 'boss' ); ?></label>
    <input type="text" value="<?php echo esc_attr( $gpages_item_name ); ?>" name="group-gpages-display-name">
</p>

<p>
    <label
        for="group_extras_display"><?php echo sprintf( __( 'Do you want to make <strong>"%s"</strong> page public (extra group pages will be displayed there)?', 'boss' ), $gpages_item_name ); ?></label>
    <input type="radio" value="public" <?php echo checked( $bp->groups->current_group->args['extras']['display_gpages'], 'public', false ); ?>
           name="group-gpages-display"> <?php _e( 'Show it', 'boss' ); ?><br/>
    <input type="radio" value="private" <?php echo checked( $bp->groups->current_group->args['extras']['display_gpages'], 'private', false ); ?>
           name="group-gpages-display"> <?php _e( 'Hide it', 'boss' ); ?>
</p>

<?php do_action( 'bpge_template_extras_general_options' ); ?>

<hr/>

<label><?php _e( 'You can reorder here all navigation links in this group. The first item will become a landing page for this group. Save changes after reordering.<br /><br />Please do NOT make admin only pages on first place - that will cause problems.', 'boss' ); ?></label>

<?php bpge_the_sortable_nav(); ?>

<p>
    <label for="group_extras_home_name"><?php _e( 'Rename the Home group page - Activity (for example) is far better.', 'boss' ); ?></label>
    <input type="text" value="<?php echo esc_attr( bpge_get_home_name() ); ?>" name="group-extras-home-name">
</p>

<?php do_action( 'bpge_template_extras_general_before_submit' ); ?>

<div class="clear">&nbsp;</div>

<p>
    <input type="submit" name="save_general" id="save" value="<?php _e( 'Save Changes', 'boss' ); ?>">
</p>

<?php do_action( 'bpge_template_extras_general_after_submit' ); ?>
