mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3537 run_query : fix query suggestion button
Was throwing plain old HTML Now use standard button component, and a new HtmlFactory to avoid calling \WebPage::GetP Also change "use this query" behavior : now also submits the form directly And : added a TODO 3.0.0 for the "query examples" buttons (will be done later)
This commit is contained in:
33
sources/application/UI/Base/Component/Html/HtmlFactory.php
Normal file
33
sources/application/UI/Base/Component/Html/HtmlFactory.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (C) 2013-2020 Combodo SARL
|
||||
*
|
||||
* This file is part of iTop.
|
||||
*
|
||||
* iTop is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* iTop is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\Html;
|
||||
|
||||
|
||||
/**
|
||||
* @package Combodo\iTop\Application\UI\Base\Component\Html
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class HtmlFactory
|
||||
{
|
||||
public static function MakeP(string $sContent): Html
|
||||
{
|
||||
return new Html('<p>'.$sContent.'</p>');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user