2013-11-28 03:14:52 +00:00
|
|
|
{% extends "basedocumentation.html" %}
|
|
|
|
{% block title %} Library Admin {% endblock %}
|
|
|
|
{% block extra_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="{{ jquery_ui_home }}" ></script>
|
|
|
|
|
|
|
|
{{ form.media.js }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block doccontent %}
|
|
|
|
{% if library.pk %}
|
|
|
|
<h2>Edit Library</h2>
|
|
|
|
<ul><li> Go to <a href="{% url library library.user %}">{{ library }} Page</a></li>
|
|
|
|
<li><a href="{% url library_login library.id %}">Log in</a> as the library user </li>
|
|
|
|
{% else %}
|
2013-12-02 05:46:25 +00:00
|
|
|
<h2>Add a Library to Unglue.it</h2>
|
2013-11-28 03:14:52 +00:00
|
|
|
{% endif %}
|
|
|
|
<p>{{ status }}</p>
|
|
|
|
<form method="POST" action="#" class="std_form">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.work }}
|
|
|
|
{{ form.non_field_errors }}
|
|
|
|
<div>
|
|
|
|
<p><b>Library Name</b>: {{ form.name.errors }}{{ form.name }}</p>
|
|
|
|
{% if form.instance.user %}
|
|
|
|
<p><b>Library Username</b>: {{ form.instance.user }}</p>
|
|
|
|
<p><b>Library Email</b>: {{ form.instance.user.email }}</p>
|
|
|
|
{% else %}
|
|
|
|
<p><b>Library Username</b>: {{ form.username.errors }}{{ form.username }} This will be the Unglue.it username for the library.</p>
|
|
|
|
<p><b>Library Email</b>: {{ form.email.errors }}{{ form.email }} The notification address for the library.</p>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
<p><b>Library Authentication Method</b>: {{ form.backend.errors }}{{ form.backend }}</p>
|
|
|
|
</div>
|
|
|
|
<input type="submit" name="create_new_library" value="{% if library.pk %}Save Edits{% else %}Create A Library{% endif %}" id="submit">
|
|
|
|
</form>
|
2013-11-30 20:40:45 +00:00
|
|
|
{% if backend_admin_forms %}
|
2013-12-02 05:46:25 +00:00
|
|
|
<h2>User Verification Setup</h2>
|
|
|
|
{% include form.instance.help_template %}
|
2013-11-30 20:40:45 +00:00
|
|
|
{% for backend_admin_form in backend_admin_forms %}
|
2013-12-02 05:46:25 +00:00
|
|
|
<form method="POST" action="#">
|
2013-11-30 20:40:45 +00:00
|
|
|
{% csrf_token %}
|
2013-12-02 05:46:25 +00:00
|
|
|
<span class="std_form">{{ backend_admin_form }}</span>
|
|
|
|
<input type="hidden" name="id" value="{{backend_admin_form.instance.id}}" />
|
2013-11-30 20:40:45 +00:00
|
|
|
<input type="submit" name="backend_submit" value="Save User Verifier" id="auth_submit_{{backend_admin_form.instance.id}}" />
|
|
|
|
<input type="submit" name="backend_delete" value="Delete" id="auth_delete_{{backend_admin_form.instance.id}}" />
|
|
|
|
</form>
|
2013-12-02 05:46:25 +00:00
|
|
|
<br />
|
2013-11-30 20:40:45 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2013-11-28 03:14:52 +00:00
|
|
|
{% endblock %}
|