Verified Commit 0084126a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(plugins) Adapt code to core changes on renderInputField

issue #6061
Showing with 3 additions and 3 deletions
+3 -3
...@@ -27,7 +27,7 @@ class CertificateOrderedArrayAttribute extends OrderedArrayAttribute ...@@ -27,7 +27,7 @@ class CertificateOrderedArrayAttribute extends OrderedArrayAttribute
$img = $this->renderInputField( $img = $this->renderInputField(
'image', $id.'_download_'.$key, 'image', $id.'_download_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=document-save&size=16', 'src' => 'geticon.php?context=actions&icon=document-save&size=16',
'title' => _('Download'), 'title' => _('Download'),
'alt' => _('Download'), 'alt' => _('Download'),
'class' => 'center' 'class' => 'center'
......
...@@ -118,7 +118,7 @@ class DhcpSectionsAttribute extends DialogOrderedArrayAttribute ...@@ -118,7 +118,7 @@ class DhcpSectionsAttribute extends DialogOrderedArrayAttribute
$img = $this->renderInputField( $img = $this->renderInputField(
'image', $id.'_insertDHCP_'.$key, 'image', $id.'_insertDHCP_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=document-new&size=16', 'src' => 'geticon.php?context=actions&icon=document-new&size=16',
'title' => _('Insert new DHCP section'), 'title' => _('Insert new DHCP section'),
'alt' => _('Insert new DHCP section'), 'alt' => _('Insert new DHCP section'),
'class' => 'center', 'class' => 'center',
......
...@@ -56,7 +56,7 @@ class WebauthnRegistrationsAttribute extends OrderedArrayAttribute ...@@ -56,7 +56,7 @@ class WebauthnRegistrationsAttribute extends OrderedArrayAttribute
function renderButtons () function renderButtons ()
{ {
$id = $this->getHtmlId(); $id = $this->getHtmlId();
$buttons = $this->renderInputField('button', 'add'.$id, ['value' => '{msgPool type=addButton}', 'formnovalidate' => 'formnovalidate', 'class' => 'subattribute', 'onclick' => 'webauthnNewRegistration()']); $buttons = $this->renderInputField('button', 'add'.$id, ['value' => msgPool::addButton(FALSE), 'formnovalidate' => 'formnovalidate', 'class' => 'subattribute', 'onclick' => 'webauthnNewRegistration()']);
return $buttons; return $buttons;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment