Permalink
Browse files

Basic views to handle submission of a new url.

  • Loading branch information...
1 parent 5b3af9c commit 875b05610111866dfccd1936e7d2f26224129871 @davorg committed Sep 25, 2012
Showing with 11 additions and 0 deletions.
  1. +6 −0 Shrtr/views/saved.tt
  2. +5 −0 Shrtr/views/submit.tt
View
6 Shrtr/views/saved.tt
@@ -0,0 +1,6 @@
+<p>Your URL has been saved.</p>
+<ul>
+ <li>Long URL: [% url.url %]</li>
+ <li>Short code: <a href="/[% url.code %]">[% url.code %]</a></li>
+ <li>Information: <a href="/[% url.code %]+">[% url.code %]</a></li>
+</ul>
View
5 Shrtr/views/submit.tt
@@ -0,0 +1,5 @@
+<form method="POST">
+<p>Long URL: <input name="url" /><br />
+Short code: <input name="code" /><br />
+<input type="submit" value="Save" /></p>
+</form>

0 comments on commit 875b056

Please sign in to comment.