<commit_before>{% extends "admin/include/include.twig" %}

{% block body %}


    <div class="container theme-showcase" role="main">
        <!-- Szary Panel -->
        <div class="jumbotron">
            <h2>Wyswietlanie produktów</h2> <!--do wladowania numer produktu -->
        </div>

        {% autoescape %}
            {{ validation|raw }}
        {% endautoescape %}

        <table class="table table-hover">
            <thead>
            <tr>
                <th>Numer:</th>
                <th>Nazwa:</th>
                <th>Dluga nazwa:</th>
                <th>Nr mat:</th>
                <th><th>
            </tr>
            </thead>
            <tbody>
            {% for indk in indk_mwym %}
            <tr>
                <td width=10%>{{ loop.index }}</td>
                <td width=40%>{{ indk.name_short }}</td>
                <td width=20%>{{ indk.name_long }}</td>
                <td width=20%>{{ indk.nr_mat}}</td>
                <td width=10%>
                    <a href="{{ base_url() }}admin/product/show/{{ indk.nr_mat }}"><button type="button" class="btn btn-default">Przejdź</button></a>

                {% if check_group(['admin','moderator']) %}
                    <a href="{{ base_url() }}admin/product/edit_product/{{ indk.nr_mat }}"><button type="button" class="btn btn-warning">Edytuj</button></a>
                {% endif %}
                <td> <!-- Przjscie do wyswietlenia produktu z danego numeru -->
            </tr>
            {% endfor %}
            </tbody>
        </table>

        <nav aria-label="Page navigation example">
        {{ links|raw }}
        </nav>
{#        <nav aria-label="Page navigation example">
        <ul class="pagination">
            <li class="page-item">{{ links|raw }}</li>
        </ul><commit_msg>porpawki<commit_after>{% extends "admin/include/include.twig" %}

{% block body %}


    <div class="container theme-showcase" role="main">
        <!-- Szary Panel -->
        <div class="jumbotron">
            <h2>Wyswietlanie produktów</h2> <!--do wladowania numer produktu -->
        </div>

        {% autoescape %}
            {{ validation|raw }}
        {% endautoescape %}

        <table class="table table-hover">
            <thead>
            <tr>
                <th>Numer:</th>
                <th>Nazwa:</th>
                <th>Dluga nazwa:</th>
                <th>Nr mat:</th>
                <th><th>
                <th><th>
            </tr>
            </thead>
            <tbody>
            {% for indk in indk_mwym %}
            <tr>
                <td width=10%>{{ loop.index }}</td>
                <td width=20%>{{ indk.name_short }}</td>
                <td width=40%>{{ indk.name_long }}</td>
                <td width=20%>{{ indk.nr_mat}}</td>
                <td width=10%>
                    <a href="{{ base_url() }}admin/product/show/{{ indk.nr_mat }}"><button type="button" class="btn btn-default">Przejdź</button></a>
                </td>
                <td>
                {% if check_group(['admin','moderator']) %}
                    <a href="{{ base_url() }}admin/product/edit_product/{{ indk.nr_mat }}"><button type="button" class="btn btn-warning">Edytuj</button></a>
                {% endif %}
                </td> <!-- Przjscie do wyswietlenia produktu z danego numeru -->
            </tr>
            {% endfor %}
            </tbody>
        </table>

        <nav aria-label="Page navigation example">
        {{ links|raw }}
        </nav>
{#        <nav aria-label="Page navigation example">
        <ul class="pagination">
            <li class="page-item">{{ links|raw }}</li>
        </ul>
{'fraction_non_alphanumeric': 0.17803341550260202, 'fraction_numerical': 0.00657354149548069, 'mean_word_length': 1.4860449285228046, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1556402', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1097, 'n_words': 222}