message_control

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "message_control".
... in message_control.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<override_macro name="message_control" requires="node_page">
    <div class="field-box light-border-color">
        <div class="second-font field-title"><t>Message</t></div>
        <div class="weak-color">
            <n.if.visitor.is_registered>
                <then>
                    <n.html_format_field.checkbox />
                    <label for="[n.html_format_field.name/]"><t>Message is in HTML Format</t></label>
                    &nbsp;|&nbsp;
                    <n.jsm_checkboxnew_field.>
                        <n.jsm_checkbox/>
                        <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/icone_new.gif" title="[t]Novo[/t]" alt="[t]Novo[/t]"/></label>
                    </n.jsm_checkboxnew_field.>
                    
                    <n.jsm_checkboxfull_field.>
                        <n.jsm_checkbox/>
                        <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/success.png" title="[t]Cheio[/t]" alt="[t]Cheio[/t]"/></label>
                    </n.jsm_checkboxfull_field.>
                    
                    <n.jsm_checkboxnormal_field.>
                        <n.jsm_checkbox/>
                        <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconmark.png" title="[t]Normal[/t]" alt="[t]Normal[/t]"/></label>
                    </n.jsm_checkboxnormal_field.>
                    
                    <n.jsm_checkboxhelp_field.>
                        <n.jsm_checkbox/>
                        <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconehelp.png" title="[t]Ajuda[/t]" alt="[t]Ajuda[/t]"/></label>
                    </n.jsm_checkboxhelp_field.>
                    
                    <n.jsm_checkboxexclama_field.>
                        <n.jsm_checkbox/>
                        <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconexclama.png" title="[t]Exclamação[/t]" alt="[t]Exclamação[/t]"/></label>
                    </n.jsm_checkboxexclama_field.>
                    
                    <n.if.visitor.is_site_admin>
                        <then>
                              <n.jsm_checkboxadm_field.>
                                  <n.jsm_checkbox/>
                                  <label for="[n.name/]"><img src="http://jsmastronomy.245.s1.nabble.com/file/n588/iconadmin.png" title="[t]Admin[/t]" alt="[t]Admin[/t]"/></label>
                              </n.jsm_checkboxadm_field.>
                        </then>
                    </n.if.visitor.is_site_admin>                    
    
                    
                    <br/>
                    <div style="margin:.1em 0">
                        <n.editor_toolbar
                            textarea_id="[n.message_field.name/]"
                            original_text="[n.if.page_node.is_post][then.page_node.message_quoted/][/n.if.page_node.is_post]"
                        />
                    </div>
                </then>
            </n.if.visitor.is_registered>
            <n.message_field.textarea wrap="SOFT" tabindex="2" style="min-width:30em;max-width:62em;width:100%;height:20em;" />
            <n.new_post_extra_fields/>
        </div>
    </div>
</override_macro>
Overrides default macro
... in reply.naml
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<macro name="message_control" requires="node_page">
    <div class="field-box light-border-color">
        <div class="second-font field-title"><t>Message</t></div>
        <div class="weak-color">
            <n.if.visitor.is_registered>
                <then>
                    <n.html_format_field.checkbox />
                    <label for="[n.html_format_field.name/]"><t>Message is in HTML Format</t></label><br/>
                    <div style="margin:.1em 0">
                        <n.editor_toolbar
                            textarea_id="[n.message_field.name/]"
                            original_text="[n.if.page_node.is_post][then.page_node.message_quoted/][/n.if.page_node.is_post]"
                        />
                    </div>
                </then>
            </n.if.visitor.is_registered>
            <n.message_field.textarea wrap="SOFT" tabindex="2" style="min-width:30em;max-width:55em;width:100%;height:20em;" />
            <n.new_post_extra_fields/>
        </div>
    </div>
</macro>