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.
32 <script type="text/javascript">
35 jQuery(document).ready(function() {
36 controllerMantisBTAdminViewControler = new MantisBTAdminViewController({
38 {selector: '#mantisbtinit-global', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
39 {selector: '#mantisbtinit-url', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
40 {selector: '#mantisbtinit-user', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
41 {selector: '#mantisbtinit-password', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
42 {selector: '#mantisbtinit-syncroles', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}},
44 checkboxGlobalConf: jQuery('#mantisbtglobalconf'),
45 inputUrl: jQuery('#mantisbturl'),
46 inputUser: jQuery('#mantisbtuser'),
47 inputPassword: jQuery('#mantisbtpassword'),
54 echo $HTML->boxTop(_('Manage configuration'));
55 echo '<form method="POST" Action="?type=admin&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&action=updateConf">';
57 echo '<tr><td><label id="mantisbtinit-global" ';
59 echo 'title="'._('Use the global configuration defined at forge level').'"';
60 echo ' >'._('Use global configuration').'</label></td><td><input id="mantisbtglobalconf" type="checkbox" name="global_conf" value="1" ';
61 if ($mantisbtConf['use_global']) {
62 echo 'checked="checked" ';
65 echo '<tr><td><label id="mantisbtinit-url" ';
67 echo 'title="'._('Specify the Full URL of the MantisBT Web Server.').'"';
68 echo ' >URL</label></td><td><input id="mantisbturl" type="text" size="50" maxlength="255" name="url" value="'.$mantisbtConf['url'].'" /></td></tr>';
69 echo '<tr><td><label id="mantisbtinit-user" ';
71 echo 'title="'._('Specify the user with admin right to be used thru SOAP API.').'"';
72 echo ' >SOAP User</label></td><td><input id="mantisbtuser" type="text" size="50" maxlength="255" name="soap_user" value="'.$mantisbtConf['soap_user'].'" /></td></tr>';
73 echo '<tr><td><label id="mantisbtinit-password" ';
75 echo 'title="'._('Specify the password of this user.').'"';
76 echo ' >SOAP Password</label></td><td><input id="mantisbtpassword" type="text" size="50" maxlength="255" name="soap_password" value="'.$mantisbtConf['soap_password'].'" /></td></tr>';
77 echo '<tr><td><label id="mantisbtinit-syncroles" ';
79 echo 'title="'._('Do you want to sync FusionForge -> MantisBT roles ? Not implemented yet.').'"';
80 echo ' >Sync Roles</label></td><td><input disabled="disabled" type="checkbox" name="sync_roles" /></td></tr>';
82 echo '<input type="submit" value="'._('Update').'" />';
84 echo $HTML->boxBottom();