Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Finish HTML

  • Loading branch information...
commit 0cfef719a9f68b11e406cf625617a1607236be04 1 parent c1f29fa
authored
5  root/categories/category.tt
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Category: $category_name"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4 8
 		Clothing under the category: [% category_name %]
@@ -11,3 +15,4 @@
11 15
 		[% END -%]
12 16
 	</table>
13 17
 </div>
  18
+[% END %]
5  root/categories/list.tt
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Browse Categories"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4 8
 		This page lists the clothing categories.
@@ -12,3 +16,4 @@
12 16
 		[% END -%]
13 17
 	</table>
14 18
 </div>
  19
+[% END %]
7  root/clothes/clothing.tt
... ...
@@ -1,7 +1,11 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Clothing Item: $item.name"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4  
-		Details of [% item.name %] (category: [% item.category.name %])
  8
+		This item is in the category: [% item.category.name %]
5 9
 	</p>
6 10
 	<p>
7 11
 		[% IF item.outfits.size %]
@@ -24,3 +28,4 @@
24 28
 		</form>
25 29
 	</p>
26 30
 </div>
  31
+[% END %]
5  root/clothes/list.tt
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Browse Clothes"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4 8
 		This page lists all the clothes available.
@@ -44,3 +48,4 @@
44 48
 		[% END -%]
45 49
 	</p>
46 50
 </div>
  51
+[% END %]
28  root/index.tt
... ...
@@ -1,15 +1,20 @@
1 1
 
2  
-<p>
3  
-	Welcome to Phillip's Wardrobe Web App!
  2
+[% WRAPPER base.tt
  3
+	title = "Root Homepage"
  4
+%]
4 5
 
5  
-	<form method="post" action="/csv_upload" enctype="multipart/form-data">
6  
-		Upload a CSV file here:
7  
-		<input type="file" name="csv_file">
8  
-		<input type="submit" value="Import">
9  
-	</form>
  6
+<div>
  7
+	<div>
  8
+		Welcome to Phillip's Wardrobe Web App!
10 9
 
  10
+		<form method="post" action="/csv_upload" enctype="multipart/form-data">
  11
+			Upload a CSV file here:
  12
+			<input type="file" name="csv_file">
  13
+			<input type="submit" value="Import">
  14
+		</form>
  15
+	</div>
11 16
 	[% IF upload_complete %]
12  
-	<p>
  17
+	<div>
13 18
 		Upload Complete. Statistics:
14 19
 		<table>
15 20
 			<tr>
@@ -28,7 +33,8 @@
28 33
 				<td>Dupes</td>
29 34
 				<td>[% dupes %]</td>
30 35
 			</tr>
31  
-	</p>
  36
+		</table>
  37
+	</div>
32 38
 	[% END %]
33  
-</p>
34  
-
  39
+</div>
  40
+[% END %]
5  root/tags/list.tt
... ...
@@ -1,4 +1,8 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Browse Tags"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4 8
 		[% IF outfits.size %]
@@ -13,3 +17,4 @@
13 17
 		[% END %]
14 18
 	</p>
15 19
 </div>
  20
+[% END %]
10  root/tags/tag.tt
... ...
@@ -1,9 +1,10 @@
1 1
 
  2
+[% WRAPPER base.tt
  3
+	title = "Outfits tagged: $outfit.name"
  4
+%]
  5
+
2 6
 <div class="content">
3 7
 	<p>
4  
-		Details of [% outfit.name %]
5  
-	</p>
6  
-	<p>
7 8
 		[% IF outfit.clothes.size %]
8 9
 			The following items of clothing are in these tags.
9 10
 			<ul>
@@ -15,6 +16,5 @@
15 16
 			This item of clothing is not associated with this tag.
16 17
 		[% END %]
17 18
 	</p>
18  
-	<p>
19  
-	</p>
20 19
 </div>
  20
+[% END %]

0 notes on commit 0cfef71

Please sign in to comment.
Something went wrong with that request. Please try again.