Commit 3beb1f7d43f64cc5991362b32d8669c1ef7e3949

Authored by Adhidarma Hadiwinoto
1 parent 737626b280
Exists in master

gunakan kurung

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

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