show_people_filter

NAML documentation   Watch a video
   Usages of this macro
... in people.naml
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<macro name="show_people_filter" parameters="total_rows" requires="node_page">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <script type="text/javascript">
            $(document).ready(function() {
                function applyFilter() {
                    window.location = $('#filter').val();
                };
                $('#filter').change(applyFilter);
            });
        </script>
    </n.put_in_head.>
    <div class="nowrap float-left" style="margin-bottom:.3em">
        <b><t>Filter by group</t></b>
        <select id="filter">
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.allows_showing_members_of
Macro
Requires: node
Parameters: group
.registered_group
Binary
Namespace: NabbleNamespace
>
                <then.select_option
Macro
Parameters: text, selectedValue, value, class
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
/]" text="[t]Registered Users[/t]"/>
            </n.if.page_node.allows_showing_members_of.registered_group>
 
            <n.available_groups
Macro
Requires: node_page
Parameters: do
.loop
Macro
Requires: sequence
Parameters: by, do
.>
                <n.select_option
Macro
Parameters: text, selectedValue, value, class
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
.current_group
Binary
Namespace: GroupList
/]" selectedValue="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
.people_filter
Macro
Requires: servlet
/]" text="[n.current_group
Binary
Namespace: GroupList
/]"/>
            </n.available_groups.loop.>
        </select>
 
        <span class="bold" style="padding-left:1em">
            <n.one_or_many
Macro
Parameters: many_text, one_text, n
.total_rows>
                <one_text><t>user</t></one_text>
                <many_text><t>users</t></many_text>
            </n.one_or_many.total_rows>
        </span>
    </div>
</macro>