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 %}
2013-12-02 15:12:22 +00:00
< h2 > Configure {{ library }}< / h2 >
2013-11-28 03:14:52 +00:00
{% 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-12-02 15:12:22 +00:00
{% if library.pk %}
< h2 > Settings for {{ library }}< / h2 >
< ul class = "terms" >
< li > Go to < a href = "{% url library library.user %}" > {{ library }} Page< / a > < / li >
{% ifequal request.user library.user %}
< li > < i > You are logged in as the library user.< / i > You can...< / li >
< li > ... edit the < a href = "{% url supporter library.user %}#edit" > Profile Settings< / a > or ... < / li >
< li > ... < a href = "{% url manage_account %}" > configure< / a > the library's account< / li >
{% else %}
{% ifequal request.user library.owner %}
< li > To set links and tagline, configure the account, and build book lists for {{ library }}, first < a href = "{% url library_login library.id %}" > click here to log in< / a > as the library user < / li >
{% else %}
< li > < i > {{ library.owner }}< / i > is authorized to set links and tagline, configure the account, and build book lists for {{ library }}.< / li >
{% endifequal %}
{% endifequal %}
< / ul >
{% endif %}
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 %}