Started working on the skeleton of an actual website. Created barebones templates...
[~kgodey/maayanwich.git] / templates / sandwich.html
index 32a85ed..1e8e621 100644 (file)
@@ -1,11 +1,10 @@
-<html>
-       <head>
-               <title>Add a sandwich!</title></head>
-       <body>
-               <h1>Add a new sandwich</h1>
-               <form enctype="multipart/form-data" action="/addsandwich/" method="post">
-               {{ sform.as_p }}
-               <input type="submit" value="Submit" />
-               </form>
-       </body>
-</html>
\ No newline at end of file
+{% extends "base.html" %}
+
+{% block title %}Add a sandwich{% endblock %}
+{% block content %}
+       <h1 class="pagetitle">Add a new sandwich</h1>
+       <form enctype="multipart/form-data" action="/addsandwich/" method="post">
+       {{ sform.as_p }}
+       <input type="submit" value="Submit" />
+       </form>
+{% endblock %}
\ No newline at end of file