2011-11-15 04:28:55 +00:00
|
|
|
{% extends "basedocumentation.html" %}
|
2011-11-18 14:22:21 +00:00
|
|
|
{% block base_js %}{% endblock %}
|
|
|
|
{% block extra_head %}
|
|
|
|
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/ui-lightness/jquery-ui.css" type="text/css" media="screen">
|
|
|
|
{{ form.media.css }}
|
|
|
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
|
|
|
|
{{ form.media.js }}
|
|
|
|
{% endblock %}
|
2011-11-15 04:28:55 +00:00
|
|
|
|
|
|
|
{% block doccontent %}
|
|
|
|
|
2011-11-18 18:27:26 +00:00
|
|
|
<h2>Rights Holder Admin</h2>
|
2011-11-15 04:28:55 +00:00
|
|
|
|
2011-11-18 18:27:26 +00:00
|
|
|
<h3> Create New Rights Holder </h3>
|
2011-11-15 04:28:55 +00:00
|
|
|
<form method="POST" action="#">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p }}
|
2011-11-17 19:35:29 +00:00
|
|
|
<input type="submit" name="create_rights_holder" value="Create" id="submit">
|
2011-11-15 04:28:55 +00:00
|
|
|
</form>
|
2011-11-15 23:20:29 +00:00
|
|
|
|
2011-11-18 18:27:26 +00:00
|
|
|
<h3> Accepted Rights Holders </h3>
|
|
|
|
<dl>
|
2011-11-15 04:28:55 +00:00
|
|
|
{% for rights_holder in rights_holders %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<dt>{{ rights_holder.rights_holder_name }}</dt>
|
2011-11-20 02:12:18 +00:00
|
|
|
<dd>PSA #: {{ rights_holder.id }}
|
|
|
|
<br />email: {{ rights_holder.email }}
|
|
|
|
<br />owner: <a href="{% url supporter supporter_username=rights_holder.owner %}">{{ rights_holder.owner }}</a></dd>
|
2011-11-18 14:22:21 +00:00
|
|
|
{% empty %}
|
|
|
|
<p>No rights holders have been accepted yet</p>
|
2011-11-15 04:28:55 +00:00
|
|
|
{% endfor %}
|
2011-11-18 18:27:26 +00:00
|
|
|
</dl>
|
2011-11-15 04:28:55 +00:00
|
|
|
|
2011-11-17 19:35:29 +00:00
|
|
|
{% if pending %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<h3> Pending Claims </h3>
|
2011-11-17 19:35:29 +00:00
|
|
|
<form method="POST" action="#">
|
|
|
|
{{ pending_formset.management_form }}
|
|
|
|
{% csrf_token %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<dl>
|
2011-11-17 19:35:29 +00:00
|
|
|
{% for claim, claim_form in pending %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<dt>Title: <a href="{% url work work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
|
|
|
<dd>Author: {{claim.work.author }}</dd>
|
|
|
|
<dd>By: {{ claim.user.username }}</dd>
|
|
|
|
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
|
|
|
<dd>PSA #: {{ claim.rights_holder.id }}</dd>
|
|
|
|
<dd>Date of Claim : {{ claim.created }}</dd>
|
|
|
|
<dd>Status: {{ claim.status }}</dd>
|
|
|
|
<dd> Change to:</dd> {{ claim_form.as_p }}
|
2011-11-17 19:35:29 +00:00
|
|
|
<input type="submit" name="set_claim_status" value="Set Claim Status" id="submit">
|
|
|
|
{% endfor %}
|
2011-11-18 18:27:26 +00:00
|
|
|
</dl>
|
2011-11-17 19:35:29 +00:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
2011-11-18 14:22:21 +00:00
|
|
|
|
2011-11-17 19:35:29 +00:00
|
|
|
{% if active_data.count %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<h3> Active Claims: {{ active_data.count }} </h3>
|
|
|
|
<dl>
|
2011-11-17 19:35:29 +00:00
|
|
|
{% for claim in active_data %}
|
2011-11-18 18:27:26 +00:00
|
|
|
<dt>Title: <a href="{% url work work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
|
|
|
<dd>Author: {{claim.work.author }}</dd>
|
|
|
|
<dd>By: {{ claim.user.username }}</dd>
|
|
|
|
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
|
|
|
<dd>PSA #: {{ claim.rights_holder.id }}</dd>
|
|
|
|
<dd>Date of Claim : {{ claim.created }}</dd>
|
|
|
|
<dd>Status: {{ claim.status }}</dd>
|
2011-11-16 19:45:37 +00:00
|
|
|
{% endfor %}
|
2011-11-18 18:27:26 +00:00
|
|
|
</dl>
|
2011-11-17 19:35:29 +00:00
|
|
|
{% endif %}
|
2011-11-16 19:45:37 +00:00
|
|
|
|
2011-11-15 04:28:55 +00:00
|
|
|
{% endblock %}
|