From 47560ffcf8c2c201d76ef76866be53fb918c1672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 1 Oct 2018 16:46:02 +0200 Subject: [PATCH] :sparkles: feat(simpleplugin) Set a CSS class for dialog buttons Buttons which opens a dialog should now all have the dialog css class. The only exception is the ButtonAttribute for now issue #5900 --- include/simpleplugin/class_dialogAttributes.inc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/include/simpleplugin/class_dialogAttributes.inc b/include/simpleplugin/class_dialogAttributes.inc index d0f35ec3d..f9afa2314 100644 --- a/include/simpleplugin/class_dialogAttributes.inc +++ b/include/simpleplugin/class_dialogAttributes.inc @@ -255,7 +255,10 @@ class DialogAttribute extends SetAttribute } $buttons .= $this->renderInputField( 'submit', 'add'.$id.'_dialog', - array('value' => $dialogButtonValue) + array( + 'class' => 'dialog', + 'value' => $dialogButtonValue + ) ); $buttons .= $this->renderInputField( 'submit', 'del'.$id, @@ -333,7 +336,10 @@ class DialogOrderedArrayAttribute extends OrderedArrayAttribute $id = $this->getHtmlId(); return $this->renderInputField( 'submit', 'add'.$id.'_dialog', - array('value' => '{msgPool type=addButton}') + array( + 'class' => 'dialog', + 'value' => '{msgPool type=addButton}' + ) ); } @@ -611,7 +617,10 @@ class MailsAttribute extends DialogAttribute ); $buttons .= $this->renderInputField( 'submit', 'add'.$id.'_dialog', - array('value' => '{msgPool type=addButton} (from list)') + array( + 'class' => 'dialog', + 'value' => '{msgPool type=addButton} (from list)' + ) ); $buttons .= $this->renderInputField( 'submit', 'del'.$id, @@ -764,7 +773,7 @@ class UserAttribute extends DialogButtonAttribute $display .= $this->renderInputField( 'image', $id.'_dialog', array( - 'class' => 'center', + 'class' => 'center dialog', 'src' => 'geticon.php?context=actions&icon=document-edit&size=16', 'title' => _('Edit'), 'alt' => _('Edit') -- GitLab