From c728484af115943f2cc4b2c3d266a034a56bc222 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 26 Aug 2010 10:44:05 -0700 Subject: [PATCH] Add templates --- viper/templates/apartment/listing.html | 16 ++++++++++++++++ viper/templates/apartment/submit.html | 21 +++++++++++++++++++++ viper/templates/index.html | 9 +++++++++ viper/templates/layout.html | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 viper/templates/apartment/listing.html create mode 100644 viper/templates/apartment/submit.html create mode 100644 viper/templates/index.html create mode 100644 viper/templates/layout.html diff --git a/viper/templates/apartment/listing.html b/viper/templates/apartment/listing.html new file mode 100644 index 0000000..ede7864 --- /dev/null +++ b/viper/templates/apartment/listing.html @@ -0,0 +1,16 @@ +{% extends "../layout.html" %} + +{% block title %}Frozen Viper: Your apartment listing resource{% endblock %} + +{% block content_header %}Apartment Listing{% endblock %} + +{% block content %} +
+ {% for listing in listings %} +
{{ listing.title }}
+
{{ listing.address }}
+
{{ listing.rent }}
+
Created on {{ listing.date }}
+ {% endfor %} +
+{% endblock %} diff --git a/viper/templates/apartment/submit.html b/viper/templates/apartment/submit.html new file mode 100644 index 0000000..fa948c3 --- /dev/null +++ b/viper/templates/apartment/submit.html @@ -0,0 +1,21 @@ +{% extends "../layout.html" %} + +{% block title %}Frozen Viper: Your apartment listing resource{% endblock %} + +{% block content_header %}Submit Apartment Listing{% endblock %} + +{% block content %} +

Input Form

+
+
+
Listing Title
+
+
Address
+
+
Rent
+
+
+
+
+
+{% endblock %} diff --git a/viper/templates/index.html b/viper/templates/index.html new file mode 100644 index 0000000..41e3bb8 --- /dev/null +++ b/viper/templates/index.html @@ -0,0 +1,9 @@ +{% extends "layout.html" %} + +{% block title %}Frozen Viper: Your apartment listing resource{% endblock %} + +{% block content_header %}Frozen Viper{% endblock %} + +{% block content %} + This is the main Frozen Viper landing page. +{% endblock %} diff --git a/viper/templates/layout.html b/viper/templates/layout.html new file mode 100644 index 0000000..bf01b95 --- /dev/null +++ b/viper/templates/layout.html @@ -0,0 +1,34 @@ + + + + + {% block title %}Title{% endblock %} + + + + + + + +
+ {% block content %}Content{% endblock %} +
+ + -- 2.11.4.GIT