/
club_equipment.htm
60 lines (51 loc) · 1.36 KB
/
club_equipment.htm
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
{% from 'bs_tabs.htm' import bs_tabs with context %}
{% from 'ko_grid.htm' import ko_grid with context %}
{% from 'ko_grid_body.htm' import ko_grid_body with context %}
{% extends 'base.htm' %}
{% block main %}
{% set tabs = [] %}
{% set html %}
{{ ko_grid(
grid_options={
'classPath': 'ClubGrid',
'pageRoute': 'club_equipment_grid',
},
dom_attrs={
'id': 'club_equipment_grid'
}
) }}
{% endset %}
{% do tabs.append({
'id': 'club_equipment_tab',
'title': 'Sport clubs',
'tooltip': 'Add, modify, remove sport club, add related equipment to sport club',
'html': html,
'is_active': True
}) %}
{% set html %}
{{ ko_grid(
grid_options={
'pageRoute': 'equipment_grid',
},
template_args={
'vscroll': True
},
dom_attrs={
'id': 'equipment_grid'
}
) }}
{% endset %}
{% do tabs.append({
'id': 'equipment_tab',
'title': 'Sport club equipments',
'tooltip': 'All the equipments of all sport clubs',
'html': html,
}) %}
{{ bs_tabs(tabs) }}
{% do page_context.set_custom_scripts(
'sample/js/club-grid.js',
) -%}
{% endblock main %}
{% block bottom_scripts %}
{{ ko_grid_body() }}
{% endblock bottom_scripts %}