Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Aug 22, 2024
1 parent bad1b3f commit 67a742f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lam/lib/modules/fixed_ip.inc
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class fixed_ip extends baseModule {
// add existing host entry
if (!empty($this->hostCache)) {
$return->addVerticalSpacer('2rem');
$addHostButton = new htmlAccountPageButton(get_class($this), 'addHost', 'add', _('Add existing host'));
$addHostButton = new htmlAccountPageButton(static::class, 'addHost', 'add', _('Add existing host'));
$return->add($addHostButton, 12);
}
return $return;
Expand Down Expand Up @@ -604,8 +604,8 @@ class fixed_ip extends baseModule {
$select->setHasDescriptiveElements(true);
$return->add($select, 12);
$return->addVerticalSpacer('2rem');
$return->addLabel(new htmlAccountPageButton(get_class($this), 'attributes', 'addHost', _('Add')));
$return->addField(new htmlAccountPageButton(get_class($this), 'attributes', 'cancel', _('Cancel')));
$return->addLabel(new htmlAccountPageButton(static::class, 'attributes', 'addHost', _('Add')));
$return->addField(new htmlAccountPageButton(static::class, 'attributes', 'cancel', _('Cancel')));
return $return;
}

Expand Down
8 changes: 4 additions & 4 deletions lam/lib/modules/freeRadius.inc
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class freeRadius extends baseModule {
$return->addLabel(new htmlOutputText('Expiration date'));
$radiusExpirationList = new htmlGroup();
$radiusExpirationList->addElement(new htmlOutputText($radiusExpiration . '     ', false));
$radiusExpirationList->addElement(new htmlAccountPageButton(get_class($this), 'expiration', 'change', _('Change')));
$radiusExpirationList->addElement(new htmlAccountPageButton(static::class, 'expiration', 'change', _('Change')));
$radiusExpirationList->addElement(new htmlHelpLink('radiusExpiration'));
$return->addField($radiusExpirationList);
}
Expand Down Expand Up @@ -536,13 +536,13 @@ class freeRadius extends baseModule {

$return->addVerticalSpacer('2rem');
$buttons = new htmlGroup();
$buttons->addElement(new htmlAccountPageButton(get_class($this), 'attributes', 'change' . $attr, _('Change')));
$buttons->addElement(new htmlAccountPageButton(static::class, 'attributes', 'change' . $attr, _('Change')));
$buttons->addElement(new htmlSpacer('0.5rem', null));
if (isset($this->attributes[$attr][0])) {
$buttons->addElement(new htmlAccountPageButton(get_class($this), 'attributes', 'del' . $attr, _('Remove')));
$buttons->addElement(new htmlAccountPageButton(static::class, 'attributes', 'del' . $attr, _('Remove')));
$buttons->addElement(new htmlSpacer('0.5rem', null));
}
$buttons->addElement(new htmlAccountPageButton(get_class($this), 'attributes', 'back' . $attr, _('Cancel')));
$buttons->addElement(new htmlAccountPageButton(static::class, 'attributes', 'back' . $attr, _('Cancel')));
$return->add($buttons, 12);
return $return;
}
Expand Down

0 comments on commit 67a742f

Please sign in to comment.