Login  Register
Customized macros
Search macros
View logs

new_group_panel

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 "new_group_panel".
... in manage_users_and_groups.naml
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<macro name="new_group_panel">
    <n.put_in_head.>
        <script type="text/javascript">
            function checkGroupName() {
                var name = $('#group-name').val();
                var isValidName = name && Nabble.trim(name).length > 0 && name != 'Authors' && name != 'authors';
                if (!isValidName) {
                    alert('<t>The name of the group is not valid.</t>');
                    return false;
                }
                return true;
            }
        </script>
    </n.put_in_head.>
    <n.form. onsubmit="return checkGroupName()">
        <div class="second-font field-title nowrap" style="margin:0">
            <t>Group Name:</t>
            <input id="group-name" type="text" name="group"/>
        </div>
        <n.short_description/>
        <input type="hidden" name="group" value="[n.selected_group/]"/>
        <n.users_field.textarea wrap="SOFT" style="width:100%;height:25em;margin:.3em 0" />
        <input type="submit" value="[t]Save Changes[/t]"/>
    </n.form.>
</macro>