From 4541aa4446a762a8cf56a43794175963dd649c8b Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 22 Dec 2020 18:20:36 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03537=20run=5Fquery=20:=20use=20H2=20for?= =?UTF-8?q?=20content=20titles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/run_query.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pages/run_query.php b/pages/run_query.php index edb67ed34..be97399d6 100644 --- a/pages/run_query.php +++ b/pages/run_query.php @@ -20,8 +20,6 @@ use Combodo\iTop\Application\UI\Base\Component\Alert\AlertFactory; use Combodo\iTop\Application\UI\Base\Component\Button\ButtonFactory; use Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection; -use Combodo\iTop\Application\UI\Base\Component\Field\Field; -use Combodo\iTop\Application\UI\Base\Component\Field\FieldFactory; use Combodo\iTop\Application\UI\Base\Component\FieldSet\FieldSet; use Combodo\iTop\Application\UI\Base\Component\Form\Form; use Combodo\iTop\Application\UI\Base\Component\Html\Html; @@ -174,14 +172,11 @@ try $oHiddenParams = new Html($oAppContext->GetForForm()); $oQueryForm->AddSubBlock($oHiddenParams); + $oQueryTitle = new Html('

'.Dict::S('UI:RunQuery:ExpressionToEvaluate').'

'); + $oQueryForm->AddSubBlock($oQueryTitle); $oQueryTextArea = new TextArea(utils::HtmlEntities($sExpression), 'expression', 120, 8); $oQueryTextArea->SetName('expression'); - $oQueryField = FieldFactory::MakeFromObject( - Dict::S('UI:RunQuery:ExpressionToEvaluate'), - $oQueryTextArea, - Field::ENUM_FIELD_LAYOUT_LARGE - ); - $oQueryForm->AddSubBlock($oQueryField); + $oQueryForm->AddSubBlock($oQueryTextArea); $oQuerySubmit = ButtonFactory::MakeForPrimaryAction( Dict::S('UI:Button:Evaluate'), @@ -202,7 +197,7 @@ EOF if (count($aArgs) > 0) { $oP->add("
\n"); - $oP->add("

Query arguments

\n"); + $oP->add("

Query arguments

\n"); foreach ($aArgs as $sParam => $sValue) { $oP->p("$sParam: \n"); } @@ -210,7 +205,7 @@ EOF } if ($oFilter) { - $oP->add("

Query results

\n"); + $oP->add("

Query results

\n"); $oResultBlock = new DisplayBlock($oFilter, 'list', false); $oResultBlock->Display($oP, 'runquery');