format_error

NAML documentation   Watch a video
   Usages of this macro
... in utilities.naml
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<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>