fix template path stuff

pull/1/head
nathaniel smith 2016-11-29 23:47:37 -08:00
parent 6d6104d962
commit f1fc5f4cb8
4 changed files with 82 additions and 109 deletions

View File

@ -57,7 +57,7 @@ ROOT_URLCONF = 'urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['users/templates'], 'DIRS': ['templates'],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [

View File

@ -1,108 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>tilde.town signup page</title>
<style type="text/css">
td.label {
width:40%;
}
td.label p:first-child {
font-weight:bold;
}
td.label p:last-child {
font-style: oblique;
font-size:80%;
}
</style>
</head>
<body>
<h1>sign up for a tilde.town account</h1>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form action="{% url 'users:signup' %}" method="post">
{% csrf_token %}
<!-- TODO captcha of some kind -->
<table id="signup">
<tr>
<td class="label">
<p>
username
</p>
<p>
Must be lowercase and start with letters.
</p>
</td>
<td>
<input type="text" required="true" name="username">
</td>
</tr>
<tr>
<td class="label">
<p>
email
</p>
<p>
used to notify you about your account. not used for
any other reason and never shared.
</p>
</td>
<td>
<input name="email" type="email" required="true">
</td>
</tr>
<tr>
<td class="label">
<p>
display name
</p>
<p>
an optional long-form name to go by. absolutely no
obligation to provide your "real" name. will appear
in various places.
</p>
</td>
<td>
<input name="displayname" type="text">
</td>
</tr>
<tr>
<td class="label">
<p>
ssh public key
</p>
<p>
your ssh <strong>public</strong> key. if ssh is new
to you, <a
href="http://tilde.town/~wiki/ssh.html">check out
our guide for help</a>. Provide just the guts
of the key; it will most likely start with
<strong><code>AAAAB3NzaC1iyc</code></strong>
</p>
</td>
<td>
<textarea name="pubkey" required="true"></textarea>
</td>
</tr>
<tr>
<td class="label">
<p>
ssh public key type
</p>
<p>
You can leave this alone unless you know that you need to change it.
</p>
</td>
<td>
<select name="pubkey_type">
{% for choice in ssh_type_choices %}
<option value="{{choice.0}}">{{choice.1}}</option>
{% endfor %}
</select>
</td>
</tr>
</table>
<input type="submit" value="sign up <3" />
</form>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<head>
<title>tilde.town signup page</title>
<style type="text/css">
body {
background-color: #E0B0FF;
}
#signup th {
text-align:left;
}
#signup .helptext {
font-style:oblique;
}
#signup {
border-collapse: collapse;
border: 1px solid #ff1ac6;
}
#signup th,td {
border: 1px solid #ff1ac6;
padding:1em;
}
#signup input[type=submit] {
font-size:200%;
}
#signup div:last-child {
text-align:center;
}
#signup ul.errorlist {
list-style: none;
margin-left: 0;
padding-left:0;
}
#signup ul.errorlist li:before {
content: "~! ";
}
#signup ul.errorlist li {
background-color:black;
color:white;
border: .5em dashed red;
font-family:arial;
padding:2px;
}
</style>
</head>
<body>
<h1>sign up for a tilde.town account</h1>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form id="signup" action="{% url 'users:signup' %}" method="post">
{% csrf_token %}
<!-- TODO captcha of some kind -->
<table id="signup">
<tr>
<td colspan="2">
<a href="http://tilde.town">tilde.town</a> is a small
computer publicly accessible on the internet and meant
for sharing. It is intended as an open, welcoming and
safe space to explore digital art and digital
socialization in a post-facebook age. tilde.town
encourages lo-fi HTML art, hi-fi Javascript
experiments, lots of ascii art, the sharing of feels,
and chatting.
If you have any problems with this process, please send
a tweet to <a href="https://twitter.com/tildetown">@tildetown</a>
or file a <a href="https://tilde.town">helpdesk ticket</a>.
</td>
</tr>
{{ form.as_table }}
</table>
<div>
<input type="submit" value="sign up <3" />
</div>
</form>
</body>
</html>

View File

@ -0,0 +1 @@
THANKS