summaryrefslogtreecommitdiff
path: root/project/templates/user
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/user')
-rw-r--r--project/templates/user/_usermenu.html16
-rw-r--r--project/templates/user/account.html119
-rw-r--r--project/templates/user/editprofile.html28
-rw-r--r--project/templates/user/login.html73
-rw-r--r--project/templates/user/password.html56
-rw-r--r--project/templates/user/username.html32
6 files changed, 324 insertions, 0 deletions
diff --git a/project/templates/user/_usermenu.html b/project/templates/user/_usermenu.html
new file mode 100644
index 0000000..db03c78
--- /dev/null
+++ b/project/templates/user/_usermenu.html
@@ -0,0 +1,16 @@
+<div class="right">
+ <ul class="horizontal-menu">
+ <li>
+ <a href="{% url kiwipycon_account %}">My Profile</a>
+ </li>
+ <li>
+ <a href="{% url kiwipycon_edit_profile %}">Edit Profile</a>
+ </li>
+ <li>
+ <a href="{% url kiwipycon_password %}">Change Password</a>
+ </li>
+ <li>
+ <a href="{% url kiwipycon_username %}">Change Username</a>
+ </li>
+ </ul>
+</div>
diff --git a/project/templates/user/account.html b/project/templates/user/account.html
new file mode 100644
index 0000000..3a5302e
--- /dev/null
+++ b/project/templates/user/account.html
@@ -0,0 +1,119 @@
+{% extends "base.html" %}
+ <li class="last"><a
+ href="mailto:kauaerangastore@xtra.co.nz">kauaerangastore@xtra.co.nz</a></li>
+<!-- TODO: Lot of fees related and New Zealand group related info. -->
+{% block title %}My Profile{% endblock %}
+
+{% block content %}
+<h1>My Profile: {{ user.first_name }} {{user.last_name}}</h1>
+
+<table class="kiwipycon-default">
+ <tr>
+ <td class="label">
+ Username:
+ </td>
+ <td>
+ {{ user.username }}
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ Name:
+ </td>
+ <td>
+ {% if user.first_name %}
+ <span>{{ user.get_full_name }}</span>
+ {% else %}
+ <span class="important">No name, please <a
+ href="{% url kiwipycon_edit_profile %}">edit profile</a>.</span>
+ {% endif %}
+ </td>
+ <td rowspan="4">
+ <div class="picture">
+ <img src="{{ photo }}" width="80" height="80" />
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ Email:
+ </td>
+ <td>
+ <a href="mailto:{{ user.email }}">{{ user.email }}</a>
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ Url:
+ </td>
+ <td>
+ <a href="{{ profile.url }}" target="_blank">{{ profile.url }}</a>
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ About:
+ </td>
+ <td style="width: 40em">
+ {{ profile.about }}
+ </td>
+ </tr>
+</table>
+{% if comment %}
+<strong>{{ comment }}</strong>
+{% endif %}
+{% if form %}
+<!-- wifi form -->
+ <h2>Wifi</h2>
+<p>The following form will help the SciPy.in team identify wireless
+requirements.</p>
+<form action="" method="post">
+<table>
+ {{ form }}
+</table>
+<input type="submit" value="submit" />
+</form>
+{% endif %}
+{% if registration %}
+<div id="talks">
+ <h2>Your Registration</h2>
+<p>
+ <a href="/edit-registration/{{ registration.id }}/"
+ title="Edit">Edit Registration</a>
+ {% if registration.sponsor %}
+ {% else %}
+ | <a href="/invoice/"
+ title="Your invoice (html)">Your invoice (html)</a> (<a href="/pdf_invoice/"
+ title="Your invoice (pdf)">pdf</a>)</p>
+ {% endif %}
+ </p>
+</div>
+{% endif %}
+{% if talks %}
+<div id="talks">
+ <h2>Your Submitted Talks</h2>
+ <table class="kiwipycon-default" border="1">
+ <th>Title</th>
+ <th>Duration</th>
+ <th>Audience</th>
+ <th>Tags</th>
+ <th>&nbsp;</th>
+{% for talk in talks %}
+<tr>
+<td>{{ talk.title }}</td>
+<td>{{ talk.duration }}</td>
+<td>{{ talk.audience }}</td>
+<td>{{ talk.tags }}</td>
+<td>
+ {% if talk.approved %}
+ <span>Accepted</span>
+ {% else %}
+ <a href="/edit-talk/{{ talk.id }}/" title="Edit">Edit</a>
+ {% endif %}
+</td>
+</tr>
+{% endfor %}
+</table>
+</div>
+{% endif %}
+{% endblock content %}
diff --git a/project/templates/user/editprofile.html b/project/templates/user/editprofile.html
new file mode 100644
index 0000000..fd73d3b
--- /dev/null
+++ b/project/templates/user/editprofile.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+
+{% block title %}Edit Your Profile{% endblock %}
+
+{% block content %}
+ <h1>Edit Your Profile</h1>
+
+
+ <form action="{% url kiwipycon_edit_profile %}"
+ enctype="multipart/form-data"
+ method="post">
+ <fieldset>
+ <legend>Edit Profile</legend>
+ <table class="kiwipycon-default">
+ {{ form }}
+ </table>
+ <input type="hidden"
+ name="action"
+ value="email" />
+
+ <input class="button left"
+ type="submit"
+ value="Save Changes" />
+
+ </fieldset>
+ </form>
+{% endblock %}
+
diff --git a/project/templates/user/login.html b/project/templates/user/login.html
new file mode 100644
index 0000000..9d920ad
--- /dev/null
+++ b/project/templates/user/login.html
@@ -0,0 +1,73 @@
+{% extends "base.html" %}
+
+{% block title %}Login or Register{% endblock %}
+
+{% block content %}
+<h1>Login or Register</h1>
+
+ <div class="login">
+ <h2 class="authenticate">Login</h2>
+
+ <div class="description">
+ Log in for registered users of the site.
+ </div>
+
+ <form class="authenticate"
+ enctype="multipart/form-data"
+ action="{% url kiwipycon_login %}"
+ method="post">
+
+ <table class="kiwipycon-default">
+ {{ login_form }}
+ <tr>
+ <td></td>
+ <td>
+ <a href="{% url kiwipycon_password_reset %}">Forgot password?</a>
+ </td>
+ </tr>
+ </table>
+
+ <input type="hidden"
+ name="action"
+ value="login" />
+
+ <input type="hidden"
+ name="next"
+ value="{{ next_url }}" />
+
+ <button class="button left"
+ type="submit">
+ Login
+ </button>
+
+ </form>
+ </div>
+
+ <div class="register">
+ <h2 class="authenticate">Register</h2>
+
+ <div class="description">
+ If you are not already a member of the site you can register here.
+ </div>
+
+ <form action="{% url kiwipycon_login %}"
+ method="post">
+ <table class="kiwipycon-default">
+ {{ register_form }}
+ </table>
+ <input type="hidden"
+ name="action"
+ value="register" />
+
+ <input type="hidden"
+ name="next"
+ value="{{ next_url }}" />
+
+ <button class="button left"
+ type="submit">
+ Register
+ </button>
+ </form>
+ </div>
+{% endblock content %}
+
diff --git a/project/templates/user/password.html b/project/templates/user/password.html
new file mode 100644
index 0000000..ece1e96
--- /dev/null
+++ b/project/templates/user/password.html
@@ -0,0 +1,56 @@
+{% extends "base.html" %}
+
+{% block title %}Change Your Password{% endblock %}
+
+
+{% block content %}
+
+ <h1>Change Your Password</h1>
+
+ <p>
+ Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly.
+ </p>
+
+ <form action="{% url kiwipycon_password %}"
+ method="post">
+ <table class="kiwipycon-default">
+ <tr>
+ <td class="label">
+ <label for="id_old_password">Old password:</label>
+ </td>
+ <td>
+ {{ form.old_password.errors }}
+ {{ form.old_password }}
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ <label for="id_new_password1">New password:</label>
+ </td>
+ <td>
+ {{ form.new_password1.errors }}
+ {{ form.new_password1 }}
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ <label for="id_new_password2">Confirm password:</label>
+ </td>
+ <td>
+ {{ form.new_password2.errors }}
+ {{ form.new_password2 }}
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input class="button left" type="submit" value="Change password" />
+ </td>
+ </tr>
+ </table>
+
+ </table>
+ </form>
+
+{% endblock %}
+
diff --git a/project/templates/user/username.html b/project/templates/user/username.html
new file mode 100644
index 0000000..0e101a8
--- /dev/null
+++ b/project/templates/user/username.html
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+
+{% block title %}Change Your Username{% endblock %}
+
+{% block content %}
+ <h1>Change your username</h1>
+
+ <form action="{% url kiwipycon_username %}"
+ method="post">
+ <table class="kiwipycon-default">
+ <tr>
+ <td class="label">
+ <label for="id_username">New username:</label>
+ </td>
+ <td>
+ {{ form.username.errors }}
+ {{ form.username }}
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input class="button left"
+ type="submit"
+ value="Save username" />
+ </td>
+ </tr>
+ </table>
+
+ </form>
+{% endblock %}
+