5 * Copyright 2011, Franck Villaume - Capgemini
6 * Copyright 2011-2012, Franck Villaume - TrivialDev
7 * http://fusionforge.org
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 /* please do not add include here, use index.php to do so */
26 /* global variables */
34 <script type="text/javascript">
37 jQuery(document).ready(function() {
38 controllerMantisBTInit = new MantisBTInitController({
40 {selector: 'mantisbtinit-global', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
41 {selector: '#mantisbtinit-url', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
42 {selector: '#mantisbtinit-user', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
43 {selector: '#mantisbtinit-password', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
44 {selector: '#mantisbtinit-create', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
45 {selector: '#mantisbtinit-name', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
46 {selector: '#mantisbtinit-syncroles', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
48 checkboxGlobalConf: jQuery('#mantisbtglobalconf'),
49 checkboxCreate: jQuery('#mantisbtcreate'),
50 inputName: jQuery('#mantisbtname'),
51 inputUrl: jQuery('#mantisbturl'),
52 inputUser: jQuery('#mantisbtuser'),
53 inputPassword: jQuery('#mantisbtpassword'),
61 echo '<form method="POST" Action="?type='.$type.'&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&action=init" >';
63 echo '<tr><td><label id="mantisbtinit-global" ';
65 echo 'title="'._('Use the global configuration defined at forge level').'"';
66 echo ' >'._('Use global configuration').'</label></td><td><input id="mantisbtglobalconf" type="checkbox" name="global_conf" value="1" /></td></tr>';
67 echo '<tr><td><label id="mantisbtinit-url" ';
69 echo 'title="'._('Specify the Full URL of the MantisBT Web Server.').'"';
70 echo ' >URL</label></td><td><input id="mantisbturl" type="text" size="50" maxlength="255" name="url" /></td></tr>';
71 echo '<tr><td><label id="mantisbtinit-user" ';
73 echo 'title="'._('Specify the user with admin right to be used thru SOAP API.').'"';
74 echo ' >SOAP User</label></td><td><input id="mantisbtuser" type="text" size="50" maxlength="255" name="soap_user" /></td></tr>';
75 echo '<tr><td><label id="mantisbtinit-password" ';
77 echo 'title="'._('Specify the password of this user.').'"';
78 echo ' >SOAP Password</label></td><td><input id="mantisbtpassword" type="text" size="50" maxlength="255" name="soap_password" /></td></tr>';
79 echo '<tr><td><label id="mantisbtinit-create" ';
81 echo 'title="'._('If this project does NOT exist in MantisBT, do you want to create it ?').'"';
82 echo ' >Create the project in MantisBT</label></td><td><input id="mantisbtcreate" type="checkbox" name="mantisbtcreate" value="1" /></td></tr>';
83 echo '<tr><td><label id="mantisbtinit-name" ';
85 echo 'title="'._('Specify the name of the project in MantisBT if already created in MantisBT').'"';
86 echo ' >Name of the project in MantisBT</label></td><td><input id="mantisbtname" type="text" size="50" maxlength="255" name="mantisbtname" /></td></tr>';
87 echo '<tr><td><label id="mantisbtinit-syncroles" ';
89 echo 'title="'._('Do you want to sync FusionForge -> MantisBT roles ?').'"';
90 echo ' >Sync Roles</label></td><td><input disabled="disabled" type="checkbox" name="sync_roles" /></td></tr>';
92 echo '<input type="submit" value="'._('Initialize').'" />';