5 * Copyright 2011, Franck Villaume - Capgemini
6 * Copyright 2011, 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 */
32 <script type="text/javascript">
35 jQuery(document).ready(function() {
36 controllerMantisBTInitUser = new MantisBTInitUserController({
38 {selector: '#mantisbtinit-user', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
39 {selector: '#mantisbtinit-password', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
40 {selector: '#mantisbtinit-create', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
49 echo '<form method="POST" Action="?type='.$type.'&pluginname='.$mantisbt->name.'&action=inituser" >';
51 echo '<tr><td><label id="mantisbtuseglobal-user" ';
53 echo 'title="'._('Use global forge configuration.').'"';
54 echo ' >Use global configuration</label></td><td><input id="mantisbtuseglobal" type="checkbox" name="mantisbtuseglobal" value="1"></td></tr>';
55 echo '<tr><td><label id="mantisbtinit-create" ';
57 echo 'title="'._('If your user does NOT exist in MantisBT, do you want to create it ?').'"';
58 echo ' >Create the user in MantisBT</label></td><td><input id="mantisbtcreate" type="checkbox" name="mantisbtcreate" value="1"></td></tr>';
59 echo '<tr><td><label id="mantisbtinit-link" ';
61 echo 'title="'._('If your user DOES exist in MantisBT, do you want to link with it ?').'"';
62 echo ' >Link with already created user in MantisBT</label></td><td><input id="mantisbtlink" type="checkbox" name="mantisbtlink" value="1"></td></tr>';
64 echo '<tr><td><label id="mantisbtinit-user" ';
66 echo 'title="'._('Specify your mantisbt user to be used.').'"';
67 echo ' >MantisBT User</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_user" /></td></tr>';
68 echo '<tr><td><label id="mantisbtinit-password" ';
70 echo 'title="'._('Specify the password of your user.').'"';
71 echo ' >Your Password</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_password" /></td></tr>';
74 echo '<input type="submit" value="'._('Initialize').'" />';