Merge lp:~effie-jayx/loco-team-portal/formfixed into lp:~ltp-devs/loco-team-portal/0.1

Proposed by Efrain Valles
Status: Merged
Merged at revision: not available
Proposed branch: lp:~effie-jayx/loco-team-portal/formfixed
Merge into: lp:~ltp-devs/loco-team-portal/0.1
Diff against target: None lines
To merge this branch: bzr merge lp:~effie-jayx/loco-team-portal/formfixed
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+7675@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Efrain Valles (effie-jayx) wrote :

This fixes the team_update.html and added some variables

Please review

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/teams/views.py'
2--- loco_directory/teams/views.py 2009-06-19 09:34:07 +0000
3+++ loco_directory/teams/views.py 2009-06-19 11:36:10 +0000
4@@ -31,5 +31,5 @@
5 if request.user != 'AnonymousUser' and \
6 is_user_team_admin(request.user, team.lp_name):
7 return render('teams/team_update.html',
8- {'form': UpdateTeamForm()})
9+ {'form': UpdateTeamForm(instance=team),'team':team, 'user':request.user })
10 return render('teams/team_detail.html', context, context_instance=RequestContext(request))
11
12=== modified file 'loco_directory/templates/teams/team_update.html'
13--- loco_directory/templates/teams/team_update.html 2009-04-03 10:40:48 +0000
14+++ loco_directory/templates/teams/team_update.html 2009-06-19 11:36:10 +0000
15@@ -1,7 +1,7 @@
16 {% extends "base.html" %}
17 {% load i18n %}
18
19-{% block title %}{% trans team.name %}{% endblock %}
20+{% block title %}{{ team.name }}{% endblock %}
21
22 {% block content %}
23

Subscribers

People subscribed via source and target branches