regluit/frontend/templates/rights_holders.html

86 lines
2.8 KiB
HTML
Raw Normal View History

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
{% block extra_extra_head %}
2014-04-10 17:15:08 +00:00
{{ block.super }}
<link rel="stylesheet" href="/static/css/ui-lightness/jquery-ui-1.8.16.custom.css" type="text/css" media="screen">
{{ form.media.css }}
2012-03-08 02:47:40 +00:00
<script type="text/javascript" src="{{ jquery_ui_home }}" ></script>
{{ form.media.js }}
{% endblock %}
{% 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>
{% 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>
{% else %}
2015-04-28 03:24:02 +00:00
<li><a href="{% url 'rh_admin' %}">Unglue.it Admin</a></li>
{% endif %}
2013-12-02 00:22:42 +00:00
</ul>
{% if facet = 'top' %}
<h2>Rights Holder Admin</h2>
<h3> Create New Rights Holder </h3>
<form method="POST" action="#">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="create_rights_holder" value="Create" id="submit">
</form>
{% endif %}
{% if facet = 'accepted' %}
<h3> Accepted Rights Holders </h3>
<dl>
{% for rights_holder in rights_holders %}
<dt>{{ rights_holder.rights_holder_name }}</dt>
<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>
{% empty %}
<p>No rights holders have been accepted yet</p>
{% endfor %}
</dl>
{% endif %}
{% if pending and facet = 'top' %}
<h3> Pending Claims </h3>
<form method="POST" action="#">
{{ pending_formset.management_form }}
{% csrf_token %}
<dl>
{% 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>
<dd>Author: {{claim.work.authors_short }}</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 of Claim: {{ claim.status }}</dd>
<dd>Change to:</dd> {{ claim_form.as_p }}
<input type="submit" name="set_claim_status" value="Set Claim Status" id="submit">
{% endfor %}
</dl>
</form>
{% endif %}
{% if active_data.count and facet = 'claims' %}
<h3> Active Claims: {{ active_data.count }} </h3>
<dl>
{% 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>
<dd>Author: {{claim.work.authors_short }}</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 of Claim: {{ claim.status }}</dd>
{% endfor %}
</dl>
{% endif %}
{% endblock %}