config.index.html
1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% 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 style="background-color: white;">
<th colspan=2 id="config.{{ scope }}">
<h2>
{{ scope }}
</h2>
</th>
</tr>
{% for keyword, value in items|dictsort %}
<tr>
<td id="config.{{ scope }}.{{ keyword }}">
<strong>{{ keyword }}</strong>
<div class="hidden-md hidden-lg">
{% if isMask(scope, keyword) %}
********
{% elif scope == "globals" and keyword == "products" %}
{{ value | replace(",", ", ") }}
{% else %}
{{ value }}
{% endif %}
<br/>
<br/>
<a class="btn btn-warning" role="button" href="/config/edit/{{ scope }}/{{ keyword }}">Edit</a>
<a class="btn btn-danger" role="button" href="/config/ask-delete/{{ scope }}/{{ keyword }}">Delete</a>
</div>
</td>
<td class="hidden-xs hidden-sm">
{% if isMask(scope, keyword) %}
********
{% elif scope == "globals" and keyword == "products" %}
{{ value | replace(",", ", ") }}
{% else %}
{{ value }}
{% endif %}
<br/>
<a class="btn btn-warning" role="button" href="/config/edit/{{ scope }}/{{ keyword }}">Edit</a>
<a class="btn btn-danger" role="button" href="/config/ask-delete/{{ scope }}/{{ keyword }}">Delete</a>
</td>
</tr>
{% endfor %}
<tr style="background-color: white;">
<td colspan=3 style="padding-bottom: 4em;">
<a class="btn btn-info" role="button" href="/config/add/{{ scope }}">Tambah item pada scope {{ scope }}</a>
</td>
</tr>
{% endfor %}
</table>
{% include "block.config.save.html" %}
{% endblock %}