Fix Actions links in text mode

- Display them as text buttons
- Show the description
- Use css classes
Ref: 3255e4ad7b

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-03-08 15:42:30 +01:00
parent abe0ae75f6
commit 749d284f3e
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -32,8 +32,8 @@ class Text implements ActionLinksModesInterface
if (empty($value)) {
$value = $text;
}
return ' <input class="btn btn-link" type="submit" name="' . $name . '"'
return ' <button class="btn btn-link ' . $class . '" type="submit" name="' . $name . '"'
. ' value="' . htmlspecialchars($value) . '"'
. ' title="' . htmlspecialchars($text) . '">' . "\n";
. ' title="' . htmlspecialchars($text) . '">' . htmlspecialchars($text) . '</button>' . "\n";
}
}