Added exist_is_error flag and showing api_request in Preorder

This commit is contained in:
Frank Schubert
2022-11-29 15:14:46 +01:00
parent b9db22d0b7
commit 9a87c00abb
6 changed files with 49 additions and 6 deletions
+11 -2
View File
@@ -293,9 +293,18 @@
</div>
</div>
</form>
<?php if($preorder->submit_type == "api" && $preorder->submit_request): ?>
<div class="card">
<div class="card-body">
<div class="form-group row">
<label class="col-lg-2 col-form-label">Raw API Request</label>
<div class="col-lg-10 text-monospace border" style="max-height: 512px; line-break: auto; overflow: auto; white-space: pre"><script>document.write(JSON.stringify(JSON.parse('<?=str_replace(["\n","\r"],"",$preorder->submit_request)?>'), null, "\t"));</script></div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>