regluit/frontend/templates/marc_config.html

53 lines
1.3 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'email_change/base.html' %}
2016-05-11 14:41:50 +00:00
2013-07-23 16:23:04 +00:00
{% block extra_extra_head %}
{{ block.super }}
<style type="text/css">
#login {
width: auto;
display: block;
}
</style>
{% endblock %}
2014-10-27 15:55:46 +00:00
{% block title %}Change your librarian preferences{% endblock %}
2013-07-23 16:23:04 +00:00
{% block ce_content %}
{% if messages %}
<ul class="errors">
2013-07-23 16:23:04 +00:00
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
2014-10-27 15:55:46 +00:00
<h3>Librarian Tools</h3>
If you enable Librarian tools, you'll find links to download MARC record(s) at the bottom of many Unglue.it pages.
<ul>
<li> work pages</li>
<li> lists of works</li>
<li> supporter pages </li>
</ul>
2013-07-23 16:23:04 +00:00
2014-10-27 15:55:46 +00:00
{% if request.user.is_authenticated %}
2015-04-28 03:24:02 +00:00
<form method="post" action="{% url 'marc_config' %}">
2013-07-23 16:23:04 +00:00
{% csrf_token %}
2014-10-27 15:55:46 +00:00
<div>
{% if request.user.libpref %}
<p>You have enabled librarian tools. </p>
{{ form }}
<input type="submit" value="Disable Librarian Tools" name="disable" />
{% else %}
<p>You have not enabled librarian tools.
{{ form }}
<br />
<input type="submit" value="Enable Librarian Tools" name="enable" />
{% endif %}
</div>
2013-07-23 16:23:04 +00:00
</form>
2014-10-27 15:55:46 +00:00
<p>
2015-04-28 03:24:02 +00:00
Back to <a href="{% url 'marc' %}">record download page</a>
2014-10-27 15:55:46 +00:00
</p>
{% endif %}
2013-07-23 16:23:04 +00:00
{% endblock %}