--- bug_update_advanced_page.php.org 2009-10-14 12:01:07.000000000 +0200 +++ bug_update_advanced_page.php 2009-10-14 12:14:25.000000000 +0200 @@ -60,6 +60,11 @@ $tpl_bug_id = $f_bug_id; +$t_action_button_position = config_get( 'action_button_position' ); + +$tpl_top_buttons_enabled = !$tpl_force_readonly && ( $t_action_button_position == POSITION_TOP || $t_action_button_position == POSITION_BOTH ); +$tpl_bottom_buttons_enabled = !$tpl_force_readonly && ( $t_action_button_position == POSITION_BOTTOM || $t_action_button_position == POSITION_BOTH ); + $tpl_show_id = in_array( BUG_FIELD_ID, $t_fields ); $tpl_show_project = in_array( BUG_FIELD_PROJECT, $t_fields ); $tpl_show_category = in_array( BUG_FIELD_CATEGORY, $t_fields ); @@ -123,6 +128,14 @@ print_bracket_link( string_get_bug_view_url( $tpl_bug_id ), lang_get( 'back_to_bug_link' ) ); echo ''; +# Submit Button +if ( $tpl_top_buttons_enabled ) { + echo ''; + echo ''; + echo ''; +} + + event_signal( 'EVENT_UPDATE_BUG_FORM_TOP', array( $tpl_bug_id, true ) ); if ( $tpl_show_id || $tpl_show_project || $tpl_show_category || $tpl_show_view_state || $tpl_show_date_submitted | $tpl_show_last_updated ) { @@ -654,9 +667,11 @@ event_signal( 'EVENT_BUGNOTE_ADD_FORM', array( $tpl_bug_id ) ); # Submit Button -echo ''; -echo ''; -echo ''; +if ( $tpl_bottom_buttons_enabled ) { + echo ''; + echo ''; + echo ''; +} echo '';