File tree Expand file tree Collapse file tree 5 files changed +117
-0
lines changed Expand file tree Collapse file tree 5 files changed +117
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: apokorski
5
+ * Date: 26/07/2018
6
+ * Time: 11:27
7
+ */
8
+
9
+ class MassActionPlugin extends MantisPlugin {
10
+
11
+ /**
12
+ * A method that populates the plugin information and minimum requirements.
13
+ * @return void
14
+ */
15
+ function register () {
16
+ $ this ->name = 'Copie des actions de masse ' ;
17
+ $ this ->description = 'Copie les actions de masses en haut du tableau d \'affichage des fiches. ' ;
18
+
19
+ $ this ->version = '1.0 ' ;
20
+ $ this ->requires = array (
21
+ 'MantisCore ' => '2.0.0 ' ,
22
+ );
23
+
24
+ $ this ->author = 'Alexis POKORSKI ' ;
25
+ $ this ->contact = '' ;
26
+ $ this ->url = '' ;
27
+ }
28
+
29
+ /**
30
+ * Event hook declaration.
31
+ * @return array
32
+ */
33
+ function hooks (){
34
+ return array (
35
+ "EVENT_LAYOUT_RESOURCES " => 'ressources ' ,
36
+ 'EVENT_MENU_FILTER ' =>'reporting_menu '
37
+ );
38
+ }
39
+
40
+ /**
41
+ * Include massAction.
42
+ */
43
+ function reporting_menu (){
44
+ include ('pages/menuActions.php ' );
45
+ }
46
+
47
+ /**
48
+ * Include js function.
49
+ */
50
+ function ressources () {
51
+ if (basename ($ _SERVER ['PHP_SELF ' ]) === 'view_all_bug_page.php ' ){
52
+ echo '<script src=" ' . plugin_file ('UpdateSelected.js ' ) . '" ></script> ' ;
53
+ }
54
+ }
55
+ }
Original file line number Diff line number Diff line change
1
+ MassAction
2
+ =============
3
+ ## Description
4
+
5
+ Mantis Bug Tracker plugin which copy bottom mass action on the top.
6
+
7
+ Are you tired of having to scroll all the way to the bottom of the page of all tickets to perform group actions ?
8
+
9
+ Use this plugin !
10
+
11
+ ## Repository Information
12
+
13
+ | Branch | Description |
14
+ | ------------------------------------------------------------ | ------------------------------------------------------ |
15
+ | [ master] ( https://github.com/VirusTwo/MassAction ) | Support for MantisBT 2.x (current production version). |
16
+
17
+
18
+ ## Installation
19
+
20
+ 1 . Download the files and place the folder ` MassAction ` in the directory ` plugins/ ` of your Mantis installation.
21
+ 2 . With administrator privileges, go to the page * "Manage"* / * "Manage Plugins"*
22
+ 3 . In the list * "Available Plugins"* , you should see * "MassAction"* : click the install link for the plugin.
23
+
24
+ The MassAction plugin is now available.
25
+
26
+ ## Change Log
27
+
28
+ ## Screenshots & Gif :
29
+
30
+ What change mass action plugin ? :
31
+ ![ AutoAddUsersScreen] ( https://github.com/VirusTwo/MassAction/blob/master/screenshots/MassActionPlugin.PNG )
Original file line number Diff line number Diff line change
1
+ $ ( document ) . ready ( function ( ) {
2
+ $ ( 'select[name="action2"]' ) . on ( 'change' , function ( ) {
3
+ $ ( 'select[name="action"]' ) . val ( this . value )
4
+ } ) ;
5
+
6
+ $ ( 'select[name="action"]' ) . on ( 'change' , function ( ) {
7
+ $ ( 'select[name="action2"]' ) . val ( this . value )
8
+ } ) ;
9
+ } ) ;
Original file line number Diff line number Diff line change
1
+ <form id="bug_action" method="post" action="bug_actiongroup_page.php">
2
+ <?php
3
+ # -- ====================== MASS BUG MANIPULATION =================== --
4
+ # @@@ ideally buglist-footer would be in <tfoot>, but that's not possible due to global g_checkboxes_exist set via write_bug_rows()
5
+ ?>
6
+ <div class="form-inline pull-right">
7
+ <?php
8
+ echo '<label class="inline"> ' ;
9
+ echo '<input class="ace check_all input-sm" type="checkbox" id="bug_arr_all" name="bug_arr_all" value="all" /> ' ;
10
+ echo '<span class="lbl padding-6"> ' . lang_get ( 'select_all ' ) . ' </span > ' ;
11
+ echo '</label> ' ;
12
+ ?>
13
+
14
+ <select name="action2" class="input-sm">
15
+ <?php print_all_bug_action_option_list ()?>
16
+ </select>
17
+
18
+ <button type="submit" class="btn btn-primary btn-white btn-sm btn-round pull-right" formaction="bug_actiongroup_page.php"> <?php echo lang_get ('ok ' ); ?> </button>
19
+ </div>
20
+ <?php # -- ====================== end of MASS BUG MANIPULATION ========================= -- ?>
21
+ </form>
22
+
You can’t perform that action at this time.
0 commit comments