{statement::display()}
<div class="Content">
    <div class="ContentLabel tal">
        {l('Gra')}
    </div>  
    <div class="ContentWrapper">
    {if $KryteriaLista}
        <div class="fs24 p10 tac">
            Co wybierasz?
        </div>
        <form method="post" action="{core::$i->url}/index.php">
        <input type="hidden" name="mode" value="user" />
        <input type="hidden" name="function" value="game_result" />
        <input type="hidden" name="temat_id" value="{$temat_id}" />
        <input type="hidden" name="proces_id" value="{$proces_id}" />
         <div class="GameHandler">
            {foreach from=$Pairs item=$Pair key=key name=pary}
            <div class="ChooseElement{if !$smarty.foreach.pary.first} none{/if}">
                <div>
                    <div class="col-xs-6">
                        <div class="ElementPair">
                            <div class="ElementA">
                                {$KryteriaLista[$Pair['A']]}  
                                <input type="hidden" name="kryterium[{$Pair['A']}][]" value="0" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="ElementPair">
                            <div class="ElementB">
                               {$KryteriaLista[$Pair['B']]}  
                               <input type="hidden" name="kryterium[{$Pair['B']}][]" value="0" />        
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="RangeHandler">
                    <div class="col-md-6 col-md-offset-3 col-xs-12">

                        <input class="selectionrang" type="range" min="0" value="2" max="4" step="1" />
                        <div class="FixedScale">
                            <div class="col-xs-3"></div>
                            <div class="col-xs-3"></div>
                            <div class="col-xs-3"></div>
                            <div class="col-xs-3"></div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="p10 tac">
                        {if $smarty.foreach.pary.last}
                        <input type="submit" class="btn btn-primary" value="Zakończ" />
                        {else}
                        <a href="javascript:;" class="btn btn-primary NextGameElement">Dalej</a>
                        {/if}
                    </div>
                </div> 
            </div>
            {/foreach}
         </div> 
        </form>
        {else}
        <div class="p20">
            <div class="col-md-10 col-md-offset-1 col-xs-12">    
                <div class="p10 tac bold fs22">
                    Wybierz zestaw kryteriów
                </div>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <td>ID</td>
                            <td>Nazwa</td>
                            <td>Temat</td>

                            <td></td>
                        </tr>
                    </thead>
                    {foreach from=$Procesy->Items item=Proces}
                    <tr>
                        <td{if !$Proces->user} style="background: #F7FFF0 !important"{/if}>{$Proces->id}</td>
                        <td{if !$Proces->user} style="background: #F7FFF0 !important"{/if}>{$Proces->nazwa}</td>
                        <td{if !$Proces->user} style="background: #F7FFF0 !important"{/if}>{$Proces->tnazwa}</td>

                        <td{if !$Proces->user} style="background: #F7FFF0 !important"{/if} class="tar"><a href="{core::$i->url}/index.php?mode=user&function=game&id={$Proces->id}" class="btn btn-primary">Graj</a></td>
                    </tr>
                    {/foreach}
                </table>
            </div>
            <div class="clear"></div>
        </div>
        {/if}
    </div>
</div>
