Mercurial > public > sg101
annotate gpp/templates/weblinks/add_link.html @ 197:2baadae33f2e
Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 04:32:24 +0000 |
parents | 6a5549c2efb5 |
children | daa2916f5b34 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'weblinks/base.html' %} |
gremmie@1 | 2 {% block title %}Web Links: Add Link{% endblock %} |
gremmie@1 | 3 {% block weblinks_content %} |
gremmie@1 | 4 <h3>Add Link</h3> |
gremmie@1 | 5 {% if add_form %} |
bgneal@194 | 6 <form action="." method="post">{% csrf_token %} |
gremmie@1 | 7 <table> |
gremmie@1 | 8 {{ add_form.as_table }} |
gremmie@1 | 9 <tr><td> </td><td><input type="submit" value="Add Link" /> |
bgneal@4 | 10 <a href="{% url weblinks-main %}">Cancel</a> |
bgneal@4 | 11 </td></tr> |
gremmie@1 | 12 </table> |
gremmie@1 | 13 </form> |
gremmie@1 | 14 <br /> |
gremmie@1 | 15 {% else %} |
gremmie@1 | 16 <p><strong>Thank you for submitting a link!</strong></p> |
gremmie@1 | 17 <p>Your link has been submitted for review to the site staff.</p> |
gremmie@1 | 18 {% endif %} |
gremmie@1 | 19 {% endblock %} |