68 lines
2.6 KiB
HTML
68 lines
2.6 KiB
HTML
<template>
|
|
<lightning-card title="CLM Request Preview" icon-name="standard:snippet">
|
|
<div class="panel">
|
|
<div class="controls">
|
|
<lightning-combobox
|
|
label="CLM Account"
|
|
value={accountCode}
|
|
options={accountOptions}
|
|
onchange={handleAccountChange}
|
|
disabled={isBusy}
|
|
></lightning-combobox>
|
|
<lightning-combobox
|
|
label="Letter Type"
|
|
value={letterCode}
|
|
options={letterOptions}
|
|
onchange={handleLetterChange}
|
|
disabled={isBusy}
|
|
></lightning-combobox>
|
|
</div>
|
|
|
|
<div class="button-row">
|
|
<lightning-button
|
|
label="Refresh Preview"
|
|
onclick={refreshAll}
|
|
disabled={isBusy}
|
|
></lightning-button>
|
|
</div>
|
|
|
|
<template if:true={message}>
|
|
<div class={resultClass}>
|
|
<p>{message}</p>
|
|
</div>
|
|
</template>
|
|
|
|
<template if:true={hasPreview}>
|
|
<div class="section">
|
|
<h3 class="section-title">Effective Settings</h3>
|
|
<p class="hint">Account: {preview.accountDisplayName}</p>
|
|
<p class="hint">Letter: {preview.letterDisplayName}</p>
|
|
<p class="hint">Template Href: {preview.templateDocHref}</p>
|
|
<p class="hint">Destination Folder Href: {preview.destinationFolderHref}</p>
|
|
<p class="hint">Destination Filename: {preview.destinationDocName}</p>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3 class="section-title">Payload JSON</h3>
|
|
<pre class="code-block">{preview.payloadJson}</pre>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3 class="section-title">Data XML</h3>
|
|
<pre class="code-block">{preview.dataXml}</pre>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3 class="section-title">CLM API Endpoint</h3>
|
|
<pre class="code-block">POST {preview.mergeTaskEndpointUrl}</pre>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3 class="section-title">CLM Request Body</h3>
|
|
<pre class="code-block">{preview.requestBodyJson}</pre>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
</lightning-card>
|
|
</template>
|