Added work# and campaign# to distinguish works/campaigns with the same name

pull/1/head
eric 2012-04-03 15:54:12 -04:00
parent 5d5c60993e
commit 40722074d1
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Any questions not covered here? Please email us at <a href="mailto:rights@gluej
<h2>Campaigns You Manage</h2> <h2>Campaigns You Manage</h2>
<dl> <dl>
{% for campaign in request.user.campaigns.all %} {% for campaign in request.user.campaigns.all %}
<dt>Work: <a href="{% url work work_id=campaign.work.id %}">{{campaign.work.title }}</a></dt> <dt>Work: <a href="{% url work work_id=campaign.work.id %}">{{campaign.work.title }}</a>&nbsp;&nbsp;&nbsp;(work #{{ campaign.work.id }})</dt>
<dd>Campaign: <a href="{% url manage_campaign campaign.id %}">{{ campaign.name }}</a><br /> <dd>Campaign: <a href="{% url manage_campaign campaign.id %}">{{ campaign.name }}</a><br />
Status: {{ campaign.status }} <br /> Status: {{ campaign.status }} <br />
Created: {{ campaign.created }}</dd> Created: {{ campaign.created }}</dd>
@ -31,7 +31,7 @@ Any questions not covered here? Please email us at <a href="mailto:rights@gluej
<h2>Works You Have Claimed</h2> <h2>Works You Have Claimed</h2>
<dl> <dl>
{% for claim in claims %} {% for claim in claims %}
<dt>Title: <a href="{% url work work_id=claim.work.id %}">{{claim.work.title }}</a></dt> <dt>Title: <a href="{% url work work_id=claim.work.id %}">{{claim.work.title }}</a>&nbsp;&nbsp;&nbsp;(work #{{ claim.work.id }})</dt>
<dd>Author: {{claim.work.author }} <dd>Author: {{claim.work.author }}
<br />On Behalf of: {{ claim.rights_holder.rights_holder_name }} <br />On Behalf of: {{ claim.rights_holder.rights_holder_name }}
<br />PSA #: {{ claim.rights_holder.id }} <br />PSA #: {{ claim.rights_holder.id }}
@ -53,7 +53,7 @@ Any questions not covered here? Please email us at <a href="mailto:rights@gluej
{% else %}{%if claim.campaigns %} {% else %}{%if claim.campaigns %}
<h3>Campaigns for this work</h3> <h3>Campaigns for this work</h3>
{% for campaign in claim.campaigns %} {% for campaign in claim.campaigns %}
<p>Name: {{ campaign.name }} {{ campaign.status }} (<a href="{% url manage_campaign campaign.id %}">manage campaign</a>)<br /> <p>Name: {{ campaign.name }} {{ campaign.status }} (<a href="{% url manage_campaign campaign.id %}">manage campaign</a>) &nbsp;&nbsp;&nbsp;(campaign #{{ campaign.id }})<br />
Created: {{ campaign.created }}<br /> Created: {{ campaign.created }}<br />
Manager(s): {% for user in campaign.managers.all %} <a href="{% url supporter user.username %}">{{ user.username }} </a> {% endfor %}</p> Manager(s): {% for user in campaign.managers.all %} <a href="{% url supporter user.username %}">{{ user.username }} </a> {% endfor %}</p>
<form method="POST" action="#">{% csrf_token %} <form method="POST" action="#">{% csrf_token %}
@ -71,7 +71,7 @@ Any questions not covered here? Please email us at <a href="mailto:rights@gluej
<h2>Rights Holders That You Administer</h2> <h2>Rights Holders That You Administer</h2>
<dl> <dl>
{% for rights_holder in request.user.rights_holder.all %} {% for rights_holder in request.user.rights_holder.all %}
<dt>Name: {{ rights_holder.rights_holder_name }}</dt> <dt>Name: {{ rights_holder.rights_holder_name }}&nbsp;&nbsp;&nbsp;(rights holder #{{ rights_holder.id }})</dt>
<dd>PSA #: {{ rights_holder.id }} <dd>PSA #: {{ rights_holder.id }}
<br />contact email: {{ rights_holder.email }}</dd> <br />contact email: {{ rights_holder.email }}</dd>
{% endfor %} {% endfor %}