<?php get_header() ?>

<div class="content-header">
	
</div>

<div id="content">
	
	<div class="pagination-links" id="pag">
		<?php bp_group_pagination() ?>
	</div>
	
	<?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
		
		<h2><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a> &raquo; <?php _e( 'Send Invites', 'buddypress' ); ?></h2>
	
		<?php if ( bp_has_friends_to_invite() ) : ?>
			
			<form action="<?php bp_group_send_invite_form_action() ?>" method="post" id="send-invite-form">
				<?php bp_group_send_invite_form() ?>
				
				<div class="clear"></div>

				<p class="clear"><input type="submit" name="submit" id="submit" value="<?php _e( 'Send Invites', 'buddypress' ) ?>" /></p>
			</form>
		
		<?php else : ?>
		
			<div id="message" class="info">
				<p><?php _e( 'You either need to build up your friends list, or your friends have already been invited or are current members.', 'buddypress' ); ?></p>
			</div>
		
		<?php endif; ?>
		
	<?php endwhile; endif; ?>
	
</div>

<?php get_footer() ?>