Hide total in columns
This commit is contained in:
@@ -47,6 +47,14 @@ class Plugin extends Base
|
||||
// Per-column net total (credits - debits) in the column header.
|
||||
$this->template->hook->attach('template:board:column:header', 'financeBuddy:board/column_total');
|
||||
|
||||
// "Hide/Show column total" toggle in the column dropdown menu. The only column-menu hook
|
||||
// renders after the native <ul>, so column_dropdown.php emits the item hidden and relocate.js
|
||||
// moves it into the menu (same technique as BulkMoveTasks, with the stable-parent observer).
|
||||
$this->template->hook->attach('template:board:column:dropdown', 'financeBuddy:board/column_dropdown');
|
||||
$this->hook->on('template:layout:js', array(
|
||||
'template' => 'plugins/FinanceBuddy/Asset/js/relocate.js',
|
||||
));
|
||||
|
||||
// The same money badge at the top of the opened card (task view), under the title, so a
|
||||
// card shows its money whether you are on the board or reading the card. Reuses the board
|
||||
// badge template (both hooks pass $task).
|
||||
|
||||
Reference in New Issue
Block a user