format_error

   Usages of this macro
... in utilities.naml
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<macro name="format_error" dot_parameter="message" parameters="prompt">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="message"><n.message/></n.set_var.>
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="prompt"><n.prompt/></n.set_var.>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_empty
Binary
Namespace: BasicNamespace
Parameters: value
.trim
Binary
Namespace: BasicNamespace
Parameters: text
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="message">
        <then>
            <table class="error-message" style="width:100%">
                <tr>
                    <td style="padding:.4em;width:40px;">
                        <img src="/images/icon_alert.png" class="image32"/>
                    </td>
                    <td style="padding:.4em;">
                        <strong><n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="message"/></strong>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="prompt">
                            <then><div style="padding-top:.3em"><n.prompt/></div></then>
                        </n.if.not.is_null.var>
                    </td>
                </tr>
            </table>
        </then>
    </n.if.not.is_empty.trim.var>
</macro>