home.html 1.99 KB
Newer Older
1
{% extends "base_form.html" %}
2
{% load static %}
frekk's avatar
frekk committed
3
4
5
{% block title %}UCC Member Home{% endblock %}
{% block content_title %}
    <h1>Member home</h1>
6
7
8
9
10
    {% if request.member %}
    <h3>Welcome, {{ request.member.first_name }} {{ request.member.last_name }} (<code>{{ request.member.username }}</code>)</h3>
    {% else %}
    <h3>Welcome, {{ request.user.first_name }} {{ request.user.last_name }} (<code>{{ request.user.username }}</code>)</h3>
    {% endif %}
frekk's avatar
frekk committed
11
12
13
{% endblock %}

{% block tips %}
frekk's avatar
frekk committed
14
{% if not request.member %}
15
16
17
    {% if request.user.is_authenticated %}
    <b>You have no member record associated with this account.</b><br>
    Please <a href="{% url 'memberdb:renew' %}">renew your membership</a> to get started.
frekk's avatar
frekk committed
18
19
    <br><br>
    Note: you may have already paid for this year, but unless the username you entered is the same as the one you are using now, it will not work.
20
21
22
    {% else %}
    <b>Something went wrong and your membership details could not be retrieved.</b> Please try <a href="{% url 'memberdb:login' %}">logging in</a>.
    {% endif %}
frekk's avatar
frekk committed
23
{% else %}
24
    You can see and modify some of your membership and account details below.
frekk's avatar
frekk committed
25
26
27
28
{% endif %}
{% endblock %}

{% block extra_preform %}
29
30
31
32
33
34
35
<div class="form-row">
    {% include 'membership_summary.html' %}
</div>
<div class="form-row">
    <h4>Membership renewals on record</h4>
    <!-- stuff from the membership record itself -->
    {% if memberships %}
36
	{% include 'membership_list.html' %}
37
38
39
    {% else %}
    No membership renewal records for your account exist yet. Please <a href="{% url 'memberdb:renew' %}">renew your membership</a> to get started.
    {% endif %}
frekk's avatar
frekk committed
40
</div>
41
<br>
frekk's avatar
frekk committed
42
43
{% endblock %}

44
45
46
47
{% block form %}
{% if object %} {{ block.super }} {% endif %}
{% endblock %}

48
49
50
51
52
53
{% block postform %}
<div class="form-row">
<p class="help">To update your other membership details, please talk to a door or committee member.</p>
</div>
{% endblock %}

54
{% block action_url %}{% url 'memberdb:home' %}{% endblock %}
frekk's avatar
frekk committed
55

56
{% block action_text %}Update details{% endblock %}