Commit 88c3aba9446d6ed8d32b91373eee891a3179827a

Authored by Adhidarma Hadiwinoto
1 parent 9c9e0fa0dd
Exists in master

insert space between products

Showing 1 changed file with 15 additions and 13 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' && keyword == 'products' %}
28 {{ value | replace(',', ', ') }}
27 {% else %} 29 {% else %}
28 {{ value }} 30 {{ value }}
29 {% endif %} 31 {% endif %}
30 32
31 <br/> 33 <br/>
32 <br/> 34 <br/>
33 35
34 <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>
35 <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>
36 38
37 </div> 39 </div>
38 </td> 40 </td>
39 41
40 <td class="hidden-xs hidden-sm"> 42 <td class="hidden-xs hidden-sm">
41 {% if isMask(scope, keyword) %} 43 {% if isMask(scope, keyword) %}
42 ******** 44 ********
43 {% else %} 45 {% else %}
44 {{ value }} 46 {{ value }}
45 {% endif %} 47 {% endif %}
46 48
47 <br/> 49 <br/>
48 50
49 <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>
50 <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>
51 </td> 53 </td>
52 54
53 </tr> 55 </tr>
54 {% endfor %} 56 {% endfor %}
55 57
56 <tr style="background-color: white;"> 58 <tr style="background-color: white;">
57 <td colspan=3 style="padding-bottom: 4em;"> 59 <td colspan=3 style="padding-bottom: 4em;">
58 <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>
59 </td> 61 </td>
60 </tr> 62 </tr>
61 63
62 {% endfor %} 64 {% endfor %}
63 65
64 </table> 66 </table>
65 67
66 {% include "block.config.save.html" %} 68 {% include "block.config.save.html" %}
67 69
68 {% endblock %} 70 {% endblock %}
69 71