File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public function define_factor_combinations_table() {
193
193
$ txt = get_strings (array ('combination ' , 'totalweight ' ), 'tool_mfa ' );
194
194
$ table = new \html_table ();
195
195
$ table ->id = 'managemfatable ' ;
196
- $ table ->attributes ['class ' ] = 'admintable generaltable ' ;
196
+ $ table ->attributes ['class ' ] = 'admintable generaltable table table-bordered ' ;
197
197
$ table ->head = array ($ txt ->combination , $ txt ->totalweight );
198
198
$ table ->colclasses = array ('leftalign ' , 'centeralign ' );
199
199
$ table ->data = array ();
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public static function display_debug_notification() {
42
42
if (!get_config ('tool_mfa ' , 'debugmode ' )) {
43
43
return ;
44
44
}
45
-
46
- $ output = $ OUTPUT ->heading (get_string ('debugmode:heading ' , 'tool_mfa ' ), 3 );
45
+ $ html = $ OUTPUT ->heading (get_string ('debugmode:heading ' , 'tool_mfa ' ), 3 );
47
46
48
47
$ table = new \html_table ();
49
48
$ table ->head = array (
@@ -53,7 +52,7 @@ public static function display_debug_notification() {
53
52
get_string ('achievedweight ' , 'tool_mfa ' ),
54
53
get_string ('status ' ),
55
54
);
56
- $ table ->attributes ['class ' ] = 'admintable generaltable ' ;
55
+ $ table ->attributes ['class ' ] = 'admintable generaltable table table-bordered ' ;
57
56
$ table ->colclasses = array (
58
57
'text-right ' ,
59
58
'' ,
@@ -131,7 +130,8 @@ public static function display_debug_notification() {
131
130
$ OUTPUT ->get_state_badge ($ finalstate ),
132
131
);
133
132
134
- echo \html_writer::table ($ table );
133
+ $ html .= \html_writer::table ($ table );
134
+ echo $ html ;
135
135
}
136
136
137
137
/**
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ public function setup_factor($factor) {
91
91
$ html .= $ OUTPUT ->single_button ($ setupurl , $ factor ->get_setup_string ());
92
92
$ html .= html_writer::end_tag ('div ' );
93
93
$ html .= html_writer::end_tag ('div ' );
94
+ $ html .= '<br> ' ;
94
95
95
96
return $ html ;
96
97
}
@@ -117,7 +118,7 @@ public function active_factors() {
117
118
118
119
$ table = new \html_table ();
119
120
$ table ->id = 'active_factors ' ;
120
- $ table ->attributes ['class ' ] = 'generaltable ' ;
121
+ $ table ->attributes ['class ' ] = 'generaltable table table-bordered ' ;
121
122
$ table ->head = array (
122
123
$ headers ->factor ,
123
124
$ headers ->devicename ,
@@ -176,9 +177,8 @@ public function active_factors() {
176
177
if (count ($ table ->data ) == 0 ) {
177
178
return '' ;
178
179
}
179
- $ html .= $ OUTPUT ->box_start ('generalbox ' );
180
180
$ html .= \html_writer::table ($ table );
181
- $ html .= $ OUTPUT -> box_end () ;
181
+ $ html .= ' <br> ' ;
182
182
183
183
return $ html ;
184
184
}
You can’t perform that action at this time.
0 commit comments