I wanna use a input-box, not a drop-down list.
But i don`n know how...
thx.
P.S. sorry, for my bad english.
May I introduce a number of hour in ETA field ?
Moderators: Developer, Contributor
-
- Posts: 14
- Joined: 07 Sep 2009, 23:19
Re: May I introduce a number of hour in ETA field ?
Two possible solutions include:
1. modifying the code in bug_update_advanced_page.php
Replace the <select> statements with code for an input box. You will need to display the current value, not just an empty imput box.
or
2. changing the unumeration of the ETA dropdown list in config_defaults_inc.php and lang/strings_english.txt to a set of numbers, i.e. change
to
and change
to
Changes should not be made in config_defaults_inc.php, but in config_inc.php- but you can use the info in config_defaults_inc.php as a model for adding to config_inc.php.
1. modifying the code in bug_update_advanced_page.php
Code: Select all
<select <?php echo helper_get_tab_index() ?> name="eta">
<?php print_enum_string_option_list( 'eta', $t_bug->eta ) ?>
</select>
or
2. changing the unumeration of the ETA dropdown list in config_defaults_inc.php and lang/strings_english.txt to a set of numbers, i.e. change
Code: Select all
$g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
Code: Select all
$g_eta_enum_string = '10:1,20:2,30:3,40:4,505,60:6;
Code: Select all
$s_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month';
Code: Select all
$s_eta_enum_string = '10:1,20:2,30:3,40:4,505,60:6;
Re: May I introduce a number of hour in ETA field ?
How can i see "eta" on view all bug page ?1. modifying the code in bug_update_advanced_page.php
I wanna see a text, not a combo-bob. But, unfortunaly, this is a only way (combo-box).2. changing the unumeration of the ETA dropdown list in config_defaults_inc.php and lang/strings_english.txt to a set of numbers, i.e. change
-
- Posts: 14
- Joined: 07 Sep 2009, 23:19
Re: May I introduce a number of hour in ETA field ?
1 You can modify the columns shown in the view_all_bugs page using the configuration files. Copy this line from config_defaults_inc.php:
and paste it into config_inc.php, and then edit it to include "eta"
You can rearrange the order, include other fields or drop fields by following the instructions in the comments just before the above line in config_defaults_inc.php.
2 The only way I know to show text input instead of a drop down is to change the code in bug_update_page.php and bug_update_advanced_page.php from "<select>" statements to a "<input type=text...>" statement
Code: Select all
$g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'status', 'last_updated', 'summary', );
Code: Select all
$g_view_issues_page_columns = array( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'status', 'last_updated', 'summary', 'eta');
2 The only way I know to show text input instead of a drop down is to change the code in bug_update_page.php and bug_update_advanced_page.php from "<select>" statements to a "<input type=text...>" statement