5 * Copyright 2011, Franck Villaume - Capgemini
6 * Copyright 2011-2014,2016, 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.
31 <script type="text/javascript">
34 jQuery(document).ready(function() {
35 controllerMantisBTAdminViewControler = new MantisBTAdminViewController({
36 checkboxGlobalConf: jQuery('#mantisbtglobalconf'),
37 inputUrl: jQuery('#mantisbturl'),
38 inputUser: jQuery('#mantisbtuser'),
39 inputPassword: jQuery('#mantisbtpassword'),
46 echo $HTML->boxTop(_('Manage configuration'));
47 echo $HTML->openForm(array('method' => 'post', 'action' => '/plugins/'.$mantisbt->name.'/?type=admin&group_id='.$group_id.'&action=updateConf'));
49 echo '<tr><td><label id="mantisbtinit-global" title="'._('Use the global configuration defined at forge level').'"';
50 echo ' >'._('Use global configuration').'</label></td><td><input id="mantisbtglobalconf" type="checkbox" name="global_conf" value="1" ';
51 if ($mantisbtConf['use_global']) {
52 echo 'checked="checked" ';
55 echo '<tr><td><label id="mantisbtinit-url" title="'._('Specify the Full URL of the MantisBT Web Server.').'"';
56 echo ' >URL</label></td><td><input id="mantisbturl" type="url" size="50" maxlength="255" name="url" value="'.$mantisbtConf['url'].'" /></td></tr>';
57 echo '<tr><td><label id="mantisbtinit-user" title="'._('Specify the user with admin right to be used thru SOAP API.').'"';
58 echo ' >SOAP User</label></td><td><input id="mantisbtuser" type="text" size="50" maxlength="255" name="soap_user" value="'.$mantisbtConf['soap_user'].'" /></td></tr>';
59 echo '<tr><td><label id="mantisbtinit-password" title="'._('Specify the password of this user.').'"';
60 echo ' >SOAP Password</label></td><td><input id="mantisbtpassword" type="password" size="50" maxlength="255" name="soap_password" value="'.$mantisbtConf['soap_password'].'" /></td></tr>';
61 echo '<tr><td><label id="mantisbtinit-syncroles" title="'._('Do you want to sync FusionForge -> MantisBT roles ? Not implemented yet.').'"';
62 echo ' >Sync Roles</label></td><td><input disabled="disabled" type="checkbox" name="sync_roles" /></td></tr>';
64 echo '<input type="submit" value="'._('Update').'" />';
65 echo $HTML->closeForm();
66 echo $HTML->boxBottom();