<div id="select-player">
<form method="post">
<div class="form-label"><label for="">Select a player to add</label></div>
<div class="form-field"><?php echo $game->playerSelect();?></div>
<div class="form-label"><label for="">Name</label> <em>(optional)</em></div>
<div class="for-field"><input type="text" name="player-name" id="player-name" value=""></div>
<div class="form-submit">
<input type="hidden" name="a" value="addplayer">
<input type="submit" name="submit" value="Add">
</div>
</form>
<?php
if( $game->playerCount > $game->minPlayers - 1 ){
?>
<form>
<div class="form-label">When all players have been added</div>
<div class="form-submit">
<input type="hidden" name="a" value="startgame">
<input type="submit" name="submit" value="Start Game">
</div>
</form>
<?php
}
?>
</div>
|