1- < script src ="{{ url_for('static', filename='/includes/jquery-3.6.0/js/jquery-3.6.0.min.js') }} "> </ script >
2- < script src ="{{ url_for('static', filename='includes/jquery/js/jquery.datatables.min.js') }} "> </ script >
1+ {% extends "main.html" %}
32
4- < link rel ="stylesheet " href ="{{ url_for('static', filename='includes/datatables/css/dataTables.bootstrap.css') }} ">
5- < script src ="{{ url_for('static', filename='includes/datatables/js/dataTables.bootstrap.js') }} "> </ script >
6- < link rel ="stylesheet " href ="{{ url_for('static', filename='includes/datatables/css/fixedHeader.dataTables.min.css') }} ">
7- < script src ="{{ url_for('static', filename='includes/datatables/js/dataTables.fixedHeader.min.js') }} "> </ script >
3+ {% block head %}
4+ {{ jimi.jquery() }}
5+ {{ jimi.tables() }}
6+ < script src ="{{ url_for('static', filename='includes/jquery/js/jquery.datatables.min.js') }} "> </ script >
7+ < link rel ="stylesheet " href ="{{ url_for('static', filename='includes/datatables/css/dataTables.bootstrap.css') }} ">
8+ < script src ="{{ url_for('static', filename='includes/datatables/js/dataTables.bootstrap.js') }} "> </ script >
9+ < link rel ="stylesheet " href ="{{ url_for('static', filename='includes/datatables/css/fixedHeader.dataTables.min.css') }} ">
10+ < script src ="{{ url_for('static', filename='includes/datatables/js/dataTables.fixedHeader.min.js') }} "> </ script >
11+ < script src ="{{ url_for('static', filename='javascript/helpers.js') }} "> </ script >
12+ < script src ="{{ url_for('static', filename='javascript/hotkeys.js') }} "> </ script >
13+ < link rel ="stylesheet " href ="{{ url_for('static', filename='css/datatable.css') }} ">
14+ < link rel ="stylesheet " href ="{{ url_for('static', filename='themes/default/default.css') }} ">
15+ {% endblock %}
816
9- < link rel ="stylesheet " href ="{{ url_for('static', filename='includes/bootstrap-3.3.7/css/bootstrap.min.css') }} ">
10- < script src ="{{ url_for('static', filename='includes/visjs/js/moment.js') }} "> </ script >
11- < script src ="{{ url_for('static', filename='includes/datatables/js/datetime.moment.js') }} "> </ script >
12- < script src ="{{ url_for('static', filename='includes/bootstrap-3.3.7/js/bootstrap.min.js') }} "> </ script >
13-
14- < script src ="{{ url_for('static', filename='javascript/helpers.js') }} "> </ script >
15-
16-
17- < script src ="{{ url_for('static', filename='javascript/hotkeys.js') }} "> </ script >
18-
19- < link rel ="stylesheet " href ="{{ url_for('static', filename='css/datatable.css') }} ">
20- < link rel ="stylesheet " href ="{{ url_for('static', filename='themes/default/default.css') }} ">
21-
22- < script >
23- var CSRF = "{{CSRF}}"
24- </ script >
25-
26- < html >
27- < head >
28- < title > JIMI - cleanup Unused Objects</ title >
29- </ head >
30- < body class ="theme-panelContainer ">
31- < b > Triggers:</ b >
32- < table id ="orderTableTrigger " class ="table table-sm theme-table " cellspacing ="0 " width ="100% ">
33- < thead class ="theme-tableHeader ">
17+ {% block main %}
18+ < b > Triggers:</ b >
19+ < table id ="orderTableTrigger " class ="table table-sm theme-table " cellspacing ="0 " width ="100% ">
20+ < thead class ="theme-tableHeader ">
21+ < tr >
22+ < th class ="th-sm "> _id</ th >
23+ < th class ="th-sm "> name</ th >
24+ </ tr >
25+ </ thead >
26+ < tbody class ="theme-tableBody ">
27+ {% for data in unusedTriggerObjects %}
3428 < tr >
35- < th class =" th-sm " > _id</ th >
36- < th class =" th-sm " > name</ th >
29+ < td > {{ data[' _id'] }} </ td >
30+ < td > {{ data[' name'] }} </ td >
3731 </ tr >
38- </ thead >
39- < tbody class =" theme-tableBody " >
40- {% for data in unusedTriggerObjects %}
41- < tr >
42- < td > {{ data['_id'] }} </ td >
43- < td > {{ data['name'] }} </ td >
44- </ tr >
45- {% endfor %}
46- </ tbody >
47- </ table >
48- < br >
49- < br >
50- < b > Actions: </ b >
51- < table id =" orderTableAction " class ="table table-sm theme-table " cellspacing =" 0 " width =" 100% ">
52- < thead class =" theme-tableHeader " >
32+ {% endfor %}
33+ </ tbody >
34+ </ table >
35+ < br >
36+ < br >
37+ < b > Actions: </ b >
38+ < table id =" orderTableAction " class =" table table-sm theme-table " cellspacing =" 0 " width =" 100% " >
39+ < thead class =" theme-tableHeader " >
40+ < tr >
41+ < th class =" th-sm " > _id </ th >
42+ < th class =" th-sm " > name </ th >
43+ </ tr >
44+ </ thead >
45+ < tbody class ="theme-tableBody ">
46+ {% for data in unusedActionObjects %}
5347 < tr >
54- < th class =" th-sm " > _id</ th >
55- < th class =" th-sm " > name</ th >
48+ < td > {{ data[' _id'] }} </ td >
49+ < td > {{ data[' name'] }} </ td >
5650 </ tr >
57- </ thead >
58- < tbody class ="theme-tableBody ">
59- {% for data in unusedActionObjects %}
60- < tr >
61- < td > {{ data['_id'] }}</ td >
62- < td > {{ data['name'] }}</ td >
63- </ tr >
64- {% endfor %}
65- </ tbody >
66- </ table >
67- < br >
68- < br >
69- < input class ='btn btn-primary theme-panelButton ' id ="clearbutton " type ="submit " value ="Cleanup ">
70- </ body >
71- </ html >
72-
73- < script >
74- $ ( document ) . ready ( function ( ) {
75- $ ( '#orderTableTrigger' ) . DataTable ( {
76- "stripeClasses" : [ 'theme-tableRowOdd' , 'theme-tableRowEven' ] ,
77- fixedHeader : {
78- header : true ,
79- footer : true
80- } ,
81- "paging" : false ,
82- "order" : [ [ 0 , "desc" ] ] ,
83- "autoWidth" : false ,
51+ {% endfor %}
52+ </ tbody >
53+ </ table >
54+ < br >
55+ < br >
56+ < input class ='btn btn-primary theme-panelButton ' id ="clearbutton " type ="submit " value ="Cleanup ">
57+ < script >
58+ $ ( document ) . ready ( function ( ) {
59+ $ ( '#orderTableTrigger' ) . DataTable ( {
60+ "stripeClasses" : [ 'theme-tableRowOdd' , 'theme-tableRowEven' ] ,
61+ fixedHeader : {
62+ header : true ,
63+ footer : true
64+ } ,
65+ "paging" : false ,
66+ "order" : [ [ 0 , "desc" ] ] ,
67+ "autoWidth" : false ,
68+ } ) ;
69+ $ ( '#orderTableAction' ) . DataTable ( {
70+ "stripeClasses" : [ 'theme-tableRowOdd' , 'theme-tableRowEven' ] ,
71+ fixedHeader : {
72+ header : true ,
73+ footer : true
74+ } ,
75+ "paging" : false ,
76+ "order" : [ [ 0 , "desc" ] ] ,
77+ "autoWidth" : false ,
78+ } ) ;
79+ $ ( '.dataTables_length' ) . addClass ( 'bs-select' ) ;
80+ $ ( '.dataTables_filter input[type="search"]' ) . css ( { 'width' :'200px' } ) ;
81+ $ ( '.dataTables_filter input[type="search"]' ) . addClass ( "theme-panelTextbox" )
82+
8483 } ) ;
85- $ ( '#orderTableAction' ) . DataTable ( {
86- "stripeClasses" : [ 'theme-tableRowOdd' , 'theme-tableRowEven' ] ,
87- fixedHeader : {
88- header : true ,
89- footer : true
90- } ,
91- "paging" : false ,
92- "order" : [ [ 0 , "desc" ] ] ,
93- "autoWidth" : false ,
94- } ) ;
95- $ ( '.dataTables_length' ) . addClass ( 'bs-select' ) ;
96- $ ( '.dataTables_filter input[type="search"]' ) . css ( { 'width' :'200px' } ) ;
97- $ ( '.dataTables_filter input[type="search"]' ) . addClass ( "theme-panelTextbox" )
98-
99- } ) ;
100-
101- $ ( '#clearbutton' ) . on ( 'click' , function ( e ) {
102- $ . ajax ( { url :"" , type :"DELETE" , data : JSON . stringify ( { CSRF : CSRF } ) , contentType :"application/json" , success : function ( result ) {
103- location . reload ( ) ;
104- }
105- } ) ;
106- } )
107- </ script >
84+
85+ $ ( '#clearbutton' ) . on ( 'click' , function ( e ) {
86+ $ . ajax ( { url :"" , type :"DELETE" , data : JSON . stringify ( { CSRF : CSRF } ) , contentType :"application/json" , success : function ( result ) {
87+ location . reload ( ) ;
88+ }
89+ } ) ;
90+ } )
91+ </ script >
92+ {% endblock %}
0 commit comments