From: <vb...@us...> - 2003-02-15 14:13:57
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv13443 Modified Files: manage_proj_edit_page.php Added Files: manage_proj_custom_field_update.php Log Message: Add handling for custom fields sequence numbers through the manage project edit page. A manage_proj_custom_field_update.php - Action page for setting the sequence number for the custom fields. M manage_proj_edit_page.php - Displayed an edit box with the sequence number and add an update button next to each one to allow the manager to update the sequence numbers. M core/custom_field_api.php - (custom_field_get_sequence): Gets the sequence number for the specified field in the specified project. - (custom_field_set_sequence): Sets the sequence number for the specified field in the specified project. - (custom_field_get_linked_ids): Added sorting by field name as a secondary key after sequence number. M lang/strings_english.txt - Added caption for the update button. Index: manage_proj_edit_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_edit_page.php,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- manage_proj_edit_page.php 15 Feb 2003 10:25:17 -0000 1.61 +++ manage_proj_edit_page.php 15 Feb 2003 14:13:53 -0000 1.62 @@ -354,15 +354,16 @@ <?php echo $t_desc['name'] ?> </td> <td> - <?php echo $t_field_id ?> +<form method="post" action="manage_proj_custom_field_update.php"> + <input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" /> + <input type="hidden" name="field_id" value="<?php echo $t_field_id ?>" /> + <input type="text" name="sequence" value="<?php echo custom_field_get_sequence( $t_field_id, $f_project_id ) ?>" size="2" /> + <input type="submit" value="<?php echo lang_get( 'update' ) ?>" /> +</form> </td> <td class="center"> <?php # You need global permissions to edit custom field defs - if ( access_has_global_level( config_get( 'manage_custom_fields' ) ) ) { - print_bracket_link( "manage_custom_field_edit_page.php?field_id=$t_field_id&return=manage_proj_edit_page.php?project_id=$f_project_id", lang_get( 'edit_link' ) ); - echo ' '; - } print_bracket_link( "manage_proj_custom_field_remove.php?field_id=$t_field_id&project_id=$f_project_id", lang_get( 'remove_link' ) ); ?> </td> |