HTML fix
This commit is contained in:
parent
62504a4418
commit
8f6376cfd6
|
@ -965,6 +965,7 @@ class accountContainer {
|
||||||
private function printPasswordPromt() {
|
private function printPasswordPromt() {
|
||||||
echo "<div id=\"passwordDialog\" class=\"hidden\">\n";
|
echo "<div id=\"passwordDialog\" class=\"hidden\">\n";
|
||||||
echo '<div id="passwordDialogMessageArea"></div>';
|
echo '<div id="passwordDialogMessageArea"></div>';
|
||||||
|
$printContainer = false;
|
||||||
$container = new htmlTable();
|
$container = new htmlTable();
|
||||||
// password fields
|
// password fields
|
||||||
$container->addElement(new htmlOutputText(_('Password')));
|
$container->addElement(new htmlOutputText(_('Password')));
|
||||||
|
@ -981,6 +982,7 @@ class accountContainer {
|
||||||
$moduleContainer = new htmlTable();
|
$moduleContainer = new htmlTable();
|
||||||
foreach ($this->module as $name => $module) {
|
foreach ($this->module as $name => $module) {
|
||||||
if (($module instanceof passwordService) && $module->managesPasswordAttributes()) {
|
if (($module instanceof passwordService) && $module->managesPasswordAttributes()) {
|
||||||
|
$printContainer = true;
|
||||||
$moduleContainer->addElement(new htmlInputCheckbox('password_cb_' . $name, true));
|
$moduleContainer->addElement(new htmlInputCheckbox('password_cb_' . $name, true));
|
||||||
$buttonImage = $module->getIcon();
|
$buttonImage = $module->getIcon();
|
||||||
if ($buttonImage != null) {
|
if ($buttonImage != null) {
|
||||||
|
@ -995,7 +997,9 @@ class accountContainer {
|
||||||
$container->addElement(new htmlSpacer(null, '10px'), true);
|
$container->addElement(new htmlSpacer(null, '10px'), true);
|
||||||
// generate HTML
|
// generate HTML
|
||||||
$tabindex = 2000;
|
$tabindex = 2000;
|
||||||
parseHtml(null, $container, array(), false, $tabindex, $this->type);
|
if ($printContainer) {
|
||||||
|
parseHtml(null, $container, array(), false, $tabindex, $this->type);
|
||||||
|
}
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue