Set link to new liaison management form. See #342

- Legacy-Id: 2378
This commit is contained in:
Emilio A. Sánchez López 2010-07-23 10:48:10 +00:00
parent eec8de1efe
commit fbbf182329
3 changed files with 5 additions and 3 deletions

View file

@ -9,7 +9,7 @@ info_dict = {
# there's an opportunity for date-based filtering.
urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list', info_dict),
url(r'^$', 'object_list', info_dict, name='liaison_list'),
(r'^(?P<object_id>\d+)/$', 'object_detail', info_dict),
)

View file

@ -1,6 +1,7 @@
# Copyright The IETF Trust 2007, All Rights Reserved
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.utils import simplejson
@ -18,6 +19,7 @@ def add_liaison(request):
files = request.FILES)
if form.is_valid():
form.save()
return HttpResponseRedirect(reverse('liaison_list'))
else:
form = liaison_form_factory(request)

View file

@ -10,7 +10,7 @@
<h1>Liaison Statements</h1>
<p><a href="https://datatracker.ietf.org/cgi-bin/ls/liaison_manager.cgi">Liaison Statement Manager</a> (for liaison contacts only; password required)</p>
<p><a href="{% url add_liaison %}">Liaison Statement Manager</a> (for liaison contacts only; password required)</p>
<table class="ietf-table" width="100%">
<tr><th width="9%">Date</th><th width="20%">From</th><th width="20%">To</th><th width="50%">Title</th></tr>