2015-04-28 03:24:02 +00:00
|
|
|
{% extends 'basedocumentation.html' %}
|
2016-05-11 14:41:50 +00:00
|
|
|
|
2012-03-22 20:19:15 +00:00
|
|
|
|
2011-11-21 20:07:10 +00:00
|
|
|
{% block extra_extra_head %}
|
2014-04-10 17:15:08 +00:00
|
|
|
{{ block.super }}
|
2015-12-14 16:52:41 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/ui-lightness/jquery-ui-1.8.16.custom.css" type="text/css" media="screen">
|
2011-11-18 14:22:21 +00:00
|
|
|
{{ form.media.css }}
|
2012-03-08 02:47:40 +00:00
|
|
|
<script type="text/javascript" src="{{ jquery_ui_home }}" ></script>
|
2011-11-18 14:22:21 +00:00
|
|
|
{{ form.media.js }}
|
|
|
|
{% endblock %}
|
2011-11-15 04:28:55 +00:00
|
|
|
|
|
|
|
{% block doccontent %}
|
2013-12-02 00:22:42 +00:00
|
|
|
<h2>Admin Links</h2>
|
|
|
|
<ul>
|
|
|
|
<li><a href="/admin/">Admin</a></li>
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a href="{% url 'new_libraries' %}">Libraries Needing Approval</a></li>
|
|
|
|
<li><a href="{% url 'press_submitterator' %}">Press Coverage</a></li>
|
|
|
|
<li><a href="{% url 'subjects' %}">Subjects</a> (set keywords)</li>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% if facet = 'top' %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a href="{% url 'accepted' %}">Accepted Rights Holders</a></li>
|
|
|
|
<li><a href="{% url 'claims' %}">Active Claims</a></li>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% else %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a href="{% url 'rh_admin' %}">Unglue.it Admin</a></li>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% endif %}
|
2013-12-02 00:22:42 +00:00
|
|
|
</ul>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% if facet = 'top' %}
|
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>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if facet = 'accepted' %}
|
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 }}
|
2015-04-28 03:24:02 +00:00
|
|
|
<br />owner: <a href="{% url 'supporter' 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>
|
2014-02-08 18:28:52 +00:00
|
|
|
{% endif %}
|
2011-11-15 04:28:55 +00:00
|
|
|
|
2014-02-08 18:28:52 +00:00
|
|
|
{% if pending and facet = 'top' %}
|
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 %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<dt>Title: <a href="{% url 'work' work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
2014-01-18 02:37:19 +00:00
|
|
|
<dd>Author: {{claim.work.authors_short }}</dd>
|
2011-11-18 18:27:26 +00:00
|
|
|
<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>
|
2012-04-16 18:18:04 +00:00
|
|
|
<dd>Status of Claim: {{ 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
|
|
|
|
2014-02-08 18:28:52 +00:00
|
|
|
{% if active_data.count and facet = 'claims' %}
|
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 %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<dt>Title: <a href="{% url 'work' work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
2014-01-18 02:37:19 +00:00
|
|
|
<dd>Author: {{claim.work.authors_short }}</dd>
|
2011-11-18 18:27:26 +00:00
|
|
|
<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>
|
2012-04-16 18:18:04 +00:00
|
|
|
<dd>Status of Claim: {{ 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 %}
|