<div class="Content">
    <div class="ContentLabel tal">
        {l('Edycja procesu')}: {$Proces->nazwa}
    </div>  
    <div class="ContentWrapper">

        <table class="table">
            <thead>
                <tr>
                    <td class="bold">Kryterium</td>
                    {foreach from=$Headers key=key item=HeaderName}
                    <td>{$HeaderName} <a href="javascript:;" onclick="$.getJSON('ajax.php?mode=proces&function=removealt&id={$key}',function(){ window.location.reload() })" class="SetTooltip" title="Usuń alternatywę"><i class="fa fa-trash"></i></a></td>
                    {/foreach}
                    <td class="bold">Waga</td>
                </tr>
            </thead>
            {foreach from=$Wartosci key=RowName item=Rows}
            <tr>
                {foreach from=$Rows item=item name=rows}
                {if $smarty.foreach.rows.first}
                <td class="tac" style="border:1px solid #C3C3C3 !important;background: #F6F6F6">{$RowName}<a href="javascript:;" onclick="$.getJSON('ajax.php?mode=proces&function=removekryterium&id={$item['kryterium_id']}',function(){ window.location.reload() })" class="SetTooltip" title="Usuń kryterium"><i class="fa fa-trash"></i></a></td>
                {/if}
                <td class="tac" style="border:1px solid #C3C3C3 !important">{$item['wartosc']} <a href="javascript:;" class="ProcesMoreOptions" data-url="ajax.php?mode=proces&function=editwartosc&id={$item['id']}"><i class="fa fa-edit"></i></a></td>
                {if $smarty.foreach.rows.last}
                <td class="tac" style="border:1px solid #C3C3C3 !important;background: #F6F6F6">{$item['waga']} <a href="javascript:;" class="ProcesMoreOptions" data-url="ajax.php?mode=proces&function=wagaedit&id={$item['id']}"><i class="fa fa-edit"></i></a></td>
                {/if}
                {/foreach}
            </tr>
            {/foreach}
        </table>
        <br /><br />
        <table class="table table-striped">
            <thead>
                <tr>
                    <td class="tac bold">RANKING</td>
                </tr>
            </thead>
            {foreach from=$Proces->ranking->Items item=$Alternatywa name=alternatywy}
            <tr>
                <td class="tac" style="padding: 20px !important">{$Alternatywa->nazwa}</td>
            </tr>
            {/foreach}
        </table>

    </div>
</div>