@@ -1469,30 +1469,30 @@ static function showOtherAuthList() {
14691469 if (!empty ($ CFG_GLPI ["cas_host " ])) {
14701470 echo _x ('authentication ' , 'Enabled ' );
14711471 }
1472- echo "</th></tr> \n " ;
1472+ echo "</th></tr> " ;
14731473
14741474 if (function_exists ('curl_init ' )
14751475 && Toolbox::canUseCAS ()) {
14761476
14771477 //TRANS: for CAS SSO system
14781478 echo "<tr class='tab_bg_2'><td class='center'> " . __ ('CAS Host ' ) . "</td> " ;
1479- echo "<td><input type='text' name='cas_host' value= \"" .$ CFG_GLPI ["cas_host " ]."\"></td></tr> \n " ;
1479+ echo "<td><input type='text' class='form-control' name='cas_host' value= \"" .$ CFG_GLPI ["cas_host " ]."\"></td></tr> " ;
14801480 //TRANS: for CAS SSO system
14811481 echo "<tr class='tab_bg_2'><td class='center'> " . __ ('CAS Version ' ) . "</td> " ;
14821482 echo "<td> " ;
14831483 Auth::dropdownCasVersion ($ CFG_GLPI ["cas_version " ]);
14841484 echo "</td> " ;
1485- echo "</tr> \n " ;
1485+ echo "</tr> " ;
14861486 //TRANS: for CAS SSO system
14871487 echo "<tr class='tab_bg_2'><td class='center'> " . _n ('Port ' , 'Ports ' , 1 ) . "</td> " ;
1488- echo "<td><input type='text' name='cas_port' value= \"" .$ CFG_GLPI ["cas_port " ]."\"></td></tr> \n " ;
1488+ echo "<td><input type='text' class='form-control' name='cas_port' value= \"" .$ CFG_GLPI ["cas_port " ]."\"></td></tr> " ;
14891489 //TRANS: for CAS SSO system
14901490 echo "<tr class='tab_bg_2'><td class='center'> " . __ ('Root directory (optional) ' )."</td> " ;
1491- echo "<td><input type='text' name='cas_uri' value= \"" .$ CFG_GLPI ["cas_uri " ]."\"></td></tr> \n " ;
1491+ echo "<td><input type='text' class='form-control' name='cas_uri' value= \"" .$ CFG_GLPI ["cas_uri " ]."\"></td></tr> " ;
14921492 //TRANS: for CAS SSO system
14931493 echo "<tr class='tab_bg_2'><td class='center'> " . __ ('Log out fallback URL ' ) . "</td> " ;
1494- echo "<td><input type='text' name='cas_logout' value= \"" .$ CFG_GLPI ["cas_logout " ]."\"></td> " .
1495- "</tr> \n " ;
1494+ echo "<td><input type='text' class='form-control' name='cas_logout' value= \"" .$ CFG_GLPI ["cas_logout " ]."\"></td> " .
1495+ "</tr> " ;
14961496 } else {
14971497 echo "<tr class='tab_bg_2'><td class='center' colspan='2'> " ;
14981498 if (!function_exists ('curl_init ' )) {
@@ -1506,147 +1506,147 @@ static function showOtherAuthList() {
15061506 echo "<p> " .__ ('Impossible to use CAS as external source of connection ' )."</p> " ;
15071507 echo "<p><strong> " .GLPINetwork::getSupportPromoteMessage ()."</strong></p> " ;
15081508
1509- echo "</td></tr> \n " ;
1509+ echo "</td></tr> " ;
15101510 }
15111511 // X509 config
15121512 echo "<tr><th> " . __ ('x509 certificate authentication ' )."</th><th> " ;
15131513 if (!empty ($ CFG_GLPI ["x509_email_field " ])) {
15141514 echo _x ('authentication ' , 'Enabled ' );
15151515 }
1516- echo "</th></tr> \n " ;
1516+ echo "</th></tr> " ;
15171517 echo "<tr class='tab_bg_2'> " ;
15181518 echo "<td class='center'> " . __ ('Email attribute for x509 authentication ' ) ."</td> " ;
1519- echo "<td><input type='text' name='x509_email_field' value= \"" .$ CFG_GLPI ["x509_email_field " ]."\"> " ;
1520- echo "</td></tr> \n " ;
1519+ echo "<td><input type='text' class='form-control' name='x509_email_field' value= \"" .$ CFG_GLPI ["x509_email_field " ]."\"> " ;
1520+ echo "</td></tr> " ;
15211521 echo "<tr class='tab_bg_2'> " ;
15221522 echo "<td class='center'> " . sprintf (__ ('Restrict %s field for x509 authentication (separator $) ' ), 'OU ' ) ."</td> " ;
1523- echo "<td><input type='text' name='x509_ou_restrict' value= \"" .$ CFG_GLPI ["x509_ou_restrict " ]."\"> " ;
1524- echo "</td></tr> \n " ;
1523+ echo "<td><input type='text' class='form-control' name='x509_ou_restrict' value= \"" .$ CFG_GLPI ["x509_ou_restrict " ]."\"> " ;
1524+ echo "</td></tr> " ;
15251525 echo "<tr class='tab_bg_2'> " ;
15261526 echo "<td class='center'> " . sprintf (__ ('Restrict %s field for x509 authentication (separator $) ' ), 'CN ' ) ."</td> " ;
1527- echo "<td><input type='text' name='x509_cn_restrict' value= \"" .$ CFG_GLPI ["x509_cn_restrict " ]."\"> " ;
1528- echo "</td></tr> \n " ;
1527+ echo "<td><input type='text' class='form-control' name='x509_cn_restrict' value= \"" .$ CFG_GLPI ["x509_cn_restrict " ]."\"> " ;
1528+ echo "</td></tr> " ;
15291529 echo "<tr class='tab_bg_2'> " ;
15301530 echo "<td class='center'> " . sprintf (__ ('Restrict %s field for x509 authentication (separator $) ' ), 'O ' ) ."</td> " ;
1531- echo "<td><input type='text' name='x509_o_restrict' value= \"" .$ CFG_GLPI ["x509_o_restrict " ]."\"> " ;
1532- echo "</td></tr> \n " ;
1531+ echo "<td><input type='text' class='form-control' name='x509_o_restrict' value= \"" .$ CFG_GLPI ["x509_o_restrict " ]."\"> " ;
1532+ echo "</td></tr> " ;
15331533
15341534 //Other configuration
15351535 echo "<tr><th> " . __ ('Other authentication sent in the HTTP request ' )."</th><th> " ;
15361536 if (!empty ($ CFG_GLPI ["ssovariables_id " ])) {
15371537 echo _x ('authentication ' , 'Enabled ' );
15381538 }
1539- echo "</th></tr> \n " ;
1539+ echo "</th></tr> " ;
15401540 echo "<tr class='tab_bg_2'> " ;
15411541 echo "<td class='center'> " . SsoVariable::getTypeName (1 )."</td> " ;
15421542 echo "<td> " ;
15431543 SsoVariable::dropdown (['name ' => 'ssovariables_id ' ,
15441544 'value ' => $ CFG_GLPI ["ssovariables_id " ]]);
15451545 echo "</td> " ;
1546- echo "</tr> \n " ;
1546+ echo "</tr> " ;
15471547
15481548 echo "<tr class='tab_bg_2'> " ;
15491549 echo "<td class='center'> " . __ ('SSO logout url ' ) . "</td> " ;
1550- echo "<td><input type='text' name='ssologout_url' value=' " .
1550+ echo "<td><input type='text' class='form-control' name='ssologout_url' value=' " .
15511551 $ CFG_GLPI ['ssologout_url ' ]."'></td> " ;
1552- echo "</tr> \n " ;
1552+ echo "</tr> " ;
15531553
15541554 echo "<tr class='tab_bg_2'> " ;
15551555 echo "<td class='center'> " . __ ('Remove the domain of logins like login@domain ' )."</td><td> " ;
15561556 Dropdown::showYesNo ('existing_auth_server_field_clean_domain ' ,
15571557 $ CFG_GLPI ['existing_auth_server_field_clean_domain ' ]);
1558- echo "</td></tr> \n " ;
1558+ echo "</td></tr> " ;
15591559
15601560 echo "<tr class='tab_bg_2'> " ;
15611561 echo "<td class='center'> " . __ ('Surname ' ) . "</td> " ;
1562- echo "<td><input type='text' name='realname_ssofield' value=' " .
1562+ echo "<td><input type='text' class='form-control' name='realname_ssofield' value=' " .
15631563 $ CFG_GLPI ['realname_ssofield ' ]."'></td> " ;
1564- echo "</tr> \n " ;
1564+ echo "</tr> " ;
15651565
15661566 echo "<tr class='tab_bg_2'> " ;
15671567 echo "<td class='center'> " . __ ('First name ' ) . "</td> " ;
1568- echo "<td><input type='text' name='firstname_ssofield' value=' " .
1568+ echo "<td><input type='text' class='form-control' name='firstname_ssofield' value=' " .
15691569 $ CFG_GLPI ['firstname_ssofield ' ]."'></td> " ;
1570- echo "</tr> \n " ;
1570+ echo "</tr> " ;
15711571
15721572 echo "<tr class='tab_bg_2'> " ;
15731573 echo "<td class='center'> " . __ ('Comments ' ) . "</td> " ;
1574- echo "<td><input type='text' name='comment_ssofield' value=' " .
1574+ echo "<td><input type='text' class='form-control' name='comment_ssofield' value=' " .
15751575 $ CFG_GLPI ['comment_ssofield ' ]."'> " ;
15761576 echo "</td> " ;
1577- echo "</tr> \n " ;
1577+ echo "</tr> " ;
15781578
15791579 echo "<tr class='tab_bg_2'> " ;
15801580 echo "<td class='center'> " . __ ('Administrative number ' ) . "</td> " ;
1581- echo "<td><input type='text' name='registration_number_ssofield' value=' " .
1581+ echo "<td><input type='text' class='form-control' name='registration_number_ssofield' value=' " .
15821582 $ CFG_GLPI ['registration_number_ssofield ' ]."'> " ;
15831583 echo "</td> " ;
1584- echo "</tr> \n " ;
1584+ echo "</tr> " ;
15851585
15861586 echo "<tr class='tab_bg_2'> " ;
15871587 echo "<td class='center'> " . _n ('Email ' , 'Emails ' , 1 ) . "</td> " ;
1588- echo "<td><input type='text' name='email1_ssofield' value=' " .$ CFG_GLPI ['email1_ssofield ' ]."'> " ;
1588+ echo "<td><input type='text' class='form-control' name='email1_ssofield' value=' " .$ CFG_GLPI ['email1_ssofield ' ]."'> " ;
15891589 echo "</td> " ;
1590- echo "</tr> \n " ;
1590+ echo "</tr> " ;
15911591
15921592 echo "<tr class='tab_bg_2'> " ;
15931593 echo "<td class='center'> " . sprintf (__ ('%1$s %2$s ' ), _n ('Email ' , 'Emails ' , 1 ), '2 ' ) . "</td> " ;
1594- echo "<td><input type='text' name='email2_ssofield' value=' " .$ CFG_GLPI ['email2_ssofield ' ]."'> " ;
1594+ echo "<td><input type='text' class='form-control' name='email2_ssofield' value=' " .$ CFG_GLPI ['email2_ssofield ' ]."'> " ;
15951595 echo "</td> " ;
1596- echo "</tr> \n " ;
1596+ echo "</tr> " ;
15971597
15981598 echo "<tr class='tab_bg_2'> " ;
15991599 echo "<td class='center'> " . sprintf (__ ('%1$s %2$s ' ), _n ('Email ' , 'Emails ' , 1 ), '3 ' ) . "</td> " ;
1600- echo "<td><input type='text' name='email3_ssofield' value=' " .$ CFG_GLPI ['email3_ssofield ' ]."'> " ;
1600+ echo "<td><input type='text' class='form-control' name='email3_ssofield' value=' " .$ CFG_GLPI ['email3_ssofield ' ]."'> " ;
16011601 echo "</td> " ;
1602- echo "</tr> \n " ;
1602+ echo "</tr> " ;
16031603
16041604 echo "<tr class='tab_bg_2'> " ;
16051605 echo "<td class='center'> " . sprintf (__ ('%1$s %2$s ' ), _n ('Email ' , 'Emails ' , 1 ), '4 ' ) . "</td> " ;
1606- echo "<td><input type='text' name='email4_ssofield' value=' " .$ CFG_GLPI ['email4_ssofield ' ]."'> " ;
1606+ echo "<td><input type='text' class='form-control' name='email4_ssofield' value=' " .$ CFG_GLPI ['email4_ssofield ' ]."'> " ;
16071607 echo "</td> " ;
1608- echo "</tr> \n " ;
1608+ echo "</tr> " ;
16091609
16101610 echo "<tr class='tab_bg_2'> " ;
16111611 echo "<td class='center'> " . Phone::getTypeName (1 ) . "</td> " ;
1612- echo "<td><input type='text' name='phone_ssofield' value=' " .$ CFG_GLPI ['phone_ssofield ' ]."'> " ;
1612+ echo "<td><input type='text' class='form-control' name='phone_ssofield' value=' " .$ CFG_GLPI ['phone_ssofield ' ]."'> " ;
16131613 echo "</td> " ;
1614- echo "</tr> \n " ;
1614+ echo "</tr> " ;
16151615
16161616 echo "<tr class='tab_bg_2'> " ;
16171617 echo "<td class='center'> " . __ ('Phone 2 ' ) . "</td> " ;
1618- echo "<td><input type='text' name='phone2_ssofield' value=' " .$ CFG_GLPI ['phone2_ssofield ' ]."'> " ;
1618+ echo "<td><input type='text' class='form-control' name='phone2_ssofield' value=' " .$ CFG_GLPI ['phone2_ssofield ' ]."'> " ;
16191619 echo "</td> " ;
1620- echo "</tr> \n " ;
1620+ echo "</tr> " ;
16211621
16221622 echo "<tr class='tab_bg_2'> " ;
16231623 echo "<td class='center'> " . __ ('Mobile phone ' ) . "</td> " ;
1624- echo "<td><input type='text' name='mobile_ssofield' value=' " .$ CFG_GLPI ['mobile_ssofield ' ]."'> " ;
1624+ echo "<td><input type='text' class='form-control' name='mobile_ssofield' value=' " .$ CFG_GLPI ['mobile_ssofield ' ]."'> " ;
16251625 echo "</td> " ;
1626- echo "</tr> \n " ;
1626+ echo "</tr> " ;
16271627
16281628 echo "<tr class='tab_bg_2'> " ;
16291629 echo "<td class='center'> " . _x ('person ' , 'Title ' ) . "</td> " ;
1630- echo "<td><input type='text' name='title_ssofield' value=' " .$ CFG_GLPI ['title_ssofield ' ]."'> " ;
1630+ echo "<td><input type='text' class='form-control' name='title_ssofield' value=' " .$ CFG_GLPI ['title_ssofield ' ]."'> " ;
16311631 echo "</td> " ;
1632- echo "</tr> \n " ;
1632+ echo "</tr> " ;
16331633
16341634 echo "<tr class='tab_bg_2'> " ;
16351635 echo "<td class='center'> " . _n ('Category ' , 'Categories ' , 1 ) . "</td> " ;
1636- echo "<td><input type='text' name='category_ssofield' value=' " .
1636+ echo "<td><input type='text' class='form-control' name='category_ssofield' value=' " .
16371637 $ CFG_GLPI ['category_ssofield ' ]."'></td> " ;
1638- echo "</tr> \n " ;
1638+ echo "</tr> " ;
16391639
16401640 echo "<tr class='tab_bg_2'> " ;
16411641 echo "<td class='center'> " . __ ('Language ' ) . "</td> " ;
1642- echo "<td><input type='text' name='language_ssofield' value=' " .
1642+ echo "<td><input type='text' class='form-control' name='language_ssofield' value=' " .
16431643 $ CFG_GLPI ['language_ssofield ' ]."'></td></tr> " ;
16441644
16451645 echo "<tr class='tab_bg_1'><td class='center' colspan='2'> " ;
16461646 echo "<input type='submit' name='update' class='btn btn-primary' value= \"" .__s ('Save ' )."\" > " ;
1647- echo "</td></tr> \n " ;
1647+ echo "</td></tr> " ;
16481648
1649- echo "</table></div> \n " ;
1649+ echo "</table></div> " ;
16501650 Html::closeForm ();
16511651 }
16521652
0 commit comments