regluit/frontend/templates/rights_holders.html

70 lines
2.4 KiB
HTML

{% extends "basedocumentation.html" %}
{% 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 %}
{% block doccontent %}
<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>
<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 }}
<br />owner: <a href="{% url supporter supporter_username=rights_holder.owner %}">{{ rights_holder.owner }}</a></dd>
{% empty %}
<p>No rights holders have been accepted yet</p>
{% endfor %}
</dl>
{% if pending %}
<h3> Pending Claims </h3>
<form method="POST" action="#">
{{ pending_formset.management_form }}
{% csrf_token %}
<dl>
{% for claim, claim_form in pending %}
<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 }}
<input type="submit" name="set_claim_status" value="Set Claim Status" id="submit">
{% endfor %}
</dl>
</form>
{% endif %}
{% if active_data.count %}
<h3> Active Claims: {{ active_data.count }} </h3>
<dl>
{% for claim in active_data %}
<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>
{% endfor %}
</dl>
{% endif %}
{% endblock %}