Bladeren bron

updated wfs js panel examples

Piotr Labudda 8 jaren geleden
bovenliggende
commit
00dd6c6e36
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      SE/se-lib/Route/WfsJsRequestPanel.php

+ 3 - 3
SE/se-lib/Route/WfsJsRequestPanel.php

@@ -112,7 +112,7 @@ class Route_WfsJsRequestPanel extends RouteBase {
 				"	<!-- <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES_INIT/**</wfs:PropertyName> -->",
 				"	<wfs:PropertyName>default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
 			];
-			$exampleWfsRequestBody = "<wfs:Query>" . implode("\n", array_merge($listExampleProp['lvl1'], $exampleFltr)) . "</wfs:Query>";
+			$exampleWfsRequestBody = "<wfs:Query>" . "\n" . implode("\n", array_merge($listExampleProp['lvl1'], $exampleFltr)) . "\n" ."</wfs:Query>";
 
 			UI::startContainer();
 
@@ -136,7 +136,7 @@ class Route_WfsJsRequestPanel extends RouteBase {
 			echo UI::h('button', [ 'class' => "btn btn-primary", 'onClick' => "return sendWfsRequest(this)" ], "Wyslij");
 			echo UI::h('div', [ 'style' => "display:inline", 'id' => "wfs-example-btns" ]);
 			echo UI::h('details', [ 'style' => "padding:6px; background-color:#333; color:#fff", 'open' => "open" ], [
-				UI::h('summary', [ 'style' => "padding:0 3px; outline:none; cursor:pointer" ], "WFS Response"),
+				UI::h('summary', [ 'style' => "padding:0 3px; outline:none; cursor:pointer" ], "WFS Response converted to JSON"),
 				UI::h('pre', [ 'id' => 'wfsResponse', 'style' => "margin:0; font-size:x-small; border-radius:0" ], 'loading...'),
 			]);
 			echo UI::h('details', [ 'style' => "padding:6px; background-color:#68cbfd; color:#fff" ], [
@@ -167,7 +167,7 @@ class Route_WfsJsRequestPanel extends RouteBase {
 			]);
 			UI::endContainer();
 			$examples = array_map(function ($props) use ($exampleFltr) {
-				return "<wfs:Query>" . implode("\n", array_merge($props, $exampleFltr)) . "</wfs:Query>";
+				return "<wfs:Query>" . "\n" . implode("\n", array_merge($props, $exampleFltr)) . "\n" . "</wfs:Query>";
 			}, $listExampleProp);
 			echo UI::h('script', [], "
 				var examples = " . json_encode($examples) . ";