2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 14:58:17 +00:00

Signup form now saving data (and encrypting it)

This commit is contained in:
2025-01-25 19:56:36 +00:00
parent c479345b6c
commit 0d105d40da
7 changed files with 190 additions and 44 deletions

View File

@@ -75,6 +75,10 @@ Loser Expo 2025 SIGN-UP Form
</button>
{% endif %}
<hr>
<span style="color:red; font-family: monospace; font-weight: bold;">
{{ form.errors }} <br /> <!-- why are the field errors not being reported against the field as a red outline?? -->
{{ form.non_field_errors }} <!-- form validation errors appear here, and also at the top of the form-->
</span>
<form action="{% url 'signup' %}" method="post">
{% csrf_token %}
@@ -89,25 +93,25 @@ Loser Expo 2025 SIGN-UP Form
<td align="right"><i>Full</i> name:</td>
<td>{{ form.name }}</td>
<td align="right">Name:</td>
<td>{{ form.kinname }}</td>
<td>{{ form.kin_name }}</td>
</tr>
<tr>
<td align="right">Address:</td>
<td>{{ form.address }}</td>
<td align="right">Address:</td>
<td>{{ form.kinaddress }}</td>
<td>{{ form.kin_address }}</td>
</tr>
<tr>
<td align="right">Phone:</td>
<td>{{ form.phone }}</td>
<td align="right">Phone:</td>
<td>{{ form.kinphone }}</td>
<td>{{ form.kin_phone }}</td>
</tr>
<tr>
<td align="right">Email:</td>
<td>{{ form.email }}</td>
<td align="right">Email:</td>
<td>{{ form.kinemail }}</td>
<td>{{ form.kin_email }}</td>
</tr>
<tr>
<td colspan="2"></td>

View File

@@ -0,0 +1,40 @@
<!-- frontpage.html - this text visible because this template has been included -->
{% extends "base.html" %}
{% block title %}Cambridge Expeditions to Austria{% endblock %}
{% block content %}
<title>Loser Expo {{year}} Sign-up Form Completed</title>
<h1>Expo {{year}} {{dates}}</h1>
<div id="col1">
<h3>You have signed up to attend the next Expo</h3>
<p class="indent">
You have signed up as {{signup_user.username}} - {{signup_user.email}}
<p class="indent">
Your signup has been registered. Please now register your email on the email announcements list if
you have not already done so:
<ul>
<li><a href="https://lists.wookware.org/cgi-bin/mailman/listinfo/expo">lists.wookware.org : expo</a>
</ul>
</p>
<p class="indent">
This is the beginning of becoming part of the team for Expo {{year}}. There are training events and
organisation to do, kit-lists to organise, and your dates on expo need to be agreed with Expo. We
particularly need adequate manpower to de-rig the caves and pack up at the end of Expo.
<p class="indent">
You next jobs to do: see the <a href="/kanboard/board/2">Expo Kanboard</a>.
<br />
<!-- <img src="/expofiles/photos/2007/selected/eishoehle5nial.jpg">-->
<figure align=center>
<img src="/expofiles/photos/2007/selected/eishoehle4nial.jpg" width="250px">
<figcaption>Nial in <a href="/expofiles/photos/2007/selected/">Eishohle in 2007</a>.</figcaption>
</figure>
{% endblock content %}
{% block margins %}
{% endblock margins %}