config.index.html 1.06 KB
{% extends "layout-with-topbar.html" %}

{% block content %}

{% include "block.config.save.html" %}

<table class="table table-striped table-hover">
    
    {% for scope, items in configs %}
    <tr>
        <th colspan=3 id="config.{{ scope }}">{{ scope }}</th>
    </tr>
    
    {% for keyword, value in items %}
    <tr>
        <td id="config.{{ scope }}.{{ keyword }}">{{ keyword }}</td>
        
        <td>
        {% if isMask(scope, keyword) %}
            ********
        {% else %}
            {{ value }}
        {% endif %}
        </td>
        
        <td>
            [
            <a href="/config/edit/{{ scope }}/{{ keyword }}">edit</a>
            ]
            
            {% if (scope == 'products') %}
            [
            <a href="/config/ask-delete/{{ scope }}/{{ keyword }}">delete</a>
            ]
            {% endif %}
        </td>
    </tr>
    {% endfor %}
    
    {% endfor %} 
        
</table>

<a href="/config/add/products">
    Tambah Pasangan Kode Produk (config.products)
</a>

{% include "block.config.save.html" %}

{% endblock %}