+++ /dev/null
-{% extends "accounts/base.html" %}
-
-{% block js %}
- <script type="text/javascript">
- $('.search-field').keyup(function(){
- var children = $('#' + $(this).data('target') + ' ul').children();
- var search = $(this).val();
- console.log(children);
- console.log($(this).data('target'));
- for(var i=0; i<children.length; i++)
- if($(children[i]).html().match(new RegExp(search, 'i')) == null)
- $(children[i]).hide();
- else
- $(children[i]).show();
- });
- </script>
-{% endblock %}
-
-{% block content %}
-{% regroup groups by get_kind_display as group_list %}
-{% for group in group_list %}
-<div class="span3 well" id="{{ group.grouper }}_type">
- <h5>{{ group.grouper }}</h5>
- <input type="text" class="search-field input-block-level" data-target="{{ group.grouper }}_type" />
- <ul class="unstyled">
- {% for item in group.list %}
- <li><a href="{% url 'accounts:group-home' item.short %}">{{ item }}</a></li>
- {% endfor %}
- </ul>
-</div>
-{% endfor %}
-{% endblock %}