save_assignment

NAML documentation   Watch a video
   Usages of this macro
... in workgroup.naml
679
680
681
682
683
684
685
686
687
688
689
690
691
692
<macro name="save_assignment" requires="node_editor,servlet">
    <n.set_local_node
Macro
Parameters: node
.edited_node
Binary
Namespace: NodeEditorNamespace
Parameters: do
.topic_or_app
Macro
Requires: node
Parameters: do
/>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_be_assigned_to
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
>
        <then.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.assignment_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
>
            <then.local_node
Macro
Parameters: do
.>
                <n.assign
Binary
Namespace: NodeNamespaceExt
Parameters: assignee, priority
>
                    <assignee><n.get_user_from_id
Binary
Namespace: NabbleNamespace
Parameters: user_id, do
 user_id="[n.assignment_assignee_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/]" /></assignee>
                    <priority><n.assignment_priority_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></priority>
                </n.assign>
            </then.local_node.>
            <else.local_node
Macro
Parameters: do
.unassign
Binary
Namespace: NodeNamespaceExt
/>
        </then.if.assignment_field.value>
    </n.if.visitor.can_be_assigned_to.local_node>
</macro>