{% extends 'ssmain/base.html' %} {# Society Self-Service Copyright © 2018-2019 Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% block title %}Membership{% endblock %} {% block content %} {% if not member %}

No membership records

This email address is not associated with a current membership.

{% else %}

Membership details

{{ member.id }}
{{ member.get_member_type_display() }}
{{ member.email }}
{{ member.expires.strftime('%d %B %Y') }}
{% if 'sspromotions' in settings.INSTALLED_APPS %}

Bulletin subscriptions

{% for group in import('sspromotions.models').Group.objects.all() %} {% if group.contains_member(member) or group.subscribable %}
{% endif %} {% endfor %}
{% endif %}
{% if errors %}
    {% for error in errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endif %} {% endblock %} {% block script %} {{ super() }} {% if member %} {% endif %} {% endblock %}