{% extends "registry/list.html" %}

{% block title %}Registration{% endblock %}

{% block content_title %}<h2>Registration</h2>{% endblock %}

{% block table_head_extn %}
{% endblock %}

{% block table_item_delete_btn %}{% endblock %}

{% block primarysidebar %}
<div class="box">
  <h2>Registration</h2>
  {% if view.session %}
  <ul>
    <li><a href="{{ uriPrefix }}/persons/{{ view.session.person.name }}/">Your Details</a></li>
  </ul>
  {% endif %}
  <p>You&rsquo;re currently in the <strong>registration</strong> section of the {{ systemServiceName }} site. From here you can find registered users and register new users.</p>
  {% if view.canApprovePersons %}
  {% if view.registry.persons.getPending.count %}
  <ul>
    <li><a href="{{ uriPrefix }}/persons/pending/"><b>Pending Registrations ({{ view.registry.persons.getPending.count }})</b></a></li>
  </ul>
  {% endif %}
  {% endif %}
  <ul>
  {% if view.canCreatePerson %}
    <li><a href="{{ uriPrefix }}/persons/create/">Register New User</a></li>
  {% endif %}
  {% if view.canApprovePerson %}
    <li><a href="{{ uriPrefix }}/persons/search/">Search</a></li>
    <li><a href="{{ uriPrefix }}/persons/">Index</a></li>
  {% endif %}
  </ul>
</div>
{% endblock %}

