Ignore:
Timestamp:
Jun 21, 2012, 3:38:52 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
9a2cd17
Parents:
b8d924e
git-author:
Alex Dehnert <adehnert@…> (06/21/12 03:38:52)
git-committer:
Alex Dehnert <adehnert@…> (06/21/12 03:38:52)
Message:

Populate note author and group in "Add note" link

The group detail page has a link to add a new note about the group.
Historically, this just linked straight to the generic "Add group note"
admin page. That page takes GET parameters to prefill fields, so we now
submit the author and group information. It's certainly not a fix to
ASA Trac #77, but it does make it a slightly less desperate need.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/template/groups/group_detail.html

    rb38a26a rbae2a5f  
    144144
    145145{% if perms.groups.add_groupnote %}
    146 <p><a href='{% url admin:groups_groupnote_add %}'>Add note</a></p>
     146<p><a href='{% url admin:groups_groupnote_add %}?author={{user.username|urlencode}}&amp;group={{group.pk}}'>Add note</a></p>
    147147{% endif %}
    148148
Note: See TracChangeset for help on using the changeset viewer.