Initial commit after extraction

This commit is contained in:
Ryan McGrath 2018-07-20 15:42:02 -07:00
commit 80ba54e4ef
No known key found for this signature in database
GPG key ID: 811674B62B666830
43 changed files with 3865 additions and 0 deletions

1
templates/app/index.html Normal file
View file

@ -0,0 +1 @@
LOGGED IN!!!!

3
templates/index.html Normal file
View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

19
templates/layout.html Normal file
View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<title>{% block title %}{% endblock %}</title>
{% block head %}{% endblock %}
</head>
<body>
<div id="nav">
<a href="/users/signup/">Signup</a>
<a href="/users/login/">Login</a>
</div>
<div id="content">
{% block content %}{% endblock %}
</div>
</body>
</html>

View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

View file

@ -0,0 +1,3 @@
{% extends "layout.html" %}
{% block content %}HELLO!{% endblock %}

View file

@ -0,0 +1,13 @@
{% extends "layout.html" %}
{% block title %}Signup{% endblock %}
{% block head %}{% endblock %}
{% block content %}
<form method="POST" action="/signup">
<input type="text" name="name">
<input type="password" name="password">
<input type="submit" value="Go">
</form>
{% endblock %}

View file

@ -0,0 +1,8 @@
{% extends "layout.html" %}
{% block title %}Signup{% endblock %}
{% block head %}{% endblock %}
{% block content %}
{% endblock %}

View file

@ -0,0 +1,13 @@
{% extends "layout.html" %}
{% block title %}Signup{% endblock %}
{% block head %}{% endblock %}
{% block content %}
<form method="POST" action="/users/login/">
<input type="text" name="name">
<input type="password" name="password">
<input type="submit" value="Go">
</form>
{% endblock %}

View file

@ -0,0 +1 @@
<h1></h1>

View file

@ -0,0 +1,23 @@
{% extends "layout.html" %}
{% block title %}Signup{% endblock %}
{% block head %}{% endblock %}
{% block content %}
{% match errors %}
{% when Some with (errs) %}
<ul>
{% for e in errs %}
<li>{{ e }}</li>
{% endfor %}
</ul>
{% when None %}
{% endmatch %}
<form method="POST" action="/users/signup/">
<input type="text" name="email">
<input type="password" name="password">
<input type="submit" value="Go">
</form>
{% endblock %}