Permalink
Browse files

set up the budget_display_info toggle to hide/display budget info thr…

…oughout the system;
  • Loading branch information...
1 parent 33ef019 commit 1993a34eac7a9f78af62004a7492abedb9e8680f @caseysoftware caseysoftware committed Apr 3, 2013
Showing with 6 additions and 0 deletions.
  1. +2 −0 install/sql/mysql/044_budget_toggle.sql
  2. +2 −0 locales/en/system.inc
  3. +2 −0 modules/system/index.php
@@ -0,0 +1,2 @@
+INSERT INTO `config` (`config_name`, `config_value`, `config_group`, `config_type`)
+ VALUES ('budget_info_display', 'false', 'budgeting', 'checkbox');
View
@@ -195,6 +195,8 @@
'bad email address',
'bg'=>'Bulgarian',
'budgeting_group_title'=>'Budgeting',
+'budget_info_display_title'=>'Display Budget Information',
+'budget_info_display_tooltip'=>'This will toggle the budget information display on the Tasks, Projects, and other modules',
'cal_day_end_title'=>'Calendar End Hour',
'cal_day_end_tooltip'=>'The last hour of the working day - integer value from 0 to 23',
'cal_day_increment_title'=>'Calendar Minute Increment',
View
@@ -116,6 +116,7 @@
<a href="?m=system&a=phpinfo&suppressHeaders=1" target="_blank"><?php echo $AppUI->_('PHP Info'); ?></a>
</div>
</div>
+ <?php if (w2PgetConfig('budget_info_display', false)) { ?>
<div class="right main">
<div class="left icon">
<?php echo w2PshowImage('control-center.png', 42, 42, ''); ?>
@@ -126,4 +127,5 @@
<a href="?m=system&a=budgeting"><?php echo $AppUI->_('Setup Budgets'); ?></a>
</div>
</div>
+ <?php } ?>
</div>

0 comments on commit 1993a34

Please sign in to comment.